Active Topics

 



Notices


Reply
Thread Tools
Posts: 16 | Thanked: 0 times | Joined on Jan 2014
#561
Originally Posted by Marshall Banana View Post
This looks like a library path issue.

What's the output when you execute the following commands in terminal:
Code:
run-standalone.sh python
import sys
sys.path
import OpenSSL
You can exit the python shell with CTRL+D. Is '/usr/lib/pymodules/python2.5' in sys.path? If not, please try this and post the output:
Code:
run-standalone.sh python
import sys
sys.path.append('/usr/lib/pymodules/python2.5')
import OpenSSL
For the first code i have :

~ $ run-standalone.sh python
Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/pymodules/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/usr/lib/pymodules/python2.5/gtk-2.0']
>>> import OpenSSL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named OpenSSL
>>>
S


and for the second i have :

~ $ run-standalone.sh python
Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/usr/lib/pymodules/python2.5')
>>> import OpenSSL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named OpenSSL
>>> ~ $

Thanks
 
Marshall Banana's Avatar
Posts: 94 | Thanked: 209 times | Joined on Oct 2009 @ Germany
#562
Hmm, strange. I have got a python OpenSSL module in '/usr/lib/pymodules/python2.5' but the package seems to put it into '/usr/share/python-support/python-openssl':
Code:
Nokia-N900-42-11:~# dpkg --listfiles python-openssl
/.
/usr
/usr/lib
/usr/lib/python-support
/usr/lib/python-support/python-openssl
/usr/lib/python-support/python-openssl/python2.5
/usr/lib/python-support/python-openssl/python2.5/OpenSSL
/usr/lib/python-support/python-openssl/python2.5/OpenSSL/SSL.so
/usr/lib/python-support/python-openssl/python2.5/OpenSSL/rand.so
/usr/lib/python-support/python-openssl/python2.5/OpenSSL/crypto.so
/usr/share
/usr/share/doc
/usr/share/doc/python-openssl
/usr/share/doc/python-openssl/copyright
/usr/share/doc/python-openssl/changelog.gz
/usr/share/doc/python-openssl/changelog.Debian.gz
/usr/share/python-support
/usr/share/python-support/python-openssl
/usr/share/python-support/python-openssl/OpenSSL
/usr/share/python-support/python-openssl/OpenSSL/version.py
/usr/share/python-support/python-openssl/OpenSSL/__init__.py
/usr/share/python-support/python-openssl/OpenSSL/test
/usr/share/python-support/python-openssl/OpenSSL/test/__init__.py
/usr/share/python-support/python-openssl/OpenSSL/test/test_ssl.py
/usr/share/python-support/python-openssl/OpenSSL/test/test_crypto.py
/usr/share/python-support/python-openssl/OpenSSL/tsafe.py
/usr/share/python-support/python-openssl/pyOpenSSL-0.7.egg-info
Try this please:
Code:
run-standalone.sh python
import sys
sys.path.append('/usr/share/python-support/python-openssl/')
import OpenSSL
 
Posts: 16 | Thanked: 0 times | Joined on Jan 2014
#563
I got this: > import OpenSSL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/python-support/python-openssl/OpenSSL/__init__.py", line 11, in <module>
import rand, crypto, SSL, tsafe
ImportError: No module named rand
>>>
 
ndhikaa's Avatar
Posts: 40 | Thanked: 48 times | Joined on Jul 2013 @ Pondokgede, Indonesia
#564
is this app still working? i don't know how to authenticate on this one
 
Marshall Banana's Avatar
Posts: 94 | Thanked: 209 times | Joined on Oct 2009 @ Germany
#565
Originally Posted by ndhikaa View Post
is this app still working? i don't know how to authenticate on this one
You have to install a fixed version, read this.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#566
Did this never get packaged up into the repos?
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#567
Originally Posted by sixwheeledbeast View Post
Did this never get packaged up into the repos?
Nope. A shame, isn't it?
As it would be so simple (but as I personally do not use cloud storage ...).
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Marshall Banana's Avatar
Posts: 94 | Thanked: 209 times | Joined on Oct 2009 @ Germany
#568
Originally Posted by peterleinchen View Post
Nope. A shame, isn't it?
As it would be so simple (but as I personally do not use cloud storage ...).
Well, when i tried to get it into the repos it was not easy (original maintainer not reachable => update of dropn900 in repos not possible). Now this seems to be different, as sixwheeledbeast told me.

However, i'm not sure how to handle the update in the cleanest way. The old dropn900 depends on the package "python-dropbox-client", which was the name for the api provided by dropbox back then.

When i ported dropn900 to the new (SSL only) dropbox api, it was called "dropbox-python-sdk". I made a maemo package back then with version 1.5.1 of the sdk. Version 1.5.1 is the sdk version currently in use by the patched dropn900

I have a working version of the current sdk (2.2.0) on my n900, and it is a bit faster than 1.5.1.
Downside: It needs urllib3 backport for python2.5 (size: 3.4 MB), which i took from modrana.

So, for me the open questions are:
Remove python-dropbox-client dependency from dropn900 and replace by dropbox-python-sdk?
What to do with python-dropbox-client?
What's the best way to update dropbox-python-sdk to 2.2.0?
 

The Following 6 Users Say Thank You to Marshall Banana For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#569
I thought it was only patching a script or similar (did.not.fully.follow, sorry).

So I would propose:
drop the obsolete (it is fully obsolete, right?) dependency
add the new dependency in v1.5.1
push it to devel and testing

add a new package to devel with dependency to newer 2.2.0
What's the best way to update dropbox-python-sdk to 2.2.0?
I do not understand that question fully.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:02.