I am trying to deploy a Streamlit app and have encountered errors, wondering if anyone can help. The app works perfectly when run locally but not when deployed to get a URL. The app was deployed on Community Cloud on this link below:
Streamlit (fluidslab.streamlit.app)
The GitHub repository is Tom467/fluid_ws (github.com).
The full text of the error message is below. Any help is appreciated as I have put a lot of time into this.
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:589 in _run_script
/mount/src/fluid_ws/streamlit_stuff.py:8 in <module>
5 from numpy import sin, arcsin, cos, arccos, tan, arctan, pi, sqrt, log
6 from pathlib import Path
7 from streamlit_code.sandbox import sandbox_chart
❱ 8 from streamlit_code.pair_plot import pairplot
9 from streamlit_code.nullspace import explore_nullspace
10 from streamlit_code.csv_processor import process_csv
11 from streamlit_code.buckingham_pi import buckingham_pi_reduction
/mount/src/fluid_ws/streamlit_code/pair_plot.py:5 in <module>
2 import seaborn as sns
3 import streamlit as st
4
❱ 5 from streamlit_code.streamlit_util import read_markdown_file
6 from general_dimensional_analysis.data_reader import Data
7
8
/mount/src/fluid_ws/streamlit_code/streamlit_util.py:13 in <module>
10
11 from pathlib import Path
12 from itertools import product
❱ 13 from bokeh.plotting import figure
14 from scipy.optimize import curve_fit
15 from sklearn.linear_model import LinearRegression
16 from sklearn.preprocessing import PolynomialFeatures
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/plotting/__init__.py
:22 in <module>
19
20 # this is just for testing, otherwise the figure module is shadowed
21 # by the figure function and inacessible (needs happen up top)
❱ 22 from . import figure as _figure ; _figure
23
24 #----------------------------------------------------------------------
25 # Globals and constants
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/plotting/figure.py:2
5 in <module>
22
23 # Bokeh imports
24 from ..core.enums import HorizontalLocation, MarkerType, VerticalLocat
❱ 25 from ..core.properties import (
26 │ Any,
27 │ Auto,
28 │ Either,
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/core/properties.py:2
73 in <module>
270 from .property.any import Any; Any
271 from .property.any import AnyRef; AnyRef
272
❱ 273 from .property.auto import Auto; Auto
274
275 from .property.color import Alpha; Alpha
276 from .property.color import Color; Color
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/core/property/auto.p
y:24 in <module>
21 #----------------------------------------------------------------------
22
23 # Bokeh imports
❱ 24 from .enum import Enum
25
26 #----------------------------------------------------------------------
27 # Globals and constants
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/core/property/enum.p
y:27 in <module>
24 from ...util.string import nice_join
25 from .. import enums
26 from ._sphinx import model_link, property_link, register_type_link
❱ 27 from .primitive import String
28 from .singletons import Intrinsic
29
30 #---------------------------------------------------------------------
/home/adminuser/venv/lib/python3.11/site-packages/bokeh/core/property/primit
ive.py:37 in <module>
34 bokeh_bool_types = (bool,)
35 try:
36 │ import numpy as np
❱ 37 │ bokeh_bool_types += (np.bool8,)
38 except ImportError:
39 │ pass
40
/home/adminuser/venv/lib/python3.11/site-packages/numpy/__init__.py:410 in
__getattr__
407 │ │ │ import numpy.char as char
408 │ │ │ return char.chararray
409 │ │
❱ 410 │ │ raise AttributeError("module {!r} has no attribute "
411 │ │ │ │ │ │ │ "{!r}".format(__name__, attr))
412 │
413 │ def __dir__():
────────────────────────────────────────────────────────────────────────────────
AttributeError: module 'numpy' has no attribute 'bool8'
main
tom467/fluid_ws/main/streamlit_stuff.py