문제

서버에 Django 응용 프로그램을 배포하고 있으며 마지막 단계 에서이 오류가 발생합니다.

ExtractionError at /admin/

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: '/.python-eggs'

The Python egg cache directory is currently set to:

/.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.

Request Method:     GET
Request URL:    http://go-ban.org/admin/
Exception Type:     ExtractionError
Exception Value:    

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: '/.python-eggs'

The Python egg cache directory is currently set to:

/.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.

Exception Location:     /usr/lib/python2.5/site-packages/pkg_resources.py in extraction_error, line 887
Python Executable:  /usr/bin/python
Python Version:     2.5.2
Python Path:    ['/home/oleg/sites/goban', '/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-i686.egg', '/usr/lib/python2.5/site-packages/PyAMF-0.5.1-py2.5-linux-i686.egg', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/var/lib/python-support/python2.5']
Server time:    Sun, 6 Dec 2009 14:05:47 +0200

누군가 비슷한 문제를 발견했을까요?

여기서 가장 이상한 것은이 호스트에서 다른 오류없이 다른 Django 사이트를 사용하고 있다는 것입니다.

관련 질문

도움이 되었습니까?

해결책

글쎄, 당신은 이상한 setuptools 지원 라이브러리를 사용하고 있습니다.

그러나 어쨌든, Python_egg_cache 환경 변수를 애플리케이션 사용자를 위해 쓸 수있는 디렉토리에 설정하는 데 문제가 있습니까?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top