sys.prefix is /usr Settting WSGIPythonHome to /usr doesn't work.... they're both in /usr/bin & /usr/bin/python points to /usr/bin/python2.6 not /usr/bin/python2.7
Sorry if I'm being dense..... Thanks for the super-prompt reply --marko On Jun 27, 2011, at 7:05 PM, Graham Dumpleton wrote: > You are setting WSGIPythonHome to wrong value. > > Run python2.6 and do: > > import sys > sys.prefix > > You should set WSGIPythonHome to the value of that. > > Graham > > On 28 June 2011 08:56, Marko Mekapses <[email protected]> wrote: >> I'm trying to get mod_wsgi working with python 2.6 instead of 2.7. >> i've both set PYTHONHOME in /etc/apache2/envvars, which does nothing, >> and set WSGIPythonHome in /etc/apache2/httpd.conf, which causes the >> repeated error >> >> [Mon Jun 27 18:46:25 2011] [info] mod_wsgi (pid=8139): Python home / >> usr/bin/python2.6. >> [Mon Jun 27 18:46:25 2011] [info] mod_wsgi (pid=8139): Initializing >> Python. >> ImportError: No module named site >> >> Not sure what's going on... oddly enough, /usr/bin/python links to / >> usr/bin/python2.6.... >> I'm baffled for the time being... >> >> Thanks, >> --marko >> >> -- >> 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. >> >> > > -- > 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. > -- 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.
