[Mailman-Developers] semantic errorinmailmanctlline255(Mailman 2.1.2)

Oliver Egginger Oliver.Egginger at dvz.fh-giessen.de
Tue May 20 09:25:20 EDT 2003


> 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





More information about the Mailman-Developers mailing list