[Mailman-Developers] Is this a bug? (was semantic error...)

Oliver Egginger Oliver.Egginger at dvz.fh-giessen.de
Wed May 28 18:27:50 EDT 2003


Hello again,

meanwhile I set up a debian "woody" with MM 2.1.2, but I receive
the same error messaes like under Mandrake 9.1.

I installed both systems strict from the provides packets of this
distributions (except that I used MM 2.1.2).

Please oblige me and start the qrunner in the verbose mode,
for example by typing 
	python -v mailmanctl start
in the mailman/bin directory.

I'am sure you will get the same error messages.
(See the quoted message below.) 

And do the following:
 
%python -v
>>> import paths
>>> from Mailman.Logging.Utils import LogStdErr
>>> LogStdErr('error', 'mailmanctl', manual_reprime=0)

*** Then typing CTRL-D (for and of input) ***

This will result in the same error messages.

This means, when I comment out the line 126 in mailmanctl, 
namely LogStdErr('error', 'mailmanctl', manual_reprime=0),
the error messages will go away.

Are these error messages normal?
Will they only appear under Mandrake 9.1 and debian woody?
Can they cause any harm?
Can I comment out line 126?
Which linux distribution I should use for Mailman 2.1.2?

- oliver



Am Die, 2003-05-20 um 10.23 schrieb Oliver Egginger:
> > What does
> > 
> > >>> unicode('foo', 'ascii')
> > 
> > give you?
> > 
> 
> u'foo'
> 
> > If you get the same SystemError, then there's something screwy with your
> > Python installation.  If not, then double check that when you applied
> > the mailmanctl patch, you are really using it.  This means, stop the
> > original mailmanctl, re-run configure (or config.status), re-install and
> > then re-start mailmanctl.
> > 
> 
> I did it.
> No change.
> Also Mailman doesn't start up on my system without the patch,
> so I have to use it.
> 
> Independent from this error messages during the start and stop phase 
> mailman seems to work well.
> There are no irregularities.
> 
> But further particulars:
> 
> when I comment out the line 126 in mailmanctl the error messages go away.
> Here is the line
> 	LogStdErr('error', 'mailmanctl', manual_reprime=0)
> 
> I execute this function call with python -v on command line via:
> >>> import paths
> >>> from Mailman.Logging.Utils import LogStdErr
> >>> LogStdErr('error', 'mailmanctl', manual_reprime=0)
> 
> and receive:
> 
> <Mailman.Logging.MultiLogger.MultiLogger instance at 0x80fe374>
> 
> without error messages.
> So it seems to work.
> 
> But when I terminate the python session by typing CTRL-D (end of input)
> I receive the same error messages as I get from mailmanctl during the start 
> and stop phase.
> I have trailed them at the end of this message.
> 
> Also it seems as if the error messages came from 
> 	Mailman.Logging.Utils import LogStdErr.
> Maybe by destroying the objects which gets created by 
> 	LogStdErr('error', 'mailmanctl', manual_reprime=0).
> The function seems to work, none the less the shutdown of the corresponding 
> objects seems to fail.
> But I'am no python expert.
> 
> Here are the error messages from:
> python -v
> 
> >>> import paths
> >>> from Mailman.Logging.Utils import LogStdErr
> >>> LogStdErr('error', 'mailmanctl', manual_reprime=0)
> <Mailman.Logging.MultiLogger.MultiLogger instance at 0x80fe374>
> 
> **** and then I typing CTRL-D and got this:
> 
> # clear __builtin__._
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear __builtin__._
> 
> # clear sys.path
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.path
> 
> # clear sys.argv
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.argv
> 
> # clear sys.ps1
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.ps1
> 
> # clear sys.ps2
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.ps2
> 
> # clear sys.exitfunc
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.exitfunc
> 
> # clear sys.exc_type
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.exc_type
> 
> # clear sys.exc_value
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.exc_value
> 
> # clear sys.exc_traceback
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.exc_traceback
> 
> # clear sys.last_type
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.last_type
> 
> # clear sys.last_value
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.last_value
> 
> # clear sys.last_traceback
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # clear sys.last_traceback
> 
> # restore sys.stdin
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # restore sys.stdin
> 
> # restore sys.stdout
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # restore sys.stdout
> 
> # restore sys.stderr
> Logging error: <StampedLogger to '/home/mailman/logs/error'>
> Traceback (most recent call last):
>   File "/home/mailman/Mailman/Logging/MultiLogger.py", line 43, in write
>     logger.write(msg)
>   File "/home/mailman/Mailman/Logging/StampedLogger.py", line 73, in write
>     Logger.write(self, "%s %s" % (prefix, msg))
>   File "/home/mailman/Mailman/Logging/Logger.py", line 88, in write
>     msg = unicode(msg, self.__encoding)
> SystemError: codec module not properly initialized
> Original log message:
> # restore sys.stderr
> 
> # cleanup __main__
> # cleanup[1] __future__
> # cleanup[1] site
> # cleanup[1] Mailman
> # cleanup[1] paths
> # cleanup[1] strop
> # cleanup[1] _codecs
> # cleanup[1] korean
> # cleanup[1] string
> # cleanup[1] japanese
> # cleanup[1] readline
> # cleanup[1] korean.aliases
> # cleanup[1] Mailman.Version
> # cleanup[1] signal
> # cleanup[1] posix
> # cleanup[1] japanese.aliases
> # cleanup[1] encodings
> # cleanup[1] Mailman.Defaults
> # cleanup[1] Mailman.Logging
> # cleanup[1] Mailman.Logging.Utils
> # cleanup[1] Mailman.Logging.Logger
> # cleanup[1] encodings.latin_1
> # cleanup[1] codecs
> # cleanup[1] traceback
> # cleanup[1] linecache
> # cleanup[1] encodings.aliases
> # cleanup[1] exceptions
> # cleanup[1] Mailman.mm_cfg
> # cleanup[1] Mailman.Logging.MultiLogger
> # cleanup[1] Mailman.Logging.StampedLogger
> # cleanup[1] struct
> # cleanup[1] types
> # cleanup[1] time
> # cleanup[2] copy_reg
> # cleanup[2] os.path
> # cleanup[2] stat
> # cleanup[2] UserDict
> # cleanup[2] posixpath
> # cleanup[2] os
> # cleanup sys
> # cleanup __builtin__
> # cleanup ints: 5 unfreed ints in 1 out of 5 blocks
> # cleanup floats
> 
> 
> - oliver
> 
> 
> 
> _______________________________________________
> Mailman-Developers mailing list
> Mailman-Developers at python.org
> http://mail.python.org/mailman/listinfo/mailman-developers





More information about the Mailman-Developers mailing list