I just sent a message to my freshly installed MM 3 alpha 4 (on Ubuntu 9.04) and got the following warning:
Nov 29 23:53:51 mailman postfix/lmtp[8620]: D409D32E12: to=<test@mailman.state-of-mind.de>, relay=127.0.0.1[127.0.0.1]:8025, delay=1.8, delays=0.07/0.01/0/1.7, dsn=2.0.0, status=sent (250 Ok) Nov 29 23:53:51 mailman postfix/qmgr[8613]: D409D32E12: removed /root/mailman/src/mailman/rules/administrivia.py:84: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if line == '':
The delivery worked though.
p@rick
-- state of mind Digitale Kommunikation
Franziskanerstraße 15 Telefon +49 89 3090 4664 81669 München Telefax +49 89 3090 4666
Amtsgericht München Partnerschaftsregister PR 563
On Nov 29, 2009, at 6:03 PM, Patrick Ben Koetter wrote:
I just sent a message to my freshly installed MM 3 alpha 4 (on
Ubuntu 9.04) and got the following warning:Nov 29 23:53:51 mailman postfix/lmtp[8620]: D409D32E12: to=<test@mailman.state-of-mind.de
, relay=127.0.0.1[127.0.0.1]:8025, delay=1.8,
delays=0.07/0.01/0/1.7, dsn=2.0.0, status=sent (250 Ok) Nov 29 23:53:51 mailman postfix/qmgr[8613]: D409D32E12: removed /root/mailman/src/mailman/rules/administrivia.py:84: UnicodeWarning:
Unicode equal comparison failed to convert both arguments to Unicode
- interpreting them as being unequal if line == '':
The delivery worked though.
Interesting. Do you have a copy of that message? Is it reproducible?
-Barry
I got a unicode warning, too. Running alpha4 with python26 on OSX 10.5. I didn't have Pyrex installed, and got warnings during the build process. Don't know if that's related.
bin/test Test-module import failures:
Module: mailman.tests.test_documentation
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
Running zope.testing.testrunner.layer.UnitTests tests: Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
Error in test test_SMTP32_failure (mailman.tests.test_bounces.BounceTest) Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 279, in run testMethod() File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/test_bounces.py", line 193, in test_SMTP32_failure with open(os.path.join(MSGDIR, 'postfix_01.txt')) as fp: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
Error in test test_bounce (mailman.tests.test_bounces.BounceTest) Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 279, in run testMethod() File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/test_bounces.py", line 175, in test_bounce path = os.path.join(MSGDIR, filename) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
Ran 23 tests with 0 failures and 2 errors in 0.468 seconds. Tearing down left over layers: Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
Test-modules with import problems: mailman.tests.test_documentation
-- Ian Eiloart IT Services, University of Sussex 01273-873148 x3148 For new support requests, see http://www.sussex.ac.uk/its/help/
Ian Eiloart wrote:
I got a unicode warning, too. Running alpha4 with python26 on OSX 10.5. I didn't have Pyrex installed, and got warnings during the build process. Don't know if that's related.
It's different from Patrick's warning.
In your case, the issue appears to be the non-ascii character (0xe2 a-circumflex) in the name of the /Users/iane/Downloads ?/ directory
File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/test_bounces.py", line 193, in test_SMTP32_failure with open(os.path.join(MSGDIR, 'postfix_01.txt')) as fp: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
Presumably MSGDIR has the same "/Users/iane/Downloads •/mailman-3.0.0a4/" prefix.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--On 30 November 2009 13:39:24 -0800 Mark Sapiro <mark@msapiro.net> wrote:
Ian Eiloart wrote:
I got a unicode warning, too. Running alpha4 with python26 on OSX 10.5. I didn't have Pyrex installed, and got warnings during the build process. Don't know if that's related.
It's different from Patrick's warning.
In your case, the issue appears to be the non-ascii character (0xe2 a-circumflex) in the name of the /Users/iane/Downloads ?/ directory
Ah. Good spot. That's • alt-8 on an Apple keyboard. The character prevents my backup client backing up the directory. Wouldn't happen in a production environment. Thanks, Mark.
File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/test_bounces.py", line 193, in test_SMTP32_failure with open(os.path.join(MSGDIR, 'postfix_01.txt')) as fp: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2 .6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
Presumably MSGDIR has the same "/Users/iane/Downloads •/mailman-3.0.0a4/" prefix.
-- Ian Eiloart IT Services, University of Sussex 01273-873148 x3148 For new support requests, see http://www.sussex.ac.uk/its/help/
On Nov 30, 2009, at 12:24 PM, Ian Eiloart wrote:
Error in test test_SMTP32_failure
(mailman.tests.test_bounces.BounceTest) Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/unittest.py", line 279, in run testMethod() File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/ test_bounces.py", line 193, in test_SMTP32_failure with open(os.path.join(MSGDIR, 'postfix_01.txt')) as fp: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
22: ordinal not in range(128)Error in test test_bounce (mailman.tests.test_bounces.BounceTest) Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/unittest.py", line 279, in run testMethod() File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/ test_bounces.py", line 175, in test_bounce path = os.path.join(MSGDIR, filename) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/posixpath.py", line 70, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
22: ordinal not in range(128)
I think Mark correctly diagnosed the problem. Keep in mind that these
are somewhat broken tests anyway because they should be using
pkg_resource to get at those files instead of os.path.join() and
open(). I don't know if that'll solve the problem though.
I'm not exactly sure how to fix this yet, but I'll try to see if I can
reproduce it locally.
-Barry
participants (4)
-
Barry Warsaw
-
Ian Eiloart
-
Mark Sapiro
-
Patrick Ben Koetter