[MacPorts] #19905: ImportError: No module named _md5
MacPorts
noreply at macports.org
Wed Jun 10 13:07:50 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: python25
-------------------------------+--------------------------------------------
Old description:
> 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.
New description:
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.
--
Comment(by ram@…):
You need to update your python25 port, the latest is 2.5.4_5
--
Ticket URL: <http://trac.macports.org/ticket/19905#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list