热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

关于“如何在GAE上托管静态站点”遇到的问题求助!!

http://segmentfault.com/a/1190000000440293?page=1#c-1190000000440293-1050000000449039这是博主原帖

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 ./这一步命令行提示如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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

_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

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

from google.appengine.tools.devappserver2.admin import console

File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\admin\console.py", line 22, in

from google.appengine.tools.devappserver2 import module

File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 49, in

from google.appengine.tools.devappserver2 import gcs_server

File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\gcs_server.py", line 29, in

from google.appengine.tools.devappserver2 import wsgi_server

File "D:\DDY\Google\google_appengine\google\appengine\tools\devappserver2\wsgi_server.py", line 31, in

from cherrypy import wsgiserver

File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\__init__.py", line 70, in

from cherrypy import _cptools

File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\_cptools.py", line 245, in

from cherrypy.lib import cptools, encoding, auth, static, jsontools

File "D:\DDY\Google\google_appengine\lib\cherrypy\cherrypy\lib\static.py", line 7, in

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)

就是这样的 请问该怎么操作,谢谢了


推荐阅读
author-avatar
YY666JAME_381
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有