Differences between revisions 2 and 3
Revision 2 as of 2009-09-24 14:50:59
Size: 5149
Editor: msapiro
Comment: added note about 2.1.12/Python 2.6.x issue.
Revision 3 as of 2009-09-24 14:51:00
Size: 5721
Editor: msapiro
Comment: Migrated to Confluence 4.0
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/14352594 #pragma page-filename DOC/versions/4030629
Line 3: Line 3:
Line 28: Line 29:
See the thread including the message by Barry Warsaw at <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016889.html]]>. See the thread including the message by Barry Warsaw at <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016889.html|http://mail.python.org/pipermail/mailman-developers/2004-May/016889.html]]>.
Line 32: Line 33:
For further details, see <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016903.html]]>, <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016892.html]]>, <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016893.html]]>, and the message by Jim Tittsler at <[[http://mail.python.org/pipermail/mailman-users/2004-December/041324.html]]>. For further details, see <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016903.html|http://mail.python.org/pipermail/mailman-developers/2004-May/016903.html]]>, <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016892.html|http://mail.python.org/pipermail/mailman-developers/2004-May/016892.html]]>, <[[http://mail.python.org/pipermail/mailman-developers/2004-May/016893.html|http://mail.python.org/pipermail/mailman-developers/2004-May/016893.html]]>, and the message by Jim Tittsler at <[[http://mail.python.org/pipermail/mailman-users/2004-December/041324.html|http://mail.python.org/pipermail/mailman-users/2004-December/041324.html]]>.
Line 38: Line 39:
    * '''Update''': Note that Mailman 2.1.9 was released with source code changes that also require Python 2.3 (or later). In all likelihood, this will be fixed (again), but in the meanwhile your options are to either fix the source code yourself (see <[[http://mail.python.org/pipermail/mailman-users/2006-September/053296.html]]>, or to upgrade your version of Python.
'''Update''': Note that Mailman 2.1.9 was released with source code changes that also require Python 2.3 (or later). In all likelihood, this will be fixed (again), but in the meanwhile your options are to either fix the source code yourself (see <[[http://mail.python.org/pipermail/mailman-users/2006-September/053296.html|http://mail.python.org/pipermail/mailman-users/2006-September/053296.html]]>, or to upgrade your version of Python.
Line 43: Line 46:
'''Update - March 2009''': Mailman 2.1.12 has been released and requires Python 2.4.x or later. It is the first Mailman release compatible with Python 2.6. An incompatibility between Mailman 2.1.12 and Python 2.4.4 through 2.4.6 has been observed. Mailman 2.1.12 will work with Python 2.4.<<Verbatim([)>>123<<Verbatim(])>>, but we recommend Python 2.5.x or 2.6.x for Mailman 2.1.12. There is also a patch to the Python 2.4.<<Verbatim([)>>456<<Verbatim(])>> email/Charset.py module at <[[http://launchpadlibrarian.net/23670138/Charset.py.patch]]> that will enable Mailman to work with those versions. '''Update - March 2009''': Mailman 2.1.12 has been released and requires Python 2.4.x or later. It is the first Mailman release compatible with Python 2.6. An incompatibility between Mailman 2.1.12 and Python 2.4.4 through 2.4.6 has been observed. Mailman 2.1.12 will work with Python 2.4.[123], but we recommend Python 2.5.x or 2.6.x for Mailman 2.1.12. There is also a patch to the Python 2.4.[456] email/Charset.py module at <[[http://launchpadlibrarian.net/23670138/Charset.py.patch|http://launchpadlibrarian.net/23670138/Charset.py.patch]]> that will enable Mailman to work with those versions.
Line 45: Line 48:
'''September 2009''': There may also be an incompatibility between Mailman 2.1.12 and Python 2.5 (not 2.5.x). See the thread 'What causes "decoding Unicode is not supported"?' starting at <http://mail.python.org/pipermail/mailman-users/2009-September/066979.html> '''September 2009''': There may also be an incompatibility between Mailman 2.1.12 and Python 2.5 (not 2.5.x). See the thread 'What causes "decoding Unicode is not supported"?' starting at <[[http://mail.python.org/pipermail/mailman-users/2009-September/066979.html|http://mail.python.org/pipermail/mailman-users/2009-September/066979.html]]>
Line 47: Line 50:
Another Python 2.6.x incompatibility has been discovered that wasn't addressed in Mailman 2.1.12. This affects holding messages for approval if HOLD_MESSAGES_AS_PICKLES = No and 'Preserve messages for the site administrator' from the admindb interface. See <[[http://mail.python.org/pipermail/mailman-users/2009-September/067223.html]]> for a patch to fix this. Another Python 2.6.x incompatibility has been discovered that wasn't addressed in Mailman 2.1.12. This affects holding messages for approval if HOLD_MESSAGES_AS_PICKLES = No and 'Preserve messages for the site administrator' from the admindb interface. See <[[http://mail.python.org/pipermail/mailman-users/2009-September/067223.html|http://mail.python.org/pipermail/mailman-users/2009-September/067223.html]]> for a patch to fix this.
Line 49: Line 52:
''Last changed on Mon Feb 12 20:08:41 2007 by'' Brad Knowles
<<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].
''Last changed on Mon Feb 12 20:08:41 2007 by'' Brad Knowles<<BR>> Converted from the Mailman FAQ Wizard

This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].

5.8. What version of Python is required for Mailman 2.1.5 and 2.1.9 and 2.1.10 and 2.1.12?

This is the other side of the same issue discussed in Mailman FAQ entry 4.42 at <4.42 I installed or upgraded Mailman, but now I get the error "NameError global name 'True' is not defined". What can I do?>.

You may see a sequence of error messages which looks something like this:

 Dec 13 00:31:03 2004 (24653) Traceback (most recent call last):
  File "/Users/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
  File "/Users/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/Users/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/Users/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/Users/mailman/Mailman/Handlers/Moderate.py", line 67, in process
    ModeratedMemberPost)
  File "/Users/mailman/Mailman/Handlers/Hold.py", line 214, in hold_for_approval
    id = mlist.HoldMessage(msg, reason, msgdata)
  File "/Users/mailman/Mailman/ListAdmin.py", line 180, in HoldMessage
    id = self.__nextid()
  File "/Users/mailman/Mailman/ListAdmin.py", line 113, in __nextid
    while True:
 NameError: global name 'True' is not defined

See the thread including the message by Barry Warsaw at <http://mail.python.org/pipermail/mailman-developers/2004-May/016889.html>.

In short, Mailman 2.1.5 needs recent versions of Python to support it, specifically Python 2.3. If you're using RedHat or Debian-Stable versions of Linux, or Mac OS X 10.2 "Jaguar", you may need to install Python 2.3 from source.

For further details, see <http://mail.python.org/pipermail/mailman-developers/2004-May/016903.html>, <http://mail.python.org/pipermail/mailman-developers/2004-May/016892.html>, <http://mail.python.org/pipermail/mailman-developers/2004-May/016893.html>, and the message by Jim Tittsler at <http://mail.python.org/pipermail/mailman-users/2004-December/041324.html>.

For more on the requirements of Mailman 2.1.5, see <What MTA features are required for use with Mailman 2.1.5?>.

Note that this is considered to be a bug in version 2.1.5. The version of Mailman 2.1.x currently in CVS has been fixed so that it should work with older versions of Python (including as old as Python 2.1), and this will be incorporated into the 2.1.6 release version. However, Python 2.3 (or later) is still strongly recommended.

Update: Note that Mailman 2.1.9 was released with source code changes that also require Python 2.3 (or later). In all likelihood, this will be fixed (again), but in the meanwhile your options are to either fix the source code yourself (see <http://mail.python.org/pipermail/mailman-users/2006-September/053296.html>, or to upgrade your version of Python.

Note that the Sibling Lists feature introduced in Mailman 2.1.10 requires Python 2.4 or later.

Also note that Mailman versions earlier than 2.1.9 are incompatible with Python 2.5 but there are no problems with Mailman 2.1.10 and later and Python 2.5. At this point in time, we recommend you use the latest minor version from the Python 2.4.x tree for Mailman 2.1.9 and the latest minor version from the Python 2.5.x tree for Mailman 2.1.10 and later.

Update - March 2009: Mailman 2.1.12 has been released and requires Python 2.4.x or later. It is the first Mailman release compatible with Python 2.6. An incompatibility between Mailman 2.1.12 and Python 2.4.4 through 2.4.6 has been observed. Mailman 2.1.12 will work with Python 2.4.[123], but we recommend Python 2.5.x or 2.6.x for Mailman 2.1.12. There is also a patch to the Python 2.4.[456] email/Charset.py module at <http://launchpadlibrarian.net/23670138/Charset.py.patch> that will enable Mailman to work with those versions.

September 2009: There may also be an incompatibility between Mailman 2.1.12 and Python 2.5 (not 2.5.x). See the thread 'What causes "decoding Unicode is not supported"?' starting at <http://mail.python.org/pipermail/mailman-users/2009-September/066979.html>

Another Python 2.6.x incompatibility has been discovered that wasn't addressed in Mailman 2.1.12. This affects holding messages for approval if HOLD_MESSAGES_AS_PICKLES = No and 'Preserve messages for the site administrator' from the admindb interface. See <http://mail.python.org/pipermail/mailman-users/2009-September/067223.html> for a patch to fix this.

Last changed on Mon Feb 12 20:08:41 2007 by Brad Knowles
Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/What version of Python is required for Mailman 2.1.5 and 2.1.9 and 2.1.10 and 2.1.12? (last edited 2018-06-05 19:17:44 by msapiro)