无法运行Bokeh抽象渲染示例 - ValueError:无法解码JSON

时间:2015-02-25 15:48:22

标签: python bokeh

当我尝试以这种方式运行抽象渲染示例时:

python .\abstractrender.py

我得到了这个输出:

S C:\Anaconda\Examples\bokeh\plotting\server> python .\abstractrender.py
Using saved session configuration for http://localhost:5006/
To override, pass 'load_from_config=False' to Session
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
INFO:bokeh.session:got read write apikey
Traceback (most recent call last):
  File ".\abstractrender.py", line 9, in <module>
    output_server("abstractrender")
  File "C:\Anaconda\lib\site-packages\bokeh\plotting.py", line 379, in output_server
    session.load_document(curdoc())
  File "C:\Anaconda\lib\site-packages\bokeh\session.py", line 543, in load_document
    self.gc()
  File "C:\Anaconda\lib\site-packages\bokeh\session.py", line 529, in gc
    self.post_json(url)
  File "C:\Anaconda\lib\site-packages\bokeh\session.py", line 367, in post_json
    return self.execute_json('post', url, headers=headers, **kwargs)
  File "C:\Anaconda\lib\site-packages\bokeh\session.py", line 335, in execute_json
    return utils.get_json(resp)
  File "C:\Anaconda\lib\site-packages\bokeh\utils.py", line 41, in get_json
    return response.json()
  File "C:\Anaconda\lib\site-packages\requests\models.py", line 799, in json
    return json.loads(self.text, **kwargs)
  File "C:\Anaconda\lib\json\__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "C:\Anaconda\lib\json\decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Anaconda\lib\json\decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

我使用Continuum Analytics Anaconda,Python 2.7和Bokeh 0.8.1在Windows 7上运行它。

散景服务器正在运行,我可以运行(例如。\ stocks.py)

知道可能出现什么问题吗?

编辑: 拼写。

0 个答案:

没有答案