Python Bokeh快速启动示例失败
注意:这个问题与“第一代”Bokeh服务器有关,该服务器已被弃用并删除多年。此问题或其答案中的任何内容都与Bokeh>=0.11的任何版本无关Python Bokeh快速启动示例失败,python,bokeh,Python,Bokeh,注意:这个问题与“第一代”Bokeh服务器有关,该服务器已被弃用并删除多年。此问题或其答案中的任何内容都与Bokeh>=0.11的任何版本无关 博克:今天从quickstart克隆 Python:2.7.6 Python模块:来自Debian Jessie $ ./bokeh-server /home/jwu/g/othersw/bokeh/bokeh/server/start.py:2: UserWarning: libevent version mismatch: system ver
博克:今天从quickstart克隆 Python:2.7.6 Python模块:来自Debian Jessie
$ ./bokeh-server
/home/jwu/g/othersw/bokeh/bokeh/server/start.py:2: UserWarning: libevent version mismatch: system version is '2.0.21-stable' but this gevent is compiled against '2.0.19-stable'
import gevent.monkey
Traceback (most recent call last):
File "./bokeh-server", line 74, in <module>
main()
File "./bokeh-server", line 71, in main
start.start_app(verbose=args.verbose)
File "/home/jwu/g/othersw/bokeh/bokeh/server/start.py", line 102, in start_app
start_services()
File "/home/jwu/g/othersw/bokeh/bokeh/server/start.py", line 91, in start_services
save=redis_save
File "/home/jwu/g/othersw/bokeh/bokeh/server/services.py", line 81, in start_redis
stdin=subprocess.PIPE
File "/home/jwu/g/othersw/bokeh/bokeh/server/services.py", line 27, in __init__
stdin=stdin)
File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Exception KeyError: KeyError(42871856,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
$。/bokeh服务器
/home/jwu/g/othersw/bokeh/bokeh/server/start.py:2:UserWarning:libevent版本不匹配:系统版本为“2.0.21-stable”,但此gevent是根据“2.0.19-stable”编译的
导入gevent.monkey
回溯(最近一次呼叫最后一次):
文件“/bokeh server”,第74行,在
main()
文件“/bokeh服务器”,第71行,主
start.start\u应用程序(verbose=args.verbose)
文件“/home/jwu/g/othersw/bokeh/bokeh/server/start.py”,第102行,在start\u应用程序中
启动服务()
文件“/home/jwu/g/othersw/bokeh/bokeh/server/start.py”,第91行,在启动服务中
save=redis\u save
文件“/home/jwu/g/othersw/bokeh/bokeh/server/services.py”,第81行,在start\u redis中
stdin=子流程.PIPE
文件“/home/jwu/g/othersw/bokeh/bokeh/server/services.py”,第27行,在__
标准偏差=标准偏差)
文件“/usr/lib/python2.7/subprocess.py”,第709行,在__
错误读取,错误写入)
文件“/usr/lib/python2.7/subprocess.py”,第1326行,在执行子进程中
引发子对象异常
OSError:[Errno 2]没有这样的文件或目录
异常KeyError:忽略中的KeyError(42871856,)
我不知道如何解释错误消息。gevent版本有问题吗(尽管消息中只显示UserWarning)?缺少哪个文件或目录?哪个键出错?编辑Bokeh核心开发人员:这个答案已经过时了。Bokeh不再使用redis,而且很长一段时间都没有
bokeh邮件列表上的答案:安装redis server解决了问题。前面的答案已经过时。从Bokeh版本
0.11
开始,有一个新的Bokeh服务器,它通过执行Bokeh服务运行。此外,redis
不再是依赖项(甚至不是可选项) 我想补充一点与示例相关的内容,这些示例一开始不起作用
在克隆bokeh并尝试示例时,“git签出”系统上使用的版本的«标记版本»非常重要。如果没有,您将使用可能无法与系统上使用的特定版本一起使用的主分支示例。主版本中可能会实施一些改进,包括已安装版本中不可用的功能