我尝试升级到1.5.4并从下载页面下载了新版本,现在当我点击Launcher上的浏览按钮时我得到了ascii错误。有谁知道发生了什么?
这是错误:
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 4143, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 4049, in _Dispatch
base_env_dict=env_dict)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 616, in Dispatch
base_env_dict=base_env_dict)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3120, in Dispatch
self._module_dict)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3024, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2882, in ExecuteOrImportScript
handler_path, cgi_path, import_hook)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2747, in LoadTargetModule
raise SyntaxError(error)
SyntaxError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128) please see http://www.python.org/peps/pep-0263.html for details (ting.py)
答案 0 :(得分:2)
这是加载script:
中指定的app.yaml
文件的代码路径。它希望找到7位干净的ascii,但还能找到别的东西。
script:
指定的python脚本(似乎是ting.py
)是否有可能出现乱码?