[mod_python] ImportError: No module named mod_python.apache

Marty Alchin gulopine at gamemusic.org
Wed Aug 1 21:10:50 EDT 2007


I was having problems with mod_python recently, so I decided to
upgrade to Python 2.5 (which I had wanted to do anyway), reinstall
mod_python and try again. I'm getting the following error, however,
and I can't sort out why.

[Wed Aug 01 18:20:53 2007] [error] make_obcallback: could not import
mod_python.apache.\n
'import site' failed; use -v for traceback
ImportError: No module named mod_python.apache
[Wed Aug 01 18:20:53 2007] [error] make_obcallback: Python path being
used "['/usr/local/lib/python2.5/site-packages',
'/usr/local/lib/python25.zip', '/usr/local/lib/python2.5/',
'/usr/local/lib/python2.5/plat-linux2',
'/usr/local/lib/python2.5/lib-tk',
'/usr/local/lib/python2.5/lib-dynload']".
[Wed Aug 01 18:20:53 2007] [error] get_interpreter: no interpreter
callback found.
[Wed Aug 01 18:20:53 2007] [error] [client 24.11.212.122]
python_handler: Can't get/create interpreter.

Initially, it seemed to make sense, since Python's site-packages
wasn't listed in the path that was being used. However, when I run it
with PYTHONPATH=/usr/local/lib/python2.5/site-packages, it still runs
into the same error, and as you can see, site-packages is now
included. I haven't found anything else in the logs that sheds any
light on the subject.

Is there something I can do to get more information about what's going wrong?

-Gul


More information about the Mod_python mailing list