部署谷歌应用程序时的UnicodeDecodeError(python sdk)

时间:2014-07-28 09:00:14

标签: python google-app-engine

以下是我登录谷歌应用引擎:(我在swf文件中嵌入了中文字体)如何解决问题?

2014-07-28 15:35:00 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=awer3423@gmail.com', '--passin', 'update', u'F:\\karagodktv\\temp']"
03:35 PM Application: karagodktv; version: 1
03:35 PM Host: appengine.google.com
03:35 PM 
Starting update of app: karagodktv, version: 1
03:35 PM Getting current resource limits.
Password for dqyes2008@gmail.com: 03:35 PM Scanning files on local disk.
Could not guess mimetype for swf/Thumbs.db.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.eot.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.ttf.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.woff.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.woff.  Using application/octet-stream.
Could not guess mimetype for swf/Thumbs.db.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.ttf.  Using application/octet-stream.
Could not guess mimetype for fonts/glyphicons-halflings-regular.eot.  Using application/octet-stream.
03:35 PM Cloning 70 static files.
03:35 PM Cloning 21 application files.
03:35 PM Uploading 48 files and blobs.
2014-07-28 15:35:07,980 ERROR appcfg.py:2488 An unexpected error occurred. Aborting. 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2329, in DoUpload
    self._UploadMissingFiles(missing_files, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2455, in _UploadMissingFiles
    self.UploadFile(missing_file, file_handle)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2002, in UploadFile
    file_classification.StaticMimeType())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1442, in AddToBatch
    self.SendSingleFile(path, payload, mime_type)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1388, in SendSingleFile
    path=path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1684, in Send
    result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 408, in Send
    HttpRequestToString(req, include_data=self.debug_data))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 102, in HttpRequestToString
    'data': req.get_data(),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
03:35 PM Rolling back the update.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 126, in <module>
    run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 122, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5220, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5211, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2886, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4890, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3682, in Update
    self._UpdateWithParsedAppYaml(appyaml, self.basepath)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3735, in _UpdateWithParsedAppYaml
    self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3618, in UpdateVersion
    return appversion.DoUpload(paths, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2329, in DoUpload
    self._UploadMissingFiles(missing_files, openfunc)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2455, in _UploadMissingFiles
    self.UploadFile(missing_file, file_handle)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2002, in UploadFile
    file_classification.StaticMimeType())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1442, in AddToBatch
    self.SendSingleFile(path, payload, mime_type)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1388, in SendSingleFile
    path=path)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1684, in Send
    result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 408, in Send
    HttpRequestToString(req, include_data=self.debug_data))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 102, in HttpRequestToString
    'data': req.get_data(),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
2014-07-28 15:35:09 (Process exited with code 1)

You can close this window now.

0 个答案:

没有答案