Cannot import name 'create_webdriver'

Hi,

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 x.py I get the error:

Traceback (most recent call last):
File “/home/jfu/anaconda3/envs/FuturesVisualizer/bin/bokeh”, line 11, in
sys.exit(main())
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/main.py”, 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/bootstrap.py”, line 54, in
from . import subcommands
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/subcommands/init.py”, line 76, in
all = _collect()
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/command/subcommands/init.py”, line 60, in _collect
mod = import_module("." + modname, package)
File “/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/importlib/init.py”, 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/svg.py”, line 68, in
from …io.export import get_svgs, create_webdriver, terminate_webdriver
ImportError: cannot import name ‘create_webdriver’ from ‘bokeh.io.export’ (/home/jfu/anaconda3/envs/FuturesVisualizer/lib/python3.7/site-packages/bokeh/io/export.py)

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:

http://docs.bokeh.org/en/latest/docs/releases.html#release-2-0-0

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

Function create_webdriver removed, use webdriver_control instead.