Python 2.5.2 error on Solaris, No module named _md5

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Thu Dec 11 16:04:38 EST 2008


hi list,

I tried to build Python 2.5.2 on Solaris 9 with gcc 3.4.6 under my user
account. (there is already an older 2.5.1 on /usr/local/, so I used
"make -I install")

When I "import md5", I got:

Python 2.5.2 (r252:60911, Dec 11 2008, 15:16:41) 
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import md5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sgong/dev181/dist/lib/python2.5/md5.py", line 6, in
<module>
    from hashlib import md5
  File "/home/sgong/dev181/dist/lib/python2.5/hashlib.py", line 133, in
<module>
    md5 = __get_builtin_constructor('md5')
  File "/home/sgong/dev181/dist/lib/python2.5/hashlib.py", line 60, in
__get_builtin_constructor
    import _md5
ImportError: No module named _md5

I then tried Python 2.6.1 but with the same error.

Any help is appreciated.
thanks,
Shawn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081211/69934a30/attachment-0001.html>


More information about the Python-list mailing list