[mod_python] apache cannot find mod_python files

Alexandre Taschetto de Castro atc at centroin.com.br
Mon Feb 11 11:36:52 EST 2008


Graham,

I've just found the problem. There was an error with access permissions for
/usr/lib64. I had only checked the directories under it, which were ok. Once I
corrected that, things worked fine.

Thanks
Alexandre



---------- Original Message -----------
From: "Graham Dumpleton" <graham.dumpleton at gmail.com>
To: "Alexandre Taschetto de Castro" <atc at centroin.com.br>
Cc: mod_python at modpython.org
Sent: Mon, 11 Feb 2008 06:56:25 +1100
Subject: Re: [mod_python] apache cannot find mod_python files

> Finding mod_python files is not the problem. What it can't find is 
> the 'site' module, ie., 'site.py'.
> 
> How many different versions of Python do you have on your box? Where
> are they located? What is your personal PATH environment variable set
> to? How are you stopping and starting Apache? Are you using 'sudo',
>  if so, using exactly what command line are you using? Have you 
> tried using 'sudo -H' instead?
> 
> Graham
> 
> On 11/02/2008, Alexandre Taschetto de Castro <atc at centroin.com.br> wrote:
> > Hello,
> >
> > I have the following problem. Apache loads mod_python module correctly:
> >
> > [Thu Jan 31 15:48:20 2008] [notice] mod_python: using mutex_directory /tmp
> > [Thu Jan 31 15:48:20 2008] [notice] Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4
> > OpenSSL/0.9.8e PHP/5.2.5 with Suhosin-Patch mod_python/3.3.1 Python/2.5.1
> > configured -- resuming normal operations
> >
> > but cannot find mod_python files:
> >
> > [Thu Jan 31 15:48:26 2008] [error] make_obcallback: could not import
> > mod_python.apache.\n
> > 'import site' failed; use -v for traceback
> > ImportError: No module named mod_python.apache
> > [Thu Jan 31 15:48:26 2008] [error] make_obcallback: Python path being used
> > "['/usr/lib/python25.zip', '/usr/lib64/python2.5/',
> > '/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk',
> > '/usr/lib64/python2.5/lib-dynload']".
> > [Thu Jan 31 15:48:26 2008] [error] get_interpreter: no interpreter
callback found.
> >
> >
> > mod_python is installed in usr/lib64/python2.5/site-packages/mod_python, which
> > is in python's sys.path and can be read by the apache user (www). How can I
> > tell apache to include this in the python path it is using? I am using
> > Opensuse 10.3.
> >
> > Thanks
> > Alexandre
> >
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> >
------- End of Original Message -------



More information about the Mod_python mailing list