关于“如何在GAE上托管静态站点”遇到的问题 求助!!
http://segmentfault.com/a/1190000000440293?page=1#c-1190000000440293-1050000000449039
这是博主原帖
看到了想自己试一下:
本地测试这一步还是没成功·~~ 不知道哪哪里错了
1.应用已创建 2. Python和GAE sdk已安装 3.目录结构也创建了 4.环境变量设置了 。
测试
先在本地测试一下:
dev_appserver.py ./
dev_appserver.py是Python GAE SDK中的工具。
访问http://localhost:8080看看效果。
运行dev_appserver.py ./这一步命令行提示如下:
C:\Documents and Settings\Administrator>dev_appserver.py ./
Traceback (most recent call last):
File "D:\DDY\Google\google_appengine\dev_appserver.py", line 82, in <module>
_run_file(__file__, globals())
File "D:\DDY\Google\google_appengine\dev_appserver.py", line 78, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
File ”D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 33, in <module>
from google.appengine.tools.devappserver2.admin import admin_server
File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\admin\admin_server.py", line 29, in <module>
from google.appengine.tools.devappserver2.admin import console
File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\admin\console.py", line 22, in <module>
from google.appengine.tools.devappserver2 import module
File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 49, in <module>
from google.appengine.tools.devappserver2 import gcs_server
File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\gcs_server.py", line 29, in <module>
from google.appengine.tools.devappserver2 import wsgi_server
File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\wsgi_server.py", line 31, in <module>
from cherrypy import wsgiserver
File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\__init__.py", line 70, in <module>
from cherrypy import _cptools
File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\_cptools.py", line 245, in <module>
from cherrypy.lib import cptools, encoding, auth, static, jsontools
File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\lib\static.py", line 7, in <module>
mimetypes.init()
File "d:\DDY\Python27\lib\mimetypes.py", line 358, in init
db.read_windows_registry()
File "d:\DDY\Python27\lib\mimetypes.py", line 258, in read_windows_registry
for subkeyname in enum_types(hkcr):
File "d:\DDY\Python27\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 1: ordinal
not in range(128)
就是这样的 请问该怎么操作,谢谢了
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题最近一而再、再而三地出现…………你们一定要在开发机器上安装阿里旺旺么!
所以你去注册表里的那个叫什么「XXX_CLASSROOT」之类的键底下找找吧,如果真的安装了阿里旺旺那就直接搜它好了,顺便截个图放上来大家围观吧 =w=。