[mod_python] ImportError: No module named mod_python.apache

Graham Dumpleton graham.dumpleton at gmail.com
Wed Aug 1 21:40:20 EDT 2007


Run it again, setting:

  PYTHONVERBOSE=1

in the environment.

The error is while site file is being imported, ie., before
mod_python.apache is imported.

Post back result to the mailing list.

Graham

On 02/08/07, Marty Alchin <gulopine at gamemusic.org> wrote:
> 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
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list