[uWSGI] uWSGI - No module named _md5 error when working with virtualenv

Roberto De Ioris roberto at unbit.it
Mon Nov 15 07:29:57 CET 2010


> Hi all,
>
> I get this error on uWSGI:
> django.core.exceptions.ImproperlyConfigured: Error importing middleware
> django.middleware.common: "No module named _md5"
>
> I got a DeprecationWarning when I import md5:
>
> Python 2.6.6 (r266:84292, Nov 11 2010, 11:59:08)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import md5
> __main__:1: DeprecationWarning: the md5 module is deprecated; use hashlib
> instead
>>>> import _md5
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named _md5
>>>> import hashlib
>>>> import _hashlib
>
>


Check if you have compiled in openssl in your python installation.

-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list