[MacPorts] #19905: ImportError: No module named _md5

MacPorts noreply at macports.org
Tue Jun 9 21:31:21 PDT 2009


#19905: ImportError: No module named _md5
-------------------------------+--------------------------------------------
 Reporter:  ajb78@…            |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.7.1                                
 Keywords:                     |        Port:                                       
-------------------------------+--------------------------------------------
 When I try to import pylab from the macports python I get the following
 error:

 import pylab
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in
 <module>
     from matplotlib.pylab import *
   File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py", line
 206, in <module>
     from matplotlib import mpl  # pulls in most modules
   File "/opt/local/lib/python2.5/site-packages/matplotlib/mpl.py", line
 11, in <module>
     from matplotlib import finance
   File "/opt/local/lib/python2.5/site-packages/matplotlib/finance.py",
 line 13, in <module>
     from md5 import md5 #Deprecated in 2.5
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/md5.py",
 line 6, in <module>
     from hashlib import md5
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
 line 133, in <module>
     md5 = __get_builtin_constructor('md5')
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/hashlib.py",
 line 60, in __get_builtin_constructor
     import _md5
 ImportError: No module named _md5

 I have py25-hashlib installed and interestly enough I can import numpy
 (which has a dependence on py25-hashlib).  I also have a problem trying to
 run ipython and now even trying to install the port.  I can the same
 error.

-- 
Ticket URL: <http://trac.macports.org/ticket/19905>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list