Apache failed to expand Python eggs 

Joined:
04/09/2007
Posts:
753

December 14, 2008 19:09:19    Last update: December 14, 2008 19:09:19
My mod_python app failed to extract Python eggs with this error:
[Sun Dec 14 09:40:03 2008] [error] [client 127.0.0.1]   File "/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 921, in get_cache_path\n    self.extraction_error()
[Sun Dec 14 09:40:03 2008] [error] [client 127.0.0.1]   File "/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 887, in extraction_error\n    raise err
[Sun Dec 14 09:40:03 2008] [error] [client 127.0.0.1] ExtractionError: Can't extract file(s) to egg cache\n\nThe following error occurred while trying to extract file(s) to the Python egg\ncache:\n\n  [Errno 13] Permission denied: '/.python-eggs'\n\nThe Python egg cache directory is currently set to:\n\n  /.python-eggs\n\nPerhaps your account does not have write access to this directory?  You can\nchange the cache directory by setting the PYTHON_EGG_CACHE environment\nvariable to point to an accessible directory.\n


The error message suggested to set the PYTHON_EGG_CACHE environment variable. While this may help solve the problem, there's no reason why the Python egg can't be installed expanded:
easy_install -Z MySQL-python-1.2.2.tar.gz
Share |
| Comment  | Tags