【问题标题】:Google App Engine Deploy AttributeError expat_CAPIGoogle App Engine Deploy AttributeError expat_CAPI
【发布时间】:2014-01-02 11:05:45
【问题描述】:

我已经多次使用 Google App Engine Launcher,它运行良好,但最近我使用它,我遇到了这个错误:

2014-01-02 18:50:58 Running command: "[u'C:\\Python27\\python.exe', '-u', u'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=[my email]', '--passin', 'update', u'D:\\temp\\my-aiesec']"
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 196, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 192, in run_file
    execfile(script_path, globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 81, in <module>
    from google.appengine.tools import bulkloader
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bulkloader.py", line 128, in <module>
    from google.appengine.ext.bulkload import bulkloader_config
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\bulkload\bulkloader_config.py", line 47, in <module>
    from google.appengine.ext.bulkload import simplexml_connector
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\bulkload\simplexml_connector.py", line 40, in <module>
    from xml.etree import cElementTree as ElementTree
  File "C:\Python27\Lib\xml\etree\cElementTree.py", line 3, in <module>
    from _elementtree import *
AttributeError: 'module' object has no attribute 'expat_CAPI'
2014-01-02 18:50:59 (Process exited with code 1)

You can close this window now.

1- 首先我认为我的 GAE 版本已经过时了。所以我升级到最新版本 1.8.8。

2- 我在首选项中设置了 python 2.7 路径。

3- 我创建了一个新项目并在本地启动它并且它工作正常。

但我仍然有这个部署问题。

【问题讨论】:

    标签: google-app-engine python-2.7


    【解决方案1】:

    之前我在 Windows 的 环境变量(系统变量)中定义了 PYTHONPATH。我删除了那个变量,Google App Engine 又可以工作了。

    【讨论】:

      猜你喜欢
      • 2016-08-25
      • 2017-04-16
      • 1970-01-01
      • 2017-05-01
      • 2014-11-17
      • 1970-01-01
      • 2017-10-21
      • 2014-06-08
      • 2019-12-14
      相关资源
      最近更新 更多