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:

https://www.tutorialspoint.com/bokeh/bokeh_server.htm

What have you tried that did NOT work as expected?

I tried to run the following commands:

 bokeh serve -- show myscript.py
 bokeh serve --show myscript.py
 bokeh serve show myscript.py

But I always got an error

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

The command bokeh serve -show myscript.py 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

1 Like

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

bokeh serve –-show sample3_server.py

The correct way is to do:

bokeh serve --show sample3_server.py

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:

https://www.tutorialspoint.com/bokeh/bokeh_server.htm

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

" Type it yourself so you get the correct dash symbol!"
seems dosen’t work in my computer, neither Win10 nor Ubuntu…

@Sean_Han please open a new topic with complete details (e.g exactly what commands you are running) specific to your issue. We cannot even start to speculate without more information.