【问题标题】:Bokeh server example not working散景服务器示例不起作用
【发布时间】:2016-02-16 12:07:05
【问题描述】:

我想熟悉 Bokeh 并浏览了示例。但是,当我尝试按照本网站 (https://github.com/bokeh/bokeh/tree/master/examples/app/crossfilter) 上的说明运行交叉过滤器示例时,我收到以下错误消息:

$ bokeh-server --script crossfilter_app.py




Bokeh Server Configuration
==========================
python version : 2.7.10
bokeh version  : 0.9.3
listening      : 127.0.0.1:5006
backend        : memory
python options : debug:OFF, verbose:OFF, filter-logs:OFF, multi-user:OFF
js options     : splitjs:OFF, debugjs:OFF

adding  to python path
importing crossfilter_app.py
Traceback (most recent call last):
File "//anaconda/bin/bokeh-server", line 7, in <module>
bokeh.server.run()
File "//anaconda/lib/python2.7/site-packages/bokeh/server/__init__.py", line 188, in run
start_server(args)
File "//anaconda/lib/python2.7/site-packages/bokeh/server/__init__.py", line 192, in start_server
start.start_simple_server(args)
File "//anaconda/lib/python2.7/site-packages/bokeh/server/start.py", line 52, in start_simple_server
configure_flask(config_argparse=args)
File "//anaconda/lib/python2.7/site-packages/bokeh/server/configure.py", line 76, in configure_flask
imp.load_source("_bokeh_app", script)
IOError: [Errno 2] No such file or directory

有人可以帮帮我吗?

谢谢!

【问题讨论】:

    标签: python bokeh


    【解决方案1】:

    您需要至少更新到 Bokeh 版本 0.11,这是在引入新的(大大改进的)Bokeh 服务器时。然后,导航到包含crossfilter 子目录的目录,然后运行:

    bokeh serve --show crossfilter
    

    注意,bokeh-server Bokeh 服务器,来自 0.10 和更早的版本。它已被弃用并完全删除。

    【讨论】:

      【解决方案2】:

      您必须在包含文件crossfilter_app.py 的目录中运行该命令,或者(假设您的计算机上某处有该文件的副本)提供crossfilter_app.py 的完整路径。如果没有,可以从github页面下载。

      【讨论】:

        猜你喜欢
        • 2015-04-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-08
        • 2017-08-31
        • 1970-01-01
        相关资源
        最近更新 更多