ERROR: Path for Bokeh server application does not exist

What are you trying to do?

I am trying to start the bokeh server as described in the following tutorials:

What have you tried that did NOT work as expected?

I tried to run the following commands:

 bokeh serve -- show
 bokeh serve --show
 bokeh serve show

But I always got an error

ERROR: Path for Bokeh server application does not exist: /Users/me/bokeh/show

The command bokeh serve -show however gives a different error:

usage: /Users/me/bokeh/venv/bin/bokeh [-h] [-v] {build,info,init,json,sampledata,secret,serve,static} ...
/Users/me/bokeh/venv/bin/bokeh: error: unrecognized arguments: -show

The output of bokeh info, however, works:

Python version      :  3.8.8 (default, Feb 21 2021, 09:57:29) 
IPython version     :  (not installed)
Tornado version     :  6.1
Bokeh version       :  2.3.1
BokehJS static path :  /Users/me/bokeh/venv/lib/python3.8/site-packages/bokeh/server/static
node.js version     :  v14.15.0
npm version         :  7.10.0

Running on MacOS 10.14.6

I found the problem. The incorrect way of starting the server is:

bokeh serve –-show

The correct way is to do:

bokeh serve --show

The examples should contain a big warning sign:

Do not just copy and past the example. Type it yourself so you get the correct dash symbol!

Yes, its two different dashes. Very hard to debug.

@alex4200 where specifically did you copy and paste from that has non-ascii dashes? If that is anywhere in the official docs, it is definitely not intentional (e.g. maybe a the docs build system transformed it to make it “nicer” without our knowledge) If that’s the case, we need to know exactly where, so we can fix it. If it was not the official docs site, well, unfortunately we have no control over anyone else’s content on the internet.

I just checked, and it it from this tutorial:

In the official docs the dashes seem to be correct. But upon just looking at the docs, I did not see any noticeable difference from the tutorial.

This website seems outdated. I cannot contact them.

1 Like