Уведомления

Группа в Telegram: @pythonsu

#1 Дек. 1, 2009 14:52:14

hildi
От:
Зарегистрирован: 2008-10-07
Сообщения: 66
Репутация: +  0  -
Профиль   Отправить e-mail  

назначить PYTHON_EGG_CACHE

Вот такой сюрприз к началу зимы.

Директория с проектом лежит на сетевом диске, а диск переложили на другой сервер, в связи с чем при запуске проекта выдается ошибка, в которой предлагается назначить дефолтную переменную PYTHON_EGG_CACHE (cм. ниже) по указанному в ошибке адресу, но я не могу добраться до pkg_resources.py в setuptools-0.6c11-py2.5.egg, pspad этото файл не находит, например.

Путь к новым python eggs мне известен:
“//Rz-ts-appdata/tsappdata$/hildi/Anwendungsdaten/Python-Eggs”.

Как это можно исправить?

H:\>python identity-tutorial/start-identity_tutorial.py
Traceback (most recent call last):
File "identity-tutorial/start-identity_tutorial.py", line 11, in <module>
from identity_tutorial.commands import start, ConfigurationError
File "H:\identity-tutorial\identity_tutorial\commands.py", line 13, in <module>
import turbogears
File "c:\Python25\lib\site-packages\turbogears-1.0.7-py2.5.egg\turbogears\__init__.py", line 6, in <module>
from turbogears.controllers import expose, flash, validate, redirect, \
File "c:\Python25\lib\site-packages\turbogears-1.0.7-py2.5.egg\turbogears\controllers.py", line 9, in <module>
from dispatch import generic, strategy, functions
File "c:\Python25\lib\site-packages\PIL\__init__.py", line 19, in <module>

File "build\bdist.win32\egg\dispatch\interfaces.py", line 1, in <module>
File "c:\Python25\lib\site-packages\PIL\__init__.py", line 3, in <module>
# $Id: __init__.py 2134 2004-10-06 08:55:20Z fredrik $
File "build\bdist.win32\egg\protocols\api.py", line 15, in <module>
File "build\bdist.win32\egg\protocols\adapters.py", line 32, in <module>
File "build\bdist.win32\egg\protocols\_speedups.py", line 7, in <module>
File "build\bdist.win32\egg\protocols\_speedups.py", line 4, in __bootstrap__
File "c:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 882, in resource_filename
File "c:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 1351, in get_resource_filename
File "c:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 1373, in _extract_resource
File "c:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 962, in get_cache_path
File "c:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 928, in extraction_error
pkg_resources.ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python egg
cache:

[Error 123] Die Syntax f&#179;r den Dateinamen, Verzeichnisnamen oder die Datentr&#245;gerbezeichnung ist falsch: '\\\\'

The Python egg cache directory is currently set to:

\\qrz1100\ctxanwendungsdaten$\hildi\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.
И вас тоже с первым днем зимы :-)



Офлайн

#2 Дек. 1, 2009 15:46:49

bw
От:
Зарегистрирован: 2007-09-26
Сообщения: 938
Репутация: +  20  -
Профиль   Адрес электронной почты  

назначить PYTHON_EGG_CACHE

А так нельзя сделать?
Windows:\> set PYTHON_EGG_CACHE=//Rz-ts-appdata/tsappdata$/hildi/Anwendungsdaten/Python-Eggs

Или так:
>>> import sys
>>> sys.environ = ‘//Rz-ts-appdata/tsappdata$/hildi/Anwendungsdaten/Python-Eggs’

Или даже так (правда что там за проблема с pkg_resources у вас я не осознал):
>>> import pkg_resources
>>> pkg_resources.set_extraction_path('//Rz-ts-appdata/tsappdata$/hildi/Anwendungsdaten/Python-Eggs')

..bw



Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version