- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with hashlib in python
Operating System - HP-UX
1820528
Members
2119
Online
109626
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2009 03:20 AM
тАО04-02-2009 03:20 AM
problem with hashlib in python
Hello,
I have problem with import hashlib in python. I found this:
$ python
Python 2.5.1 (r251:54863, Nov 7 2007, 22:40:57) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.5/hashlib.py", line 133, in
md5 = __get_builtin_constructor('md5')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
After this I tried import _hashlib, and I've got this output:
>>> import _hashlib
Traceback (most recent call last):
File "", line 1, in
ImportError: Unsatisfied code symbol 'EVP_MD_CTX_md' in load module '/usr/local/lib/python2.5/lib-dynload/_hashlib.so'.
Any idea?
I have problem with import hashlib in python. I found this:
$ python
Python 2.5.1 (r251:54863, Nov 7 2007, 22:40:57) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
Traceback (most recent call last):
File "
File "/usr/local/lib/python2.5/hashlib.py", line 133, in
md5 = __get_builtin_constructor('md5')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
After this I tried import _hashlib, and I've got this output:
>>> import _hashlib
Traceback (most recent call last):
File "
ImportError: Unsatisfied code symbol 'EVP_MD_CTX_md' in load module '/usr/local/lib/python2.5/lib-dynload/_hashlib.so'.
Any idea?
- Tags:
- Python
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2009 09:33 PM
тАО04-02-2009 09:33 PM
Re: problem with hashlib in python
were did this python version come from? seems like it can't import md5, try to 'import md5'.
could also be that some environments are not set so python is not finding all your modules.
all vars are listed here:
http://docs.python.org/using/cmdline.html#environment-variables
could also be that some environments are not set so python is not finding all your modules.
all vars are listed here:
http://docs.python.org/using/cmdline.html#environment-variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 12:21 PM
тАО04-07-2009 12:21 PM
Re: problem with hashlib in python
Hello,
(i'm coworker of Marian)
thank You for Your answer Dirk, but trying to set PYTHONHOME did not help - i investigated further, and found that
EVP_MD_CTX_md is just macro defined in /usr/include/openssl/evp.h
and in our _haslib.so is:
$ objdump -T /usr/local/lib/python2.5/lib-dynload/_hashlib.so | grep EVP_MD_CTX_md
0421b600 DF *UND* 00000000 EVP_MD_CTX_md
(and i checked (for being sure) EVP_MD_CTX_md is not defined in any of libcrypto.so*, libssl.so* on our system)
so maybe different versions of openssl was used to build python
(i'm coworker of Marian)
thank You for Your answer Dirk, but trying to set PYTHONHOME did not help - i investigated further, and found that
EVP_MD_CTX_md is just macro defined in /usr/include/openssl/evp.h
and in our _haslib.so is:
$ objdump -T /usr/local/lib/python2.5/lib-dynload/_hashlib.so | grep EVP_MD_CTX_md
0421b600 DF *UND* 00000000 EVP_MD_CTX_md
(and i checked (for being sure) EVP_MD_CTX_md is not defined in any of libcrypto.so*, libssl.so* on our system)
so maybe different versions of openssl was used to build python
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP