From: "Mark Sapiro" <[EMAIL PROTECTED]> > 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 Python2.5: >>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 >>__get_builtin_constructor >> 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.
It helped, yes, but I don't know how to solve it :) When I start mailman non-chrooted python requests md5.py while when chrooted it tries to access _md5.py. That only happens with md5, e.g. sha1 is not effected. [EMAIL PROTECTED] ~]# ktrace -id /usr/local/etc/rc.d/mailman start Site list is missing: mailman [EMAIL PROTECTED] ~]# kdump -sf ./ktrace.out | grep md5 22569 python2.5 NAMI "/usr/local/mailman/Mailman/md5" 22569 python2.5 NAMI "/usr/local/mailman/Mailman/md5.so" 22569 python2.5 NAMI "/usr/local/mailman/Mailman/md5module.so" 22569 python2.5 NAMI "/usr/local/mailman/Mailman/md5.py" 22569 python2.5 NAMI "/usr/local/mailman/Mailman/md5.pyc" 22569 python2.5 NAMI "/usr/local/mailman/pythonlib/md5" 22569 python2.5 NAMI "/usr/local/mailman/pythonlib/md5.so" 22569 python2.5 NAMI "/usr/local/mailman/pythonlib/md5module.so" 22569 python2.5 NAMI "/usr/local/mailman/pythonlib/md5.py" 22569 python2.5 NAMI "/usr/local/mailman/pythonlib/md5.pyc" 22569 python2.5 NAMI "/usr/local/mailman/md5" 22569 python2.5 NAMI "/usr/local/mailman/md5.so" 22569 python2.5 NAMI "/usr/local/mailman/md5module.so" 22569 python2.5 NAMI "/usr/local/mailman/md5.py" 22569 python2.5 NAMI "/usr/local/mailman/md5.pyc" 22569 python2.5 NAMI "/usr/local/mailman/bin/md5" 22569 python2.5 NAMI "/usr/local/mailman/bin/md5.so" 22569 python2.5 NAMI "/usr/local/mailman/bin/md5module.so" 22569 python2.5 NAMI "/usr/local/mailman/bin/md5.py" 22569 python2.5 NAMI "/usr/local/mailman/bin/md5.pyc" 22569 python2.5 NAMI "/usr/local/lib/python2.5/md5" 22569 python2.5 NAMI "/usr/local/lib/python2.5/md5.so" 22569 python2.5 NAMI "/usr/local/lib/python2.5/md5module.so" 22569 python2.5 NAMI "/usr/local/lib/python2.5/md5.py" 22569 python2.5 NAMI "/usr/local/lib/python2.5/md5.pyc" [EMAIL PROTECTED] ~]# ktrace -id /usr/local/etc/rc.d/mailman-chroot start 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 __get_builtin_constructor import _md5 File "/usr/local/lib/python2.5/_md5.py", line 6, in <module> from hashlib import md5 ImportError: cannot import name md5 [EMAIL PROTECTED] ~]# kdump -sf ./ktrace.out | grep md5 22576 python2.5 NAMI "/usr/local/mailman/pythonlib/_md5" 22576 python2.5 NAMI "/usr/local/mailman/pythonlib/_md5.so" 22576 python2.5 NAMI "/usr/local/mailman/pythonlib/_md5module.so" 22576 python2.5 NAMI "/usr/local/mailman/pythonlib/_md5.py" 22576 python2.5 NAMI "/usr/local/mailman/pythonlib/_md5.pyc" 22576 python2.5 NAMI "/usr/local/mailman/_md5" 22576 python2.5 NAMI "/usr/local/mailman/_md5.so" 22576 python2.5 NAMI "/usr/local/mailman/_md5module.so" 22576 python2.5 NAMI "/usr/local/mailman/_md5.py" 22576 python2.5 NAMI "/usr/local/mailman/_md5.pyc" 22576 python2.5 NAMI "/usr/local/mailman/bin/_md5" 22576 python2.5 NAMI "/usr/local/mailman/bin/_md5.so" 22576 python2.5 NAMI "/usr/local/mailman/bin/_md5module.so" 22576 python2.5 NAMI "/usr/local/mailman/bin/_md5.py" 22576 python2.5 NAMI "/usr/local/mailman/bin/_md5.pyc" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.so" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5module.so" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.py" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.pyc" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.pyc" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.pyc" 22576 python2.5 NAMI "/usr/local/lib/python2.5/_md5.py" [EMAIL PROTECTED] ~]# ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp