[mod_python] Problems getting mod_python up n' running

Jonas Bengtsson jonas.b at home.se
Thu Jul 12 03:50:29 EST 2001


Hi,
I can't get mod_python to work. I get this error message when I'm restarting
Apache:
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
And when I try to look at a .py page I get following error:
[Thu Jul 12 03:33:12 2001] [error] [client 127.0.0.1] python_handler:
make_obcallback returned no obCallBack!

What is wrong?
I've got: Apache/1.3.19 (Win32) mod_python/2.7.4 Python/2.1
Running under Windows 2000

I have put mod_python.dll.in E:\program\apache\modules and following rows to
httpd.conf:
#DSO section
LoadModule python_module e:/program/apache/modules/mod_python.dll
#under my main directory
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug on

Furthermore I have put following files under
e:\program\python21\libs\mod_python:
__init__.py
apache.py
cgihandler.py
httpdapi.py
publisher.py
util.py
zhandler.py

And my environment path contains:
E:\Program\Python21;e:\Program\Python21\libs


What can be the problem?

TIA
Jonas Bengtsson





More information about the Mod_python mailing list