[Mailman-Users] Mandrake 9.1 / ImportError: No module namedgetopt
Oliver.Egginger at dvz.fh-giessen.de
Tue May 13 12:08:26 CEST 2003
It seems that it is caused by the line 255 from mailmanctl:
os.execl(mm_cfg.PYTHON, 'qrunner', exe, rswitch, '-s')
When I start the qrunners manually everything seems to work
fine. But I can't use the mailmanctl script.
I think the reason is, that the python enviroment variables
are not set properly during the call of os.execl.
But I don't know why.
(I'am no phyton developer.)
Also it seems that this only happens under some Mandrake and
When I write a little test python script I can import getopt
and other stuff smoothly.
The qrunner script works also fine when it don't get invoked by
an os.execl call.
Am Mon, 2003-05-12 um 15.37 schrieb Oliver Egginger:
> I receive a couple error lines by starting mailman under ML 9.1.
> Python is installed via RPMs, mailman was build manually by the install
> scripts which you provide.
> The initializing error message:
> Traceback (most recent call last):
> File "/home/mailman/bin/qrunner", line 72, in ?
> import getopt
> ImportError: No module named getopt
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> But from python -v I get:
> # /usr/lib/python2.2/getopt.pyc matches /usr/lib/python2.2/getopt.py
> import getopt # precompiled from /usr/lib/python2.2/getopt.pyc
> # cleanup getopt
> so it seems that everythink is pretty fine, but I can't bring it to
> Any suggestions?
> Next thing I would try is to build the python packages manually.
> - oliver
Oliver Egginger <Oliver.Egginger at dvz.fh-giessen.de>
More information about the Mailman-Users