I am trying to get django up and running in production mode but I get this error that I can't seem to fix:
ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/home/james/.python-eggs'
The Python egg cache directory is currently set to:
/home/james/.python-eggs
Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory.
I have tried this:
export PYTHON_EGG_CACHE="/tmp"
but to no avail.
And this is in my /etc/httpd/conf/httpd.conf:
<Location "/chat">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE chat.settings
SetEnv PYTOHN_EGG_CACHE /tmp
PythonDebug On
PythonPath "['/www/django', '/opt/local/lib/python2.6/site-packages/django/'] + sys.path"
</Location>
I know I could just change the perms on /home/james/.python-eggs but I don't want the cache there for obvious reasons. Any ideas?