LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mod_python: make it work, avoid 'python_handler: Can't get/create interpreter.' (https://www.linuxquestions.org/questions/linux-software-2/mod_python-make-it-work-avoid-python_handler-cant-get-create-interpreter-688949/)

xcristi 12-07-2008 02:00 PM

Mod_python: make it work, avoid 'python_handler: Can't get/create interpreter.'
 
Today I wasted several hours trying to make it work. All over the forums and mailinglist seem that a lot of people is having the same problem, but no real solution, until I found a really 'obvious' issue!

So, if you have errors such as:

<code>
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
"['/usr/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg',
'/usr/lib/python2.5/site-packages/ipython-0.8.1-py2.5.egg',
'/usr/lib/python2.5/site-packages/Dabo-0.8.3-py2.5.egg'
[...]
".
[Sun Dec 07 20:50:18 2008] [error] get_interpreter: no interpreter callback found.
[Sun Dec 07 20:50:18 2008] [error] [client 127.0.0.1] python_handler: Can't get/create interpreter.
</code>

check the permissions on mod_python folder and files! The user under the webserver is running must have access to them.

Yes, I know it's obvious, but it can save you hours of debugging.

More Details


All times are GMT -5. The time now is 06:27 PM.