File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)File "/app/pyckpocket---machine-learning-et-bookmakers/pyckpocket.py", line 5, in <module>
from dataviz_streamlit import datavizFile "/app/pyckpocket---machine-learning-et-bookmakers/dataviz_streamlit.py", line 8, in <module>
from bokeh.models.widgets import Panel, Tabs
I already have a packages.txt file in my repo with “libgl1” in it.
Ah, i forgot, there was something about bokeh…
I think Streamlit is only compatible with Bokeh version 2.4.3.
You would have to adjust your Bokeh code parts based on Bokeh 2.4.3, then it should work together with Streamlit.
I quickly started a virtual env and installed bokeh==2.4.3 and this gave me no error:
from bokeh.models.widgets import Panel
from bokeh.models.widgets import Tabs
Therefore i think, no changes in your code required, if you pin the version to bokeh==2.4.3