App Engine升级后部署期间出错

时间:2015-05-11 12:54:37

标签: google-app-engine

我正在尝试从Windows 7 x64部署应用程序。我安装了App Engine SDK 1.9.20和ActivePython 2.7.8.10。这是appcfg.py的输出:

03:39 PM Application: turnkey-antler-289; version: 1
03:39 PM Host: appengine.google.com
03:39 PM
Starting update of app: turnkey-antler-289, version: 1
03:39 PM Getting current resource limits.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 133, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 129, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5475, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5466, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3023, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5122, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3860, in Update
    self._UpdateWithParsedAppYaml(appyaml, self.basepath)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3913, in _UpdateWithParsedAppYaml
    self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3798, in UpdateVersion
    return appversion.DoUpload(paths, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2444, in DoUpload
    self.error_fh)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 490, in GetResourceLimits
    resource_limits.update(_GetRemoteResourceLimits(logging_context))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 460, in _GetRemoteResourceLimits
    yaml_data = logging_context.Send('/api/appversion/getresourcelimits')
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1746, in Send
    result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py", line 230, in Send
    self._Authenticate(self.http, auth_errors[0] > 0)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py", line 439, in _Authenticate
    self.credentials = tools.run_flow(flow, self.storage, self.flags)
AttributeError: 'module' object has no attribute 'run_flow'

现在,一切正常,直到我升级App Engine SDK,我这样做是为了将应用程序切换到php55运行时。我想听听有关如何解决此问题的任何建议。

1 个答案:

答案 0 :(得分:5)

我遇到了同样的问题......在这里,我与大家分享了对我有用的解决方案:

  1. 在Windows操作系统上,转到“控制面板”&gt; “程序和功能”并取消所有GAE版本。

  2. 转到您安装了GAE的路径,在您的情况下使用“C:\ Program Files(x86)\ Google”,并删除文件夹“google_appengine”(如果您愿意,可以进行备份)< / p>

  3. 安装最新版本的GAE(实际为1.9.20)

  4. 测试部署您的应用,现在应该可以使用。