OpenSSL and Python
Hello, I am porting my code to a new server. I have installed Python 2.5.2 working on a linux box. The problem is I need to know what version of pyOpenSSL and OpenSSL libs are compatible with this version of linux. I'm seeing the below: python Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) [GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2 Type help, copyright, credits or license for more information. import OpenSSL Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.5/site-packages/OpenSSL/__init__.py, line 11, in module import rand, crypto, SSL, tsafe ImportError: /usr/local/lib/python2.5/site-packages/OpenSSL/crypto.so: undefined symbol: PyUnicodeUCS2_Decode Anybody know what the workaround is here? Thanks, Garyc __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: OpenSSL and Python
Le mercredi 21 avril 2010 à 16:06 -0700, gary clark a écrit : ImportError: /usr/local/lib/python2.5/site-packages/OpenSSL/crypto.so: undefined symbol: PyUnicodeUCS2_Decode This is a Python problem, not an unicode one. I suggest posting on comp.lang.python. Basically, you should use the pyOpenSSL package provided by your Linux distribution, or compile it from the source; but not install a standalone binary package. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: OpenSSL and Python
Appreciated. Garyc --- On Wed, 4/21/10, Antoine Pitrou solip...@pitrou.net wrote: From: Antoine Pitrou solip...@pitrou.net Subject: Re: OpenSSL and Python To: openssl-users@openssl.org Date: Wednesday, April 21, 2010, 6:39 PM Le mercredi 21 avril 2010 à 16:06 -0700, gary clark a écrit : ImportError: /usr/local/lib/python2.5/site-packages/OpenSSL/crypto.so: undefined symbol: PyUnicodeUCS2_Decode This is a Python problem, not an unicode one. I suggest posting on comp.lang.python. Basically, you should use the pyOpenSSL package provided by your Linux distribution, or compile it from the source; but not install a standalone binary package. __ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Trying to use openssl with Python
root [ ~ ]# openssl version OpenSSL 0.9.8m 25 Feb 2010 root [ ~ ]# I compiled and installed Openssl from source. I need to use Python with various programs,that need md5. When the programs try the md5, they get errors. So what I've done to try to narrow down the problem is go into Python and try to import hashlib. This is the result: import _hashlib dlopen(/usr/lib/python2.6/site-packages/_hashlib.so, 2); Traceback (most recent call last): File stdin, line 1, in module ImportError: /usr/lib/libssl.so.0.9.8: undefined symbol: pqueue_size Any idea how to resolve this issue? __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org