更新了Google App Engine,现在我有一个错误TypeError:'NoneType'对象是unsubscriptable

时间:2011-11-08 15:36:55

标签: python google-app-engine

我昨晚更新了GoogleAppEngineLauncher,现在我收到了此错误

<type 'exceptions.TypeError'>   Python 2.6.1: /usr/bin/python
Tue Nov 8 09:25:13 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x114cef368>)
<type 'exceptions.TypeError'>: 'NoneType' object is unsubscriptable 
      args = ("'NoneType' object is unsubscriptable",) 
      message = "'NoneType' object is unsubscriptable"

任何想法发生了什么?

1 个答案:

答案 0 :(得分:0)

GAE使用Python 2.7.x,如果在app.yaml,2.5.x else中指定的话。 使用2.6.x启动时会出现不可预测的错误。