views:

663

answers:

1

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?

+2  A: 

You have a typo in your Apache config:

SetEnv PYTOHN_EGG_CACHE /tmp

Should be:

SetEnv PYTHON_EGG_CACHE /tmp
AJ
Well don't I feel stupid...thanks. it works now
puddingfox
@puddingfox not a problem at all. good luck!
AJ