#14527 closed defect (fixed)
python25: hashlib module broken
Reported by: | reiffert@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | python25 hashlib | Cc: | |
Port: |
Description
g4:~ thomas$ python2.5 Python 2.5.2 (r252:60911, Feb 29 2008, 16:18:01) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import hashlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module> File "/opt/local/lib/python2.5/hashlib.py", line 133, in <module>
md5 = get_builtin_constructor('md5')
File "/opt/local/lib/python2.5/hashlib.py", line 60, in get_builtin_constructor
import _md5
ImportError: No module named _md5
We need this to work out for python30-doc as the Docs get build by python25 and import urllib2.
Attachments (1)
Change History (5)
Changed 17 years ago by reiffert@…
comment:1 Changed 17 years ago by reiffert@…
comment:2 Changed 17 years ago by reiffert@…
grep disabled_modu setup.py disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","readline","_curses","_curses_panel"]
It looks like this is causing the trouble.
comment:3 Changed 17 years ago by reiffert@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Just found .. http://trac.macports.org/projects/macports/ticket/14342
Installing py25-hashlib fixes my needs. Sigh.
comment:4 Changed 17 years ago by raimue (Rainer Müller)
It is also covered in the FAQ, http://trac.macosforge.org/projects/macports/wiki/FAQ#WhycantIimportfooinPython2.5
Have a look into the attached file "error.txt" as pasting the error message on trac make it look somewhat strange.