[Numpy-discussion] _md5 module?

Charles R Harris charlesr.harris@gmail....
Tue Jun 24 11:30:44 CDT 2008


On Tue, Jun 24, 2008 at 10:07 AM, Charles Doutriaux <doutriaux1@llnl.gov>
wrote:

> Hello on redhat enterprise 5 i get this with numpy 1.1 and python 2.5
>
> Any idea if we can get around tihs? short of rebuilding python with md5
> support i guess.
> Shouldn't numpy catch that before building?
>
> C.
>
>
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/__init__.py",
> line 42, in <module>
>    import add_newdocs
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/add_newdocs.py",
> line 5, in <module>
>    from lib import add_newdoc
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/lib/__init__.py",
> line 18, in <module>
>    from io import *
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/lib/io.py",
> line 16, in <module>
>    from _datasource import DataSource
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/site-packages/numpy/lib/_datasource.py",
> line 42, in <module>
>    from urllib2 import urlopen, URLError
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/urllib2.py",
> line 91, in <module>
>    import hashlib
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/hashlib.py",
> line 133, in <module>
>    md5 = __get_builtin_constructor('md5')
>  File
> "/usr/local/cdat/release/5.0e/5.0.0.alpha7/lib/python2.5/hashlib.py",
> line 60, in __get_builtin_constructor
>    import _md5
> ImportError: No module named _md5
>
>
Python2.5 should come with md5, at least it does on fedora 8:
/usr/lib/python2.5/lib-dynload/_md5module.so. It is also deprecated as of
2.5, so we might need some modifications anyway.

Are you using the python built by CDAT? I found the easiest way to get CDAT
4.3 working was to copy over the relevant site-packages from the CDAT built
python to the system python (of the same version). You could maybe go the
other way also.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080624/0e22d7d7/attachment.html 


More information about the Numpy-discussion mailing list