mod_python installation problem ..severity High

Graham Dumpleton grahamd at dscpl.com.au
Tue Nov 14 06:07:00 EST 2006


boney wrote:
> On doing this and duly following the installation and testing
> instructions at www.modpython.org and then pointing the url as
> http://localhost/test/mptest.py, i get the following error on the
> server log file:
>
> [Tue Nov 14 15:17:47 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Tue Nov 14 15:17:47 2006] [error] make_obcallback: Python path being
> used "['C:\\\\Program Files\\\\Apache
> Group\\\\Apache2\\\\bin\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk', 'C:\\\\Program
> Files\\\\Apache Group\\\\Apache2\\\\bin']".
> [Tue Nov 14 15:17:47 2006] [error] python_handler: no interpreter
> callback found.
> [Tue Nov 14 15:17:47 2006] [error] [client 127.0.0.1] python_handler:
> Can't get/create interpreter.

Your registry settings for Python do not include the site-packages
directory where mod_python typically gets installed. Thus, trying
updating the registry to add the site-packages directory. As a guide,
see the following post from the mod_python mailing list archive as a
guide.


http://www.modpython.org/pipermail/mod_python/2006-September/021979.html

This is for Python 2.5, but should give an indicator of what to look
for. Update the PythonPath entry.

For any mod_python help in the future, suggest you subscribe to the
mod_python mailing list and ask your question there as there is a
higher concentration of people there who are familiar with the
software. Details of the mod_python mailing list are on the mod_python
web site.

Graham




More information about the Python-list mailing list