[Mailman-Users] Import email.message fails for Mailman 2.1.14 onAIX 5.3
Mark Sapiro
mark at msapiro.net
Tue May 17 17:02:22 CEST 2011
Steve Pogue wrote:
>I'm trying to get Mailman 2.1.14 running on AIX 5.3 using Python 2.6.2. The
>first part of the installation works fine but I'm getting the following
>traceback on the update task. I've also tried running list_lists which had
>the same effect. I am able to go into interactive mode with Python and
>invoke the imports without any problems. Any idea what the issue is here?
>TIA,
>Steve
>
># make update
>Traceback (most recent call last):
> File "bin/update", line 51, in <module>
> from Mailman import MailList
> File "/usr/local/mailman/Mailman/MailList.py", line 51, in <module>
> from Mailman.Archiver import Archiver
> File "/usr/local/mailman/Mailman/Archiver/__init__.py", line 17, in
><module>
> from Archiver import *
> File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 32, in
><module>
> from Mailman import Mailbox
> File "/usr/local/mailman/Mailman/Mailbox.py", line 21, in <module>
> import mailbox
> File "/opt/freeware/lib/python2.6/mailbox.py", line 19, in <module>
> import email.message
>ImportError: No module named message
Almost certainly the problem is that you have an older email package in
/usr/local/mailman/pythonlib/email/. The standard configure/make
process in 2.1.14 should have removed that so that mailman uses the
email package in /opt/freeware/lib/python2.6/email.
If you remove the /usr/local/mailman/pythonlib/email/ directory, that
will probably fix the issue.
Also, if you can successfully do the following in an interactive Python
session:
unicode('OK', 'iso-2022-jp')
unicode('OK', 'euc-kr')
you can remove any japanese and korean codecs packages from
/usr/local/mailman/pythonlib/.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list