Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetersetMap Comparison #1841

Open
KARAjihane opened this issue Mar 24, 2024 · 10 comments
Open

MetersetMap Comparison #1841

KARAjihane opened this issue Mar 24, 2024 · 10 comments

Comments

@KARAjihane
Copy link

Hello,
I've been trying to run the example in the meter set map comparison, but I keep encountering an error whenever I attempt to perform the calculation. Despite my efforts, I can't seem to figure out what's causing the issue. Could you please provide assistance?
Capture d’écran 2024-03-24 131416
Capture d’écran 2024-03-24 131726
Capture d’écran 2024-03-24 131731

@SimonBiggs
Copy link
Member

Might you be able to copy the error message text into this issue?

@SimonBiggs
Copy link
Member

SimonBiggs commented Mar 24, 2024

@Matthew-Jennings, this seems related to your new gamma changes?

@SimonBiggs
Copy link
Member

@KARAjihane as a first step to get yourself unblocked might you be able to revert to the previous version:

pip install "pymedphys[user]==0.39.3"

@Matthew-Jennings
Copy link
Member

I'll try to take a look this evening.

@KARAjihane
Copy link
Author

Now i can't launch the gui, everytime i try i get this message :
Traceback (most recent call last):
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys_vendor\apipkg_init_.py", line 238, in getattribute
return getattr(getmod(), name)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys_vendor\apipkg_init_.py", line 216, in getmod
x = importobj(modpath, None)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys_vendor\apipkg_init_.py", line 103, in importobj
module = import(modpath, None, None, ["doc"])
ModuleNotFoundError: No module named 'streamlit.bootstrap'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\Scripts\pymedphys.exe_main
.py", line 7, in
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys\cli_init
.py", line 148, in pymedphys_cli
args.func(args)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys_gui.py", line 44, in main
start.start_streamlit_server(streamlit_script_path, config)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\site-packages\pymedphys_streamlit\server\start.py", line 26, in start_streamlit_server
st.bootstrap.load_config_options(flag_options=config)
File "C:\Users\insim\anaconda3\envs\pymedphys_envi\lib\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".

@SimonBiggs
Copy link
Member

Could you install the version of Streamlit found within this file here:
https://github.com/pymedphys/pymedphys/blob/v0.39.3/requirements.txt

That's the list of dependency versions that were tested with PyMedPhys version 0.39.3

@KARAjihane
Copy link
Author

KARAjihane commented Mar 25, 2024

i tries this command : pip install streamlit==1.11.1
pip install altair==4.2.0
pip install imageio==2.22.1
and now it's working!
I am grateful for your assistance.

@SimonBiggs
Copy link
Member

Glad it worked :)

@SimonBiggs
Copy link
Member

I don't believe this is actually fixed. The "fix" I suggest was to not use the version that has your accelerated gamma changes

@SimonBiggs SimonBiggs reopened this Mar 26, 2024
@Matthew-Jennings
Copy link
Member

Sorry I misinterpreted @KARAjihane's reply. I thought the manual dependency installs were while using 0.40.0. Thanks for picking that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants