Hi,

on our production server we (still) run Red Hat Enterprise Linux 3. The most recent version of Python there is Python 2.2.3. Currently we run Mailman 2.1.9. I've built an RPM for Mailman 2.1.11 that we were planning on installing soon. However, we installed it on a test system and found this issue:

Jan 14 16:10:28 2009 (3972) Uncaught runner exception: No module named sets
Jan 14 16:10:28 2009 (3972) Traceback (most recent call last):
 File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in _oneloop
   self._onefile(msg, msgdata)
 File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, in _onefile
   keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
   more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 150, in _dopipeline
   __import__(modname)
 File "/usr/lib/mailman/Mailman/Handlers/CalcRecips.py", line 41, in ?
   from sets import Set as set
ImportError: No module named sets

The relevant source is this:

# Use set for sibling list recipient calculation
try:
   set
except NameError: # Python2.3
   from sets import Set as set

It seems as though Python >= 2.4 has "set", Python 2.3 has "Set" as an import, but Python 2.2 has neither. The sibling feature was introduced with Mailman 2.1.10, so I guess that version would have the same issue. I don't recall having read anything about that. Does nobody else use such an old Python version?

Anyway, is there a workaround for 2.2 or do we have to either install a separate Python or upgrade to RHEL 5 if we want to update Mailman? I know that Mailman 2.1.12 will require Python 2.4, but I had been hoping for one last update that supports 2.2 ...

Thanks, Sebastian
--
Sebastian Hagedorn - Listmaster - RZKR-R1 (Gebäude 52), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

Attachment: pgpcqFyQ06tm9.pgp
Description: PGP signature

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9

Reply via email to