散景服务没有回应

时间:2017-04-28 14:25:38

标签: python-2.7 bokeh

我尝试从doc运行the button散景服务器示例,但没有显示,即浏览器无限期地转动。这是我的命令行:

http_proxy=  https_proxy=  bokeh serve test_button.py --port 26453 --log-level debug --host opit020.vm.cfm.fr:26453

如你所见,我:

  • 尝试停用代理
  • 更改了端口
  • 添加日志
  • 尝试了几个主机

但到目前为止一切都失败了(--show选项在localhost上以相同的方式失败)。当我ping http://myhost:26453/test_button时,日志仍会显示:

2017-04-28 16:19:40,580 [pid 8425] 0 clients connected
2017-04-28 16:19:40,580 [pid 8425]   /test_button has 0 sessions with 0 unused
2017-04-28 16:19:55,579 [pid 8425] 0 clients connected
2017-04-28 16:19:55,580 [pid 8425]   /test_button has 0 sessions with 0 unused

我的浏览器中没有任何内容(本地或远程)。 当我点击http://myhost:26453/test_button/ws时,我得到:

2017-04-28 16:20:08,949 400 GET /test_button/ws (10.75.21.109) 0.77ms
2017-04-28 16:20:08,950 Can "Upgrade" only to "WebSocket".

证明服务器已成功到达(本地或远程再次)。当我点击根http://myhost:26453/时,有另一种生活证据(即使浏览器也无限期地转动):

2017-04-28 16:30:51,241 302 GET / (10.75.21.109) 0.47ms

你能想到我可以试着让这个简单的例子有效吗?

P.S。我使用python 2.7和bokeh 0.12.3。

1 个答案:

答案 0 :(得分:1)

Bokeh与新的Tornado v4.5版本不兼容。您应该将龙卷风版本固定到之前的版本(v4.4.2)。

https://github.com/bokeh/bokeh/issues/6152