0

我收到以下错误但无法弄清楚(尝试解开 python-egg 文件,但没有任何改变)此错误发生在 1.76 更新后,然后我安装了旧版本 1.75,但昨天它开始给我一个奇怪的错误,即某些东西已被弃用等,所以我想既然它是 1.75 的“五”次更新,一切都应该没问题……但事实并非如此。任何意见表示赞赏:

2013-06-02 22:20:20 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files     (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--    port=8082', '--admin_port=8002', 'E:\\Dropbox\\GAE\\ajaxtest\\ajaxtest']"
C:\Python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg\_yaml.py:3: UserWarning: Module yaml was already imported from C:\Program Files (x86)\Google\google_appengine\lib\yaml-3.10\yaml\__init__.py, but c:\python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg is being added to sys.path
INFO     2013-06-02 22:20:21,775 devappserver2.py:522] Skipping SDK update check.
INFO     2013-06-02 22:20:21,815 api_server.py:153] Starting API server at: http://localhost:55511
INFO     2013-06-02 22:20:21,818 dispatcher.py:164] Starting server "default" running at: http://localhost:8082
INFO     2013-06-02 22:20:21,819 admin_server.py:117] Starting admin server at: http://localhost:8002
C:\Python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg\_yaml.py:3: UserWarning: Module yaml was already imported from C:\Program Files (x86)\Google\google_appengine\lib\yaml-3.10\yaml\__init__.py, but c:\python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg is being added to sys.path

Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\_python_runtime.py", line 182, in <module>
    _run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\_python_runtime.py", line 178, in _run_file
    execfile(script_path, globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\runtime.py", line 29, in <module>
    from google.appengine.ext.remote_api import remote_api_stub
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 75, in <module>
    import yaml
  File "C:\Program Files (x86)\Google\google_appengine\lib\yaml-3.10\yaml\__init__.py", line 14, in <module>
    from cyaml import *
  File "C:\Program Files (x86)\Google\google_appengine\lib\yaml-3.10\yaml\cyaml.py", line 5, in <module>
    from _yaml import CParser, CEmitter
  File "C:\Python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg\_yaml.py", line 7, in <module>
  File "C:\Python27\lib\site-packages\pyyaml-3.10-py2.7-win32.egg\_yaml.py", line 4, in __bootstrap__
  File "C:\Python27\lib\site-packages\distribute-0.6.45-py2.7.egg\pkg_resources.py", line 914, in resource_filename
    self, resource_name
  File "C:\Python27\lib\site-packages\distribute-0.6.45-py2.7.egg\pkg_resources.py", line 1423, in get_resource_filename


 self._extract_resource(manager, self._eager_to_zip(name))
  File "C:\Python27\lib\site-packages\distribute-0.6.45-py2.7.egg\pkg_resources.py", line 1479, in _extract_resource
    manager.extraction_error()  # report a user-friendly error
  File "C:\Python27\lib\site-packages\distribute-0.6.45-py2.7.egg\pkg_resources.py", line 960, in extraction_error
    raise err
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 5] Access is denied: 'C:\\Users\\HAL\\AppData\\Roaming\\Python-Eggs\\pyyaml-3.10-py2.7-win32.egg-tmp\\_yaml.pyd'

The Python egg cache directory is currently set to:

  C:\Users\HAL\AppData\Roaming\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.

ERROR    2013-06-02 22:20:22,275 http_runtime.py:221] unexpected port response from runtime ['']; exiting the development server
INFO     2013-06-02 22:20:22,838 api_server.py:524] Applying all pending transactions and saving the datastore
INFO     2013-06-02 22:20:22,838 api_server.py:527] Saving search indexes
2013-06-02 22:20:22 (Process exited with code 0)
4

1 回答 1

0

你对鸡蛋有什么要求吗?如果没有,请更改(或取消设置)PYTHON_EGG_CACHE以消除鸡蛋机制。我们不运送或打包任何需要鸡蛋的 App Engine 相关内容。

于 2013-06-04T05:07:28.113 回答