> I think there may be an issue with the opensolaris Python 2.4.4. I
> received this traceback from the patched ToDigest.py from aduritz.
>
> Mar 09 12:27:56 2009 (6235) send_digests() failed: decoding Unicode
> is not supported
> Mar 09 12:27:56 2009 qrunner(6235): Traceback (most recent call last):
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/mailman/
> Mailman/Handlers/ToDigest.py", line 98, in process
> Mar 09 12:27:56 2009 qrunner(6235): send_digests(mlist, mboxfp)
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/mailman/
> Mailman/Handlers/ToDigest.py", line 144, in send_digests
> Mar 09 12:27:56 2009 qrunner(6235): send_i18n_digests(mlist,
> mboxfp)
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/mailman/
> Mailman/Handlers/ToDigest.py", line 341, in send_i18n_digests
> Mar 09 12:27:56 2009 qrunner(6235): mcset =
> msg.get_content_charset('')
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/lib/python2.4/email/
> Message.py", line 800, in get_content_charset
> Mar 09 12:27:56 2009 qrunner(6235): charset = unicode(charset,
> 'us-ascii').encode('us-ascii')
> Mar 09 12:27:56 2009 qrunner(6235): TypeError: decoding Unicode is
> not supported
>
> Python 2.4 shipped with email 3.0.1 and the line " charset =
> unicode(charset, 'us-ascii').encode('us-ascii')" is not in
> Message.py in
> email 3.0.1. It is in email 2.5.8 which used to ship with Mailman, but
> as of Mailman 2.1.12 is no longer installed in Mailman's pythonlib,
> but
> in email 2.5.8 it is line 846 of Message.py, not line 800.
>
> First, is there a /usr/local/mailman/pythonlib/email/ directory. If
> there is, move it aside or remove it and restart Mailman, as it should
> not be there in Mailman 2.1.12. If there was an email/ directory in
> /usr/local/mailman/pythonlib/, and moving it aside does not fix the
> problem, try the following interactive Python session
>
> $ python
> [...]
>>>> import email
>>>> email.__version__
>
> to see what email version this is. It should be 3.0.1. If not, there
> is
> something wrong with the opensolaris Python install.
I don't see the $basedir/pythonlib/email dir
It would appear to be 3.0.2...
/opt/opensolaris.org/mailman> /usr/bin/python2.4
Python 2.4.4 (#1, Apr 10 2008, 07:06:40) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> email.__version__
'3.0.2'
The 2.5.1 python I installed from sfw is 4.0.1
/opt/opensolaris.org/mailman> /usr/local/bin/python2.5
Python 2.5.1 (r251:54863, May 16 2007, 19:39:00)
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> email.__version__
'4.0.1'
On Mar 9, 2009, at 11:45 AM, Mark Sapiro wrote:
> I think there may be an issue with the opensolaris Python 2.4.4. I mailman/ Handlers/ ToDigest. py", line 98, in process mailman/ Handlers/ ToDigest. py", line 144, in send_digests digests( mlist, mailman/ Handlers/ ToDigest. py", line 341, in send_i18n_digests content_ charset( '') python2. 4/email/ ).encode( 'us-ascii' ) ).encode( 'us-ascii' )" is not in mailman/ pythonlib/ email/ directory. If mailman/ pythonlib/ , and moving it aside does not fix the
> received this traceback from the patched ToDigest.py from aduritz.
>
> Mar 09 12:27:56 2009 (6235) send_digests() failed: decoding Unicode
> is not supported
> Mar 09 12:27:56 2009 qrunner(6235): Traceback (most recent call last):
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/
> Mailman/
> Mar 09 12:27:56 2009 qrunner(6235): send_digests(mlist, mboxfp)
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/
> Mailman/
> Mar 09 12:27:56 2009 qrunner(6235): send_i18n_
> mboxfp)
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/local/
> Mailman/
> Mar 09 12:27:56 2009 qrunner(6235): mcset =
> msg.get_
> Mar 09 12:27:56 2009 qrunner(6235): File "/usr/lib/
> Message.py", line 800, in get_content_charset
> Mar 09 12:27:56 2009 qrunner(6235): charset = unicode(charset,
> 'us-ascii'
> Mar 09 12:27:56 2009 qrunner(6235): TypeError: decoding Unicode is
> not supported
>
> Python 2.4 shipped with email 3.0.1 and the line " charset =
> unicode(charset, 'us-ascii'
> Message.py in
> email 3.0.1. It is in email 2.5.8 which used to ship with Mailman, but
> as of Mailman 2.1.12 is no longer installed in Mailman's pythonlib,
> but
> in email 2.5.8 it is line 846 of Message.py, not line 800.
>
> First, is there a /usr/local/
> there is, move it aside or remove it and restart Mailman, as it should
> not be there in Mailman 2.1.12. If there was an email/ directory in
> /usr/local/
> problem, try the following interactive Python session
>
> $ python
> [...]
>>>> import email
>>>> email.__version__
>
> to see what email version this is. It should be 3.0.1. If not, there
> is
> something wrong with the opensolaris Python install.
I don't see the $basedir/ pythonlib/ email dir
It would appear to be 3.0.2...
/opt/opensolari s.org/mailman> /usr/bin/python2.4
Python 2.4.4 (#1, Apr 10 2008, 07:06:40) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> email.__version__
'3.0.2'
The 2.5.1 python I installed from sfw is 4.0.1
/opt/opensolari s.org/mailman> /usr/local/ bin/python2. 5
Python 2.5.1 (r251:54863, May 16 2007, 19:39:00)
[GCC 3.4.6] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
>>> email.__version__
'4.0.1'
e.