Hello,
I cannot launch the gui on Ubuntu 22.04. I'm getting the following message:
-> pymedphys gui
Traceback (most recent call last):
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_vendor/apipkg/__init__.py", line 238, in __getattribute__
return getattr(getmod(), name)
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_vendor/apipkg/__init__.py", line 216, in getmod
x = importobj(modpath, None)
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_vendor/apipkg/__init__.py", line 103, in importobj
module = __import__(modpath, None, None, ["__doc__"])
File "/home/medphys/.local/lib/python3.10/site-packages/streamlit/__init__.py", line 70, in <module>
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "/home/medphys/.local/lib/python3.10/site-packages/streamlit/delta_generator.py", line 90, in <module>
from streamlit.elements.arrow_altair import ArrowAltairMixin
File "/home/medphys/.local/lib/python3.10/site-packages/streamlit/elements/arrow_altair.py", line 27, in <module>
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/medphys/.local/bin/pymedphys", line 8, in <module>
sys.exit(main())
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/cli/__init__.py", line 148, in pymedphys_cli
args.func(args)
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_gui.py", line 44, in main
start.start_streamlit_server(streamlit_script_path, config)
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_streamlit/server/start.py", line 26, in start_streamlit_server
st.bootstrap.load_config_options(flag_options=config)
File "/home/medphys/.local/lib/python3.10/site-packages/pymedphys/_vendor/apipkg/__init__.py", line 248, in __getattribute__
raise ModuleNotFoundError(
ModuleNotFoundError:
PyMedPhys was unable to import "streamlit.bootstrap.load_config_options".
The easiest way to fix this issue is to use the "[user]"
option when installing PyMedPhys. For example,
with pip this can be done by calling
"pip install pymedphys[user]==0.39.3".