Closed GoogleCodeExporter closed 9 years ago
If WSGIPythonHome doesn't work, it is normally due to one of a few things.
1. The mod_python module is also being loaded into the same Apache.
2. The wrong path was given to WSGIPythonHome.
3. The directories for the Python installation aren't readable to the user
Apache runs as.
Set LogLevel to debug in Apache and look for the debug log lines that mod_wsgi
outputs about trying to setup the Python location.
Original comment by Graham.Dumpleton@gmail.com
on 14 Aug 2013 at 12:48
It seems that the WSGIPyhonHome is actually working. I was just looking at the
wrong environment variable. The issue that we are having is that a python
script that runs fine from the command line is dying silently under
Django/Apache + mod_wsgi. It seems to be dying when unpickling a file without
throwing an exception or producing a stack trace. Is there any reason that
pickle/cPickle would work differently under Django/Apache + mod_wsgi than it
would from the command line? As an FYI, the script works just fine if we use
the building django server as well.
Original comment by jgb...@gmail.com
on 17 Aug 2013 at 10:14
Have you read:
http://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule
There are some limitations with using pickle for objects defined in the WSGI
script file itself.
Original comment by Graham.Dumpleton@gmail.com
on 18 Aug 2013 at 6:21
Closing as no change was required.
Original comment by Graham.Dumpleton@gmail.com
on 16 Sep 2014 at 6:51
Original issue reported on code.google.com by
jgb...@gmail.com
on 13 Aug 2013 at 6:01