"No module named _md5" error in Python 2.5
I have tried to install the latest setuptools for Python 2.5 by using the script ez_setup.py from PEAK's website but the script aborts with the error: File "/opt/local/lib/python2.5/hashlib.py", line 31, in __get_builtin_constructor import _md5 ImportError: No module named _md5 With the official Python 2.5 distribution such an error doesn't occur and the command "from hashlib import md5" works flawlessly.
Hi, I ran into the same error today . . . I looked at the patch for setup.py and it looks that the line: +disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","r eadline","_curses","_curses_panel"] disables the module needed for md5 hashing - but why ? Does Python 2.5.1 not work unpatched – it sounds like it works for Silvio at least . . . Peter Am 08.03.2007 um 11:14 schrieb Silvio Domini:
I have tried to install the latest setuptools for Python 2.5 by using the script ez_setup.py from PEAK's website but the script aborts with the error:
File "/opt/local/lib/python2.5/hashlib.py", line 31, in __get_builtin_constructor import _md5 ImportError: No module named _md5
With the official Python 2.5 distribution such an error doesn't occur and the command "from hashlib import md5" works flawlessly. _______________________________________________ macports-users mailing list
participants (2)
-
Peter
-
Silvio Domini