English 中文(简体)
厄立特里亚
原标题:GAE - Deployment Error: "AttributeError: can t set attribute"

当我试图部署我时,我有以下错误:

Starting update of app: flyingbat123, version: 0-1
Getting current resource limits.
Password for avigmati: Traceback (most recent call last):
  File "C:Program Files (x86)Googlegoogle_appengineappcfg.py", line 125, in 
    run_file(__file__, globals())
  File "C:Program Files (x86)Googlegoogle_appengineappcfg.py", line 121, in run_file
    execfile(script_path, globals_)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 4062, in 
    main(sys.argv)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 4053, in main
    result = AppCfgApp(argv).Run()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 2543, in Run
    self.action(self)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 3810, in __call__
    return method()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 3006, in Update
    self.UpdateVersion(rpcserver, self.basepath, appyaml)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 2995, in UpdateVersion
    self.options.max_size)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 2122, in DoUpload
    resource_limits = GetResourceLimits(self.rpcserver, self.config)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 355, in GetResourceLimits
    resource_limits.update(GetRemoteResourceLimits(rpcserver, config))
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 326, in GetRemoteResourceLimits
    version=config.version)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc.py", line 379, in Send
    self._Authenticate()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc.py", line 437, in _Authenticate
    super(HttpRpcServer, self)._Authenticate()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc.py", line 281, in _Authenticate
    auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc.py", line 233, in _GetAuthToken
    e.headers, response_dict)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc.py", line 94, in __init__
    self.reason = args["Error"]
AttributeError: can t set attribute
2012-04-25 19:30:15 (Process exited with code 1)

以下是我的意见:

application: flyingbat123
version: 0-1
runtime: python
api_version: 1
threadsafe: no

It seems like an authentication error, but I m entering a valid email and password. What am I doing wrong?

问题回答

I had the same problem. I m using 2 factor authentication for my google account, so I previously had to enter a application specific password to deploy apps to GAE. If I entered my normal google password I got the AttributeError: can t set attribute error. However when I created an application specific password and used it, it worked

错误信息表明,我们的SDK有点.。 由于这一ug,你看不到失败的原因。 然而,只有在认证申请结束时,吉大港山区开发协会有403个错误时,才能使用这一代码。

您可以暂时查到C案:Program files(x86)谷歌戈格尔_appenginegoogleappengine oolsappengine_rpc.py,具体如下:见实际原因(addcode>logger.warn(有人)。

except urllib2.HTTPError, e:
  if e.code == 403:
    body = e.read()
    # Add a line bellow to see the actual error
    logger.warn(body)
    response_dict = dict(x.split("=", 1) for x in body.split("
") if x)
    raise ClientLoginError(req.get_full_url(), e.code, e.msg,
                           e.headers, response_dict)
  else:
    raise

如果你发现原因,这个问题必须更容易解决。 在你解决该问题之后,我赞赏你能否在上就这一神秘错误信息提出一个问题?

我知道,这是对欧佩斯问题的回答,但它可以帮助那些使用<代码>--oauth2的人。

我已经进行了两步的核查,我一直在使用针对具体申请的密码,但发现它急于寻找和 past住每天长篇大事。 I found that using ---oauth2 回返

<编码> 这一申请并不存在(应用_id=u my-app-id)。

但是,通过增加<条码>-无>。 备选办法

<编码>appcfg.py --oauth2 --no_cookies Update myapp /code>

I can now authenticate each time by just clicking [Allow access] in the browser window that is opened.

视窗7

NOTE:我在其他地方找到了这一解决办法,但我可以记住,在什么地方,我可以适当地把这一解决办法归为了。 Sorry.

.

I had the same problem and after inserting logger.warn(body), I get this: WARNING appengine_rpc.py:231 Error=BadAuthentication Info=InvalidSecondFactor

标准错误信息本来会更有用,但这使我怀疑我是否不应使用具体密码?

添加--oauth2国旗,以图g.py更新,以便于固定

如果您的<代码>default_error,情况也是如此。 页: 1





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签