[Mailman-Users] Mandrake 9.1 / ImportError - addendum

Oliver Egginger Oliver.Egginger at dvz.fh-giessen.de
Tue May 13 20:18:20 CEST 2003


> >The significant difference between
> >
> ><     os.execl(exe, exe, rswitch, '-s')
> >  and
> > >     os.execl(mm_cfg.PYTHON, 'qrunner', exe, rswitch, '-s')
> >
> >is, that in the former case the python interpreter don't get called
> >explicitly.
> >In the original line the interpreter gets called explicit from os.execl.
> >
> >Seemingly the resulting processes lives in different enviroments.
> >Depending on the wise how the programm gets invoked.
> >(At least on my system.)
> 
> Yes. That is why my first thought was there were 2 different Python 
> installations on the machine with the first being picked up through your 
> $PATH and the other through mm_cfg.PYTHON. But you say this is not the case.
> 

Sorry no.
I don't know.
How can I finger out  whether or not I have two different installations?
Maybe there is something odd with this python installation.

I allways use /usr/bin/python.
There is a second binary called /usr/bin/python2.2.
But a diff shows me that there are no differences between this two
files.

I installed everything on my system religious from Mandrake RPMs.
Only Mailman itself and the MTA (Exim) where build manually.
 

> 
> With execl the executed program should find itself with the same 
> environment as the program that launched it and running with the same 
> process ID which is why this is so odd. Now if it were execle then a change 
> in environment would be explicable but that isn't it.
> 

Yes.
I will try to analyse this on my system a little bit better.
I will do some mailman independent tests.

> Back to which OS and which Python version.
> 

The python version is 2.2.2.
Here is what python -v shows:

---------------------------------------------------------------------------->
# python -v
# /usr/lib/python2.2/site.pyc matches /usr/lib/python2.2/site.py
import site # precompiled from /usr/lib/python2.2/site.pyc
# /usr/lib/python2.2/os.pyc matches /usr/lib/python2.2/os.py
import os # precompiled from /usr/lib/python2.2/os.pyc
import posix # builtin
# /usr/lib/python2.2/posixpath.pyc matches /usr/lib/python2.2/posixpath.py
import posixpath # precompiled from /usr/lib/python2.2/posixpath.pyc
# /usr/lib/python2.2/stat.pyc matches /usr/lib/python2.2/stat.py
import stat # precompiled from /usr/lib/python2.2/stat.pyc
# /usr/lib/python2.2/UserDict.pyc matches /usr/lib/python2.2/UserDict.py
import UserDict # precompiled from /usr/lib/python2.2/UserDict.pyc
# /usr/lib/python2.2/copy_reg.pyc matches /usr/lib/python2.2/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.2/copy_reg.pyc
# /usr/lib/python2.2/types.pyc matches /usr/lib/python2.2/types.py
import types # precompiled from /usr/lib/python2.2/types.pyc
# /usr/lib/python2.2/__future__.pyc matches /usr/lib/python2.2/__future__.py
import __future__ # precompiled from /usr/lib/python2.2/__future__.pyc
# /usr/lib/python2.2/string.pyc matches /usr/lib/python2.2/string.py
import string # precompiled from /usr/lib/python2.2/string.pyc
dlopen("/usr/lib/python2.2/lib-dynload/strop.so", 2);
import strop # dynamically loaded from /usr/lib/python2.2/lib-dynload/strop.so
Python 2.2.2 (#2, Feb  5 2003, 10:40:08)
[GCC 3.2.1 (Mandrake Linux 9.1 3.2.1-5mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.2/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.2/lib-dynload/readline.so
---------------------------------------------------------------------------->

The OS is Mandrake Linux 9.1 with the newest updates.
I used the Mandrake update process (urpmi).
So I shouldn't be the only one who has this problem.

Meanwhile I think it is likely more a Mandrake/Python
issue than a mailman topic.

All the same, I'am glad about every helpful suggestion.
Many thanks! 

- oliver





More information about the Mailman-Users mailing list