hello,
i updated cvs today, and now I get the following errors, when I post to a list:
Apr 25 11:54:54 2002 (20362) Uncaught runner exception: isinstance() arg 2 must be a class or type Apr 25 11:54:54 2002 (20362) Traceback (most recent call last): File "/var/Mailman/Mailman/Queue/Runner.py", line 105, in __oneloop self.__onefile(msg, msgdata) File "/var/Mailman/Mailman/Queue/Runner.py", line 155, in __onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/var/Mailman/Mailman/Queue/IncomingRunner.py", line 129, in _dispose status = self._dopipeline(mlist, msg, msgdata, pipeline) File "/var/Mailman/Mailman/Queue/IncomingRunner.py", line 152, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/var/Mailman/Mailman/Handlers/Hold.py", line 132, in process if mlist.administrivia and Utils.is_administrivia(msg): File "/var/Mailman/Mailman/Utils.py", line 541, in is_administrivia for line in email.Iterators.body_line_iterator(msg): File "/var/Mailman/pythonlib/email/Iterators.py", line 23, in body_line_iterator if isinstance(payload, StringTypes): TypeError: isinstance() arg 2 must be a class or type
when I test the email package as explained in the README with PYTHONPATH=.; python2 tests/test_email.py I see the same error .........................................................................................E.................tests/test_email.py:1638: RuntimeWarning: test_japanese_codecs() skipped warnings.warn('test_japanese_codecs() skipped', RuntimeWarning, 1) .....
ERROR: test_body_line_iterator (__main__.TestIterators)
Traceback (most recent call last): File "tests/test_email.py", line 1253, in test_body_line_iterator it = Iterators.body_line_iterator(msg) File "/usr/lib/python2.1/site-packages/email/Iterators.py", line 23, in body_line_iterator if isinstance(payload, StringTypes): TypeError: isinstance() arg 2 must be a class or type
Ran 112 tests in 0.694s
FAILED (errors=1)
Is this a bug or is there something wrong with my setup.
thanks,
Michael
totschnig.michael@uqam.ca wrote:
Apr 25 11:54:54 2002 (20362) Uncaught runner exception: isinstance() arg 2 must be a class or type
[...]
the problem went away after I updated Python from 2.1.1 to 2.2.1. I did not take care about fact that mailman now requires at least 2.1.2. Sorry for the noise.
Michael
"tm" == totschnig michael <totschnig.michael@uqam.ca> writes:
tm> i updated cvs today, and now I get the following errors, when
tm> I post to a list:
tm> TypeError: isinstance() arg 2 must be a class or type
This should be fixed in (Mailman's) cvs now. It should be usable with either Python 2.1.3 or Python 2.2.1.
Thanks, -Barry
participants (2)
-
barry@zope.com
-
totschnig.michael@uqam.ca