[mod_python] make_obcallback: could not import mod_python. apache.

Jochen Wuttke jochen.wuttke at gmx.de
Fri Apr 13 05:27:33 EDT 2007


Apache 2.2.3
mod_python 3.3.1

this is the error message:

[Thu Apr 12 18:44:04 2007] [error] make_obcallback: could not import  
ImportError: No module named mod_python.apache
[Thu Apr 12 18:44:04 2007] [error] make_obcallback: Python path being  
used "['/u
sr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat- 
linux2', '/
usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/ 
hon2.4/site-packages', '/usr/lib/python2.4/site-packages', '/var/lib/ 
[Thu Apr 12 18:44:04 2007] [error] get_interpreter: no interpreter  
callback foun

I had to install a bunch of things in my $HOME on the server, and  
obviously that path is not listed here.
I saw a previous post suggesting that one should fix the path python  
is looking for modules. Unfortunately I don't have root access on the  
server and can't do that. So I tried to place an appropriate

PythonPath "sys.path + ['/the/path/in/my/home']"

directive in the apache config:

1. Within a <Location>
2. Directly after the LoadModule statement (ClearModules is not used)
3. In the server config area.

None of these directives changes the python path used when I try to  
access the test location. Any suggestions what I'm doing wrong?


More information about the Mod_python mailing list