[mod_python] apache cannot find mod_python files

Alexandre Taschetto de Castro atc at centroin.com.br
Sun Feb 10 10:27:21 EST 2008


Hello,

I have the following problem. Apache loads mod_python module correctly:

[Thu Jan 31 15:48:20 2008] [notice] mod_python: using mutex_directory /tmp 
[Thu Jan 31 15:48:20 2008] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4
OpenSSL/0.9.8e PHP/5.2.5 with Suhosin-Patch mod_python/3.3.1 Python/2.5.1
configured -- resuming normal operations

but cannot find mod_python files:

[Thu Jan 31 15:48:26 2008] [error] make_obcallback: could not import
mod_python.apache.\n
'import site' failed; use -v for traceback
ImportError: No module named mod_python.apache
[Thu Jan 31 15:48:26 2008] [error] make_obcallback: Python path being used
"['/usr/lib/python25.zip', '/usr/lib64/python2.5/',
'/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk',
'/usr/lib64/python2.5/lib-dynload']".
[Thu Jan 31 15:48:26 2008] [error] get_interpreter: no interpreter callback found.


mod_python is installed in usr/lib64/python2.5/site-packages/mod_python, which
is in python's sys.path and can be read by the apache user (www). How can I
tell apache to include this in the python path it is using? I am using
Opensuse 10.3.

Thanks
Alexandre




More information about the Mod_python mailing list