User Tools

Site Tools


ERROR: make_obcallback: could not import mod_python.apache

resolving a headache error

TAGS: python_handler: Can't get/create interpreter. / no interpreter callback found. /

Installing mod_python under apache could be simple, but all over the forums there are problems related to the well known messages:

make_obcallback: could not import mod_python.apache.\n
ImportError: No module named apache
[Sun Dec 07 20:50:18 2008] [error] make_obcallback: Python path being used
[Sun Dec 07 20:50:18 2008] [error] get_interpreter: no interpreter callback found.
[Sun Dec 07 20:50:18 2008] [error] [client] python_handler: Can't get/create interpreter.

Assuming you have installed correctly the mod_python (regarding the python version, etc), you must do the following: check the permissions for mod_python folder under /usr/lib/python2.5 (or wherever you installed it)

ls -l /usr/lib/python2.5/site-packages/ | grep mod_python

To make it available to user under the webserver is running (e.g. apache), run these simple commands:

chmod 777 /usr/lib/python2.5/site-packages/mod_python
chmod 666 /usr/lib/python2.5/site-packages/mod_python/*

Restart the apache and here you go!

References: Modpython FAQ

python/makeobcallback.txt · Last modified: 2013/03/16 17:40 (external edit)