AppEngine - 将数据上载到本地服务器时出错

时间:2014-11-04 17:47:07

标签: android python google-app-engine

我正在关注this website的AppEngine教程 当我尝试使用此脚本( upload_data.bat )将数据上传到本地服务器时:

#!/bin/sh
C:/Program\ Files\ \(x86\)/Google/google_appengine/appcfg.py upload_data --config_file bulkloader.yaml --url=http://localhost:8888/remote_api --filename $1 --kind=$2 -e nobody@nowhere.com

我收到错误:

$ upload_data.bat places.csv Place
Traceback (most recent call last):
  File "C:/Program Files (x86)/Google/google_appengine/appcfg.py", line 127, in
<module>
    run_file(__file__, globals())
  File "C:/Program Files (x86)/Google/google_appengine/appcfg.py", line 123, in
run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 177, in <module>
    augment_mimetypes.init()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\au
gment_mimetypes.py", line 23, in init
    mimetypes.add_type('application/dart', '.dart')
  File "c:\Python27\lib\mimetypes.py", line 347, in add_type
    init()
  File "c:\Python27\lib\mimetypes.py", line 358, in init
    db.read_windows_registry()
  File "c:\Python27\lib\mimetypes.py", line 258, in read_windows_registry
    for subkeyname in enum_types(hkcr):
  File "c:\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 0xc4 in position 13: ordinal
 not in range(128)

可能是什么问题?

0 个答案:

没有答案