goagent AttributeError: can't set attribute 因开启两步验证的解决办法

.../google_appengine/google/appengine/api/search/search.py:232: UserWarning: DocumentOperationResult._code is deprecated. Use OperationResult._code instead.
  'Use OperationResult.%s instead.' % (name, name))
.../google_appengine/google/appengine/api/search/search.py:232: UserWarning: DocumentOperationResult._CODES is deprecated. Use OperationResult._CODES instead.
  'Use OperationResult.%s instead.' % (name, name))
Application: xxxxxxxxx; version: 1
Host: appengine.google.com




Starting update of app: xxxxxxxxx, version: 1
Getting current resource limits.
Email: [email protected]
Password for [email protected]
Traceback (most recent call last):
  File ".../opt/goagent/goagent3.0.4/google_appengine/appcfg.py", line 126, in <module>
    run_file(__file__, globals())
  File ".../opt/goagent/goagent3.0.4/google_appengine/appcfg.py", line 122, in run_file
    execfile(script_path, globals_)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 4070, in <module>
    main(sys.argv)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 4061, in main
    result = AppCfgApp(argv).Run()
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 2539, in Run
    self.action(self)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 3818, in __call__
    return method()
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 3000, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 2982, in UpdateVersion
    self.options.max_size)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 2118, in DoUpload
    resource_limits = GetResourceLimits(self.rpcserver, self.config)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 355, in GetResourceLimits
    resource_limits.update(GetRemoteResourceLimits(rpcserver, config))
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appcfg.py", line 326, in GetRemoteResourceLimits
    version=config.version)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appengine_rpc.py", line 379, in Send
    self._Authenticate()
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appengine_rpc.py", line 437, in _Authenticate
    super(HttpRpcServer, self)._Authenticate()
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appengine_rpc.py", line 281, in _Authenticate
    auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appengine_rpc.py", line 233, in _GetAuthToken
    e.headers, response_dict)
  File ".../opt/goagent/goagent3.0.4/google_appengine/google/appengine/tools/appengine_rpc.py", line 94, in __init__
    self.reason = args["Error"]

AttributeError: can't set attribute


====================================================


ubuntu win7下都存在这样的错误,原因是我开通了两步验证,使用自己的密码登录无效。
解决办法:登录gmail邮箱后,打开两步验证的邮件,点开生成新密码链接,用生成的新密码输入到其中即可


 

你可能感兴趣的:(attribute)