[Mailman-Users] ImportError: No module named _md5
msapiro at value.net
Mon Oct 29 17:50:13 CET 2007
Helmut Schneider wrote:
>I'm running mailman 2.1.9 chrooted. Recently FreeBSD switched from Python2.4
>to Python2.5 as default. As an effect mailman won't start anymore using
>Traceback (most recent call last):
> File "/usr/local/mailman/bin/mailmanctl", line 107, in <module>
> from Mailman import Utils
> File "/usr/local/mailman/Mailman/Utils.py", line 32, in <module>
> import sha
> File "/usr/local/lib/python2.5/sha.py", line 6, in <module>
> from hashlib import sha1 as sha
> File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
> md5 = __get_builtin_constructor('md5')
> File "/usr/local/lib/python2.5/hashlib.py", line 60, in
> import _md5
>ImportError: No module named _md5
>What did I miss? I suspect that some additional files need to be copied to
>the jail but which ones? Using Python2.4 mailman still works fine.
I had a similar if not the identical problem when I upgraded from
python 2.4 to 2.5 on a test system under cygwin (no chroot).
It turned out that Python 2.4 had been installed with prefix = /usr
(library in /usr/lib/python2.4) and Python 2.5 was installed with
prefix = /usr/local (library in /usr/local/lib/python2.5).
I think I could have fixed it with a few symlinks, but I wound up
removing and reinstalling python 2.5 with prefix = /usr.
Perhaps this will help you figure out what you need to do.
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users