[Mailman-Users] digests/Python/2.1.12 upgrade

Christopher Adams adamsca at gmail.com
Sat Jul 18 22:38:49 CEST 2009


If I issue the python command, I get this:

Python 2.5 (r25:51908, Jul 17 2007, 11:25:13)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20)] on linux2

I also have this in the mailman directory:


>From the error log:

Jul 18 13:36:37 2009 admin(29902): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(29902): [----- Mailman Version: 2.1.12 -----]
admin(29902): [----- Traceback ------]
admin(29902): Traceback (most recent call last):
admin(29902):   File "/usr/local/mailman/scripts/driver", line 112, in run_main
admin(29902):     main()
admin(29902):   File "/usr/local/mailman/Mailman/Cgi/admin.py", line
173, in main
admin(29902):     change_options(mlist, category, subcat, cgidata, doc)
admin(29902):   File "/usr/local/mailman/Mailman/Cgi/admin.py", line
1296, in change_options
admin(29902):     gui.handleForm(mlist, category, subcat, cgidata, doc)
admin(29902):   File "/usr/local/mailman/Mailman/Gui/GUIBase.py", line
176, in handleForm
admin(29902):     self._setValue(mlist, property, val, doc)
admin(29902):   File "/usr/local/mailman/Mailman/Gui/Digest.py", line
148, in _setValue
admin(29902):     status = mlist.send_digest_now()
admin(29902):   File "/usr/local/mailman/Mailman/Digester.py", line
60, in send_digest_now
admin(29902):     ToDigest.send_digests(self, mboxfp)
admin(29902):   File
"/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 142, in
admin(29902):     send_i18n_digests(mlist, mboxfp)
admin(29902):   File
"/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 339, in
admin(29902):     mcset = msg.get_content_charset('')
admin(29902):   File "/usr/local/lib/python2.5/email/message.py", line
759, in get_content_charset
admin(29902):     charset = unicode(charset, 'us-ascii').encode('us-ascii')
admin(29902): TypeError: decoding Unicode is not supported
admin(29902): [----- Python Information -----]
admin(29902): sys.version     =   2.5 (r25:51908, Jul 17 2007, 11:25:13)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20)]
admin(29902): sys.executable  =   /usr/local/bin/python
admin(29902): sys.prefix      =   /usr/local
admin(29902): sys.exec_prefix =   /usr/local
admin(29902): sys.path        =   /usr/local
admin(29902): sys.platform    =   linux2
admin(29902): [----- Environment Variables -----]
admin(29902):   HTTP_COOKIE:
admin(29902):   SERVER_SOFTWARE: Apache/2.2.4 (Unix)
admin(29902):   SCRIPT_NAME: /mailman/admin
admin(29902):   SERVER_SIGNATURE:
admin(29902):   REQUEST_METHOD: POST
admin(29902):   HTTP_KEEP_ALIVE: 300
admin(29902):   SERVER_PROTOCOL: HTTP/1.1
admin(29902):   QUERY_STRING:
admin(29902):   CONTENT_LENGTH: 438
admin(29902):   HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
admin(29902):   HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv: Gecko/2009060215 Firefox/3.0.11 (.NET CLR
admin(29902):   HTTP_CONNECTION: keep-alive
admin(29902):   HTTP_REFERER:
admin(29902):   SERVER_NAME: listsmart.osl.state.or.us
admin(29902):   REMOTE_ADDR:
admin(29902):   PATH_TRANSLATED: /usr/local/apache2/htdocs/test7/digest
admin(29902):   SERVER_PORT: 80
admin(29902):   SERVER_ADDR:
admin(29902):   DOCUMENT_ROOT: /usr/local/apache2/htdocs
admin(29902):   PYTHONPATH: /usr/local/mailman
admin(29902):   SCRIPT_FILENAME: /usr/local/mailman/cgi-bin/admin
admin(29902):   SERVER_ADMIN: root at swiki.osl.state.or.us
admin(29902):   HTTP_HOST: listsmart.osl.state.or.us
admin(29902):   REQUEST_URI: /mailman/admin/test7/digest
admin(29902):   HTTP_ACCEPT:
admin(29902):   GATEWAY_INTERFACE: CGI/1.1
admin(29902):   REMOTE_PORT: 1809
admin(29902):   HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
admin(29902):   CONTENT_TYPE: application/x-www-form-urlencoded
admin(29902):   HTTP_ACCEPT_ENCODING: gzip,deflate
admin(29902):   PATH_INFO: /test7/digest

On Sat, Jul 18, 2009 at 1:18 PM, Mark Sapiro<mark at msapiro.net> wrote:
> Christopher Adams wrote:
>>I just upgraded to Mailman 2.1.12. I noticed that the digests are not
>>going out. When I run the /bin/senddigests script manually, it goes
>>through all list digest mailboxes and I get this message:
>>List: mylistnamer: problem processing
>>decoding Unicode is not supported
>>If I try to generate a specific list digest from the admin interface,
>>it results in the "You've Hit a Bug" message.
>>I have read some about possible reasons for this error and it seems to
>>point to Python.
>>I am running RedHat ES 3 and Python 2.5. There is a plan to move to a
>>new server with a newer OS, but for the short-term I am wondering if
>>this is a Python issue and if Python should be upgraded. The Mailman
>>wiki says:
>> It is highly recommended that you upgrade to the latest patch release
>>of one of the following:
>>    * Python 2.4
>>    * Python 2.5
>>For now, we recommend using Python 2.5.2.
>>Can someone verify whether this is a Python issue and will an upgrade
>>to 2.5.2 make a difference. Of course, I'm not sure Python 2.5 is
>>really designed to run on RH ES 3, but it has been doing fine up til
> There is an issue with Mailman 2.1.12 and some versions of the Python
> email package. This is mentioned in the FAQ at
> <http://wiki.list.org/x/pYA9> in the "Update - March 2009:" paragraph
> including a link to a patch to Python's email/Charset.py module that
> will fix it.
> However, I think this problem only occurs with email version 3.0.2
> which only shipped with Python 2.4.4 through 2.4.6. Python 2.5 shipped
> with email 4.0.1 which I don't think has this specific issue.
> Are you sure your Mailman is using Python 2.5? Do you also have python
> 2.4 libraries on your system?
> In any case, there should be a traceback from the "we hit a bug" error
> in Mailman's error log. What is that?
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan

Christopher Adams
adamsca at gmail.com

More information about the Mailman-Users mailing list