jfcabana / omg_dosimetry

Optimized Multichannel Gafchromic Dosimetry
https://omg-dosimetry.readthedocs.io/en/latest/
MIT License
8 stars 2 forks source link

Error with pymedphys 0.40 #52

Open jfcabana opened 4 months ago

jfcabana commented 4 months ago

I'm trying to install OMG Dosimetry on new computers at work, and I get an error message in the analysis module when trying to compute gamma. The error is with pymedphys trying to find the file EXTRA-DEPENDENCIES,.txt but not finding it.

The error is resolved after I install version 0.39.3.

LuisOlivaresJ commented 4 months ago

Seems a bug inside PyMedPhys (as a matter of fact the new version was relesed yesterday).

LuisOlivaresJ commented 4 months ago

PyMedPhys is looking for ... / lib / pymedphys / dependency-extra.txt.

Conda (or venv) uses site-packages folder instead of lib, for package storage, i.e., the file is in: ... / site-packages / pymedphys / dependency-extra.txt.

By my understanding, PyMedPhys does not support installation by other means than pyenv for virtual environment management. But I do not have experience with pyenv.

One provisional solution for the issue is to force the installation of PyMedPhys v0.39 https://github.com/jfcabana/omg_dosimetry/blob/84ea76b72da0cfb7a7b273ea1a5c08bc7d8f5658/pyproject.toml#L25