[mod_python] help

gege at china.com gege at china.com
Mon Feb 26 23:04:33 EST 2001


 under windows 98 apache 1.3.17

I copy mod_python.dll to /apache/modules

copy mod_python to c:\python20\lib

add row LoadModule python_module modules/mod_python.dll to httpd.conf

add 

<Directory "C:/Apache/htdocs/python">
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug On
</Directory>

to httpd.conf too.

then restart apache. when i enter http://localhost/python, i can see mptest.py.

but when i click mptest.py, the browser tells me

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

what happens?

error.log looks like:

[Mon Feb 26 15:50:18 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
'import site' failed; use -v for traceback
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
Apache server shutdown initiated...
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
[Mon Feb 26 20:26:18 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:37 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:39 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:40 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:41 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:41 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:41 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:43 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:42:43 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:43:04 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:44:42 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
[Mon Feb 26 20:46:02 2001] [error] [client 127.0.0.1] python_handler: make_obcallback returned no obCallBack!
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
'import site' failed; use -v for traceback
[Mon Feb 26 20:57:49 2001] [error] [

************************************
ÍøÉÏÒ½Ôº£º¹Ø×¢ÄúµÄ½¡¿µ
http://hospital.china.com/
Ôµ·ÖµÄÌì¿Õ£ºÕÒ³öÄãµÄÓÐÇéÈË
http://lovesky.china.com



More information about the Mod_python mailing list