make_obcallback(): could not import mod_python.apache

Christopher cbudnick at gmail.com
Wed Feb 16 20:56:31 EST 2005


I am running:

Fedora Core 1
Python 2.4
Apache 1.3.3
mod_python 2.7.11

When I try to access the test mptest.py file I receive:

> Internal Server Error

When starting apache in my error_log I find:

> [Wed Feb 16 20:41:44 2005] [warn] Loaded DSO libexec/mod_python.so
uses plain Apache 1.3 API, this module might crash under $

and

> make_obcallback(): could not import mod_python.apache.
> make_obcallback(): could not call init.
> [Wed Feb 16 20:43:31 2005] [error] [client x.x.x.x] python_handler:
make_obcallback returned no obCallBack!

from when I attempt access that file.

If I attempt to run Python on the command line and then import
mod_python I receive:

ImportError: No module named mod_apache.apache
>>> import mod_python.apache
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
line 55, in ?
   import _apache
ImportError: No module named _apache

Any guidance would be greatly appreciated.

Christopher




More information about the Python-list mailing list