ModuleNotFoundError: No module named 'bokeh.plotting.figure on Streamlit Cloud

Hello,

Several months ago i developed a streamlit multipage app and deployed it through Streamlit cloud.
All worked fine, till 4-5 days ago, in a page of it display an error. Localy all works fine.

In this section of the fault i use a package called “biosignalsnotebooks”.

Traceback Error

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 563, in _run_script
    exec(code, module.__dict__)
File "/app/jumps-metrics-streamlit-prod/pages/3_Calculate_Results.py", line 7, in <module>
    import biosignalsnotebooks as bsnb
File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/__init__.py", line 68, in <module>
    from .detect import *
File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/detect.py", line 65, in <module>
    from .visualise import plot, opensignals_kwargs, opensignals_style, opensignals_color_pallet
File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/visualise.py", line 46, in <module>
    from bokeh.plotting.figure import FigureOptions

and the Error in blackboard

[20:43:03] 📦 Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

2022-11-08 20:43:18.074 Uncaught app exception

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 563, in _run_script

    exec(code, module.__dict__)

  File "/app/jumps-metrics-streamlit-prod/pages/3_Calculate_Results.py", line 7, in <module>

    import biosignalsnotebooks as bsnb

  File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/__init__.py", line 68, in <module>

    from .detect import *

  File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/detect.py", line 65, in <module>

    from .visualise import plot, opensignals_kwargs, opensignals_style, opensignals_color_pallet

  File "/home/appuser/venv/lib/python3.9/site-packages/biosignalsnotebooks/visualise.py", line 46, in <module>

    from bokeh.plotting.figure import FigureOptions

ModuleNotFoundError: No module named 'bokeh.plotting.figure'

( In the app code i dont use bokeh package at all. )
I dont know what is the problem! Any kind of help , would be appreciated!

Thank you!

Hi @Altemode,

Thanks for posting! Can you please share a link to the GitHub repo for your app’s code and the link to the deployed app?

@Altemode , can you pin the version of bokeh to 3.0.0?

What I guess could be happening is that you automatically updated to bokeh==3.0.0 which is the newest version and streamlit only supports 2.4.3. The reason why Streamlit only supports 2.4.3 at the moment is because of the different apis that Bokeh deprecates and supports.

Thanks,

William

1 Like

Hello,

I just put into requirements the version of bokeh == 2.4.3, and now runs well without error!

Thank you a lot!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.