2009/9/13 lukas <[email protected]>:
>
> Good evening!
>
> After setting up a new webserver with Python & mod_wsgi I am in a
> somehow weird situation:
>
> Preinstalled with the OSĀ is a Python 2.5 installation, with its
> sys.path at /usr/lib/...
>
> For my usage I installed Python 2.5.4 with its sys.path at /opt/
> python2.5/...
> This is the "default" version of Python, when start python from the
> console it uses this one (with the right sys.path)
>
> Now the wsgi-script on the other hand imports sys, and uses the right
> Python version but the wrong sys.path (from the other Python
> version...)
>
> I would really appreciate any comments regarding this problem.
> Thank you in advance,
> regards,
> lukas
>
> PS:
> the resulting apache error.log messages:
>
> [warn] mod_wsgi: Runtime using Python/2.5.4.
> [warn] mod_wsgi: Python module path '/usr/lib/python25.zip:/usr/lib/
> python2.5/:/usr/lib/python2.5/plat-linux2:/usr/lib/python2.5/lib-tk:/
> usr/lib/python2.5/lib-dynload'.

If it is also finding wrong Python shared library, then variation of:

  
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Unable_To_Find_Python_Shared_Library

Set LD_RUN_PATH environment and export it, when building mod_wsgi file
source code. The variable should be set to the directory the
libpythonX.Y.so is located in that you want used at run time.

If running ldd on mod_wsgi.so already shows this is happening, ie.,
using library from correct directory, then instead use WSGIPythonHome
directive as documented in:

  
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Python_Versions

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to