[Numpy-discussion] _md5 module?

Charles Doutriaux doutriaux1 at llnl.gov
Tue Jun 24 13:18:41 EDT 2008


Hi Charles,

Yes.. unfortunately we have to be able to build out of the box, we can't 
rely on much anything (Except compiler and X) to be there already...

It would be much easier for CDAT to simply say getpython 2.5 and numpy 
1.1 and all the externals, and if you ever get it together come back see 
us :)

Unfortunately i don't think we'd have much success that way :)

I'll keep looking... I don't understand why python didn't build with 
md5. Never happened before...

I guess it's more of a python issue than numpy... But a syou said it's 
deprecated so you might as well want to replace it.

C.

Charles R Harris wrote:
>
>
> On Tue, Jun 24, 2008 at 10:07 AM, Charles Doutriaux 
> <doutriaux1 at llnl.gov <mailto:doutriaux1 at 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>   




More information about the NumPy-Discussion mailing list