[mod_python] not using correct python library path

Graham Dumpleton grahamd at dscpl.com.au
Wed Sep 6 17:58:31 EDT 2006


On 07/09/2006, at 6:05 AM, Grant Kelly wrote:

> I think I've solved my problem with mod_python. It had to do with
> having a manual PYTHONPATH specified for root versus the user I
> compiled mod_python with. root was using python2.3 (to run `make
> install`) and the user was using python2.4, so mod_python.so was
> compiled for 2.4 but when it ran, it was using the 2.3 library path.
> This is my best guess at what happened...could be wrong, but it seems
> to be working now.

Also ensure that the user that Apache runs as has a PATH variable  
setting
such that the required version of Python is what is found in PATH. If  
you do
not and it finds an incorrect version first, that can cause problems.

Graham


More information about the Mod_python mailing list