Cannot import name 'create_webdriver'


When I had been running a bokeh server with no issues, however recently (not sure when this started) the server went down. When I try to run bokeh serve I get the error:

Traceback (most recent call last):
File “/home/jfu/anaconda3/envs/FuturesVisualizer/bin/bokeh”, line 11, in
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/”, line 53, in main
from bokeh.command.bootstrap import main as _main
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/”, line 54, in
from . import subcommands
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/subcommands/”, line 76, in
all = _collect()
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/subcommands/”, line 60, in _collect
mod = import_module("." + modname, package)
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/importlib/”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/subcommands/”, line 68, in
from …io.export import get_svgs, create_webdriver, terminate_webdriver
ImportError: cannot import name ‘create_webdriver’ from ‘’ (/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/io/

I was thinking this is a version, issue but I checked and I am on 2.0.0. Thanks in advance for the help.

Nevermind, it did end up being a version issue. I was on 1.4.0. Ignore this thread pls!

For reference, every version has release notes, which include a migration guide if necessary:

And for others who may find this, the relevant line in the API changes section is

Function create_webdriver removed, use webdriver_control instead.