[mod_python] need working fix for 'import site' aka 'ImportError'aka'make_obcallback' error

kevin douglas fitnah55 at hotmail.com
Mon Jun 9 17:30:45 EST 2003


does anyone who actually has apache2/mod_python3 working even read this
list?


-----Original Message-----
From: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] On Behalf Of kevin douglas
Sent: Monday, June 09, 2003 2:45 PM
To: mod_python at modpython.org
Subject: RE: [mod_python] need working fix for 'import site' aka
'ImportError'aka'make_obcallback' error



this is running with:

mandrake 9.1 (bamboo)
apache 2.0.46
mod_python 3.0.3
python 2.2.2

mandrake 9.1 requires python rpm be installed for libuser which is
required for passwd, so there's no way (even with a completely minimal
install) to run w/o a python carcass laying around w/o screwing things
up a bit one way or another

i really do need some kind of direction for how to tackle this problem
though



-----Original Message-----
From: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] On Behalf Of kevin douglas
Sent: Monday, June 09, 2003 4:16 AM
To: mod_python at modpython.org
Subject: [mod_python] need working fix for 'import site' aka
'ImportError' aka'make_obcallback' error



i've spent hours trying to tweak perms and paths and add debugging to
glean any kind of adequate fix

i never had this problem with mod_python before... maybe it is a problem
with the 'worker' setup, i dunno

these are the three repeated errors:

-----
'import site' failed; use -v for traceback
ImportError: No module named mod_python.apache
[Sun Jun 08 00:06:50 2003] [error] make_obcallback: could not import
mod_python.apache.
-----

PythonEnablePdb doesn't work because it doesn't make it that far

i've done a million different things with the /usr/lib /usr/local/lib
difference including copying across, adding .pth files all over the
place, adding PYTHONHOME and PYTHONPATH into apachectl etc, nothing is
working

it gives the error 5 times on 'apachectl stop' in the log file so I'm
assuming it's a per process problem maybe related to the 'worker' setup,
but that's the whole point of apache2 so I am at a loss as to how to
proceed

i've been using mod_python since winter of 1998 off and on

please help thanks


_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python
_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list