No module named _md5

Xin Liu smilerliu at gmail.com
Fri Dec 28 23:25:41 PST 2007


You'll need to install py25-hashlib.

Best
Regards,

Xin Liu

On Dec 28, 2007 10:55 PM, Micheal Cooper <cooper.me at gmail.com> wrote:
> I found a post on this group about this issue:
> http://lists.macosforge.org/pipermail/macports-users/2007-March/001927.html
> but it was not very helpful.
>
> I am trying to set up a django dev environment on my macbook pro tiger. I am
> a newbie switcher, and I have been trying to get this working for over a
> week now.
>
> I wrote up my setup for the system (so far), in the following blogpost:
> http://shinmaikeru.blogspot.com/2007/12/howto-django-dev-environment-on-macosx.html
>
> The errors I get are as follows:
> ------
> netadminmac:~/Webdev/django/sites/mysite mcooper$ python manage.py runserver
> Validating models...
> Unhandled exception in thread started by <function inner_run at 0x11c2970>
> Traceback (most recent call last):
>   File
> "/opt/local/lib/python2.5/site-packages/django/core/management/commands/runserver.py",
> line 47, in inner_run
>     self.validate(display_num_errors=True)
>   File
> "/opt/local/lib/python2.5/site-packages/django/core/management/base.py",
> line 112, in validate
>     num_errors = get_validation_errors(s, app)
>   File
> "/opt/local/lib/python2.5/site-packages/django/core/management/validation.py",
> line 22, in get_validation_errors
>     from django.db import models, connection
>   File
> "/opt/local/lib/python2.5/site-packages/django/db/models/__init__.py", line
> 3, in <module>
>     from django.core import validators
>   File "/opt/local/lib/python2.5/site-packages/django/core/validators.py",
> line 11, in <module>
>     import urllib2
>   File "/opt/local/lib/python2.5/urllib2.py", line 88, in <module>
>     import hashlib
>   File "/opt/local/lib/python2.5/hashlib.py", line 133, in <module>
>      md5 = __get_builtin_constructor('md5')
>   File "/opt/local/lib/python2.5/hashlib.py", line 60, in
> __get_builtin_constructor
>     import _md5
> ImportError: No module named _md5
> ------
>
>  Any help would be appreciated.


More information about the macports-users mailing list