[mod_python] error: could not import mod_python.apache

e.deventer at boer.nl e.deventer at boer.nl
Wed Apr 19 06:55:24 EDT 2006


I can't get mod_python to work. 

I'm using the following software/versions, installed in the listed order:

Windows 2000 5.00.2195 SP4
Mozilla Firefox 1.5.0.2
Python 2.4.2 (python-2.4.2.msi)
Apache 2.0.55 (apache_2.0.55-win32-x86-no_ssl.exe)
Mod_python 3.2.8 (mod_python-3.2.8.win32-py2.4.exe)
Python and Apache (seem to) run just fine.

After installation I have added the "LoadModule python_module 
modules/mod_python.so" line to httpd.conf. mod_python.so is present in the 
modules directory. Then I have tried to test my setup by following the 
test procedure of the modpython.org tutorial (2.4). I've added this to the 
httpd.conf:

<Directory "C:/Program Files/Apache Group/Apache2/htdocs/test/"> 
     AddHandler mod_python .py
     PythonHandler mptest 
     PythonDebug On 
</Directory>

(Does it matter where in the http.conf I put this code?)

When I try to load mptest.py (containing the code form the tutorial), the 
browser displays an Internal Server Error. Then when I look at the 
error.log I see these errors:
[error] make_obcallback: could not import mod_python.apache.\n
[error] python_handler: no interpreter callback found.
[error] [client 127.0.0.1] python_handler: Can't get/create interpreter., 
referer: http://localhost/test/

Then I tried to diagnose my configuration using the 
mod_python.testhandeler, but this gives exactly the same error in both the 
browser and error.log

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060419/191f8d28/attachment.html


More information about the Mod_python mailing list