Python 2.5.2 error on Solaris, No module named _md5

skip at pobox.com skip at pobox.com
Thu Dec 11 17:50:12 EST 2008


    Shawn> When I "import md5", I got:
    ...
    Shawn>     import _md5
    Shawn> ImportError: No module named _md5

Check the output of the build process to see if the _md5 extension failed to
build, and if so, dig into the setup.py file a bit.  It's likely that you
forgot to include the proper include and lib directories when building
Python so distutils didn't know where to find the necessary header files and
libraries.  Also, make sure the necessary stuff is actually installed on
your system.  Many Linux systems install header files and libraries as
separate packages.  You might have the latter but not the former.

-- 
Skip Montanaro - skip at pobox.com - http://smontanaro.dyndns.org/



More information about the Python-list mailing list