could not import mod_python.apache
Michael Hoffmann
mh at esh-online.de
Mon Jul 15 10:39:48 EDT 2002
Hi,
I've the folowing Error when I try to run my pythonscript:
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Mon Jul 15 16:12:46 2002] [error] [client 62.226.50.138] python_handler:
make_obcallback returned no obCallBack!
but httpd start is ok:
[Mon Jul 15 16:14:54 2002] [notice] Apache/1.3.19 (Unix) (SuSE/Linux)
mod_python/2.7.2 Python/2.0 mod_ssl/2.8.3 OpenSSL/0.9.6a PHP/4.0.6
mod_perl/1.25 mod_th
rottle/3.0 mod_layout/1.0 mod_fastcgi/2.2.2 mod_dtcl configured -- resuming
normal operations
[Mon Jul 15 16:14:54 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
The directives are:
<Directory /home/www/web2/html/testweb>
AddHandler python-program .py
PythonHandler mptest
PythonDebug on
</Directory>
<Directory "/home/www/web2/html">
Options +ExecCGI
</Directory>
the script ist:
from mod_python import apache
def handler(req):
req.content_type = "text/plain"
req.send_http_header ()
req.write ("Hello World!")
return apache.OK
any Idea?????
Regards Michael
More information about the Python-list
mailing list