[mod_python] mod_python not loading

Jim Gallacher jpg at jgassociates.ca
Sat Sep 16 14:17:43 EDT 2006


Ben Boeckel wrote:
> Hi, I'm having trouble getting the tutorials to work with the
> mptest.py stuff. I've searched and searched for anything that could
> help me to get the Python pages to render, but I have not been able to
> so yet. I keep getting Internal Server errors and the error logs don't
> list anything other than:
> 
> [Fri Sep 15 23:24:07 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Fri Sep 15 23:24:07 2006] [error] python_handler: no interpreter
> callback found.
> [Fri Sep 15 23:24:07 2006] [error] [client 127.0.0.1] python_handler:
> Can't get/create interpreter.
> 
> My httpd.conf also has:
> 
> <Directory "D:/Program Files/Apache Group/Apache2/htdocs/test">
>    AddHandler mod_python .py
>    PythonHandler mptest
>    PythonDebug On
> </Directory>
> 
> I'm running:
> Apache 2.0.59
> Python 2.4.3
> mod_python 3.2.8
> Windows XP SP2

Take a look at these threads as they are likely to help.
http://modpython.org/pipermail/mod_python/2006-August/021754.html
http://modpython.org/pipermail/mod_python/2006-August/021944.html


> Also, can mod_python handle embedded Python in HTML (sort of like PHP)
> or is another module needed for that?

Yes. Take a look at psp.
http://www.modpython.org/live/current/doc-html/pyapi-psp.html
http://www.modpython.org/live/current/doc-html/hand-psp.html


More information about the Mod_python mailing list