Closed denbonte closed 8 months ago
Thanks for another bug report @denbonte! I am looking into this now.
The main reason we don't want to upper pin libraries in platipy is that some features in the library are useful within other projects (especially the image visualiser). Therefore we don't want to be restrictive as to which versions of libraries are required as this many be a limitation for other projects.
I should be able to resolve this one I think. But I suppose that this kind of issue may continue to pop up from time to time as libraries such as SimpleITK are updated.
One thing we could consider is that for the cardiac extra (used by installing with pip install platipy[cardiac]
) we pin the support library versions, but when installing the base platipy library (pip install platipy
) we leave the supported upper end of libraries open. I will think about it and will discuss with @rnfinnegan. In the meantime, I will look at solving the issue you've flagged above.
Dear @pchlap and @rnfinnegan,
Good day... again 😆
We thought you folks might want to know we noticed the following error raised by SimpleITK when running Platipy with
SimpleITK==2.3.0
instead ofSimpleITK==2.2.1
(or the previous versions, for that matter, I guess - although we tested it for2.2.1
only!):Looking at your poetry.lock file, it seems if a user freshly installs Platipy in an environment (e.g., using
conda
and throughpip
), the package manager will pull2.2.1
and all is good. However, I guess Platipy is pretty loose on which version of SimpleITK to use and will allow other SimpleITK installations. By chance, we built an MHub container with2.3.0
and voilà .We are pretty convinced this is on
SimpleITK
as we tested this withplatipy==0.6.1
andplatipy==0.7.0
, using NIfTI files generated from DICOM using multiple tools (Plastimatch anddcm2niix
), and everything works withSimpleITK==2.2.1
but not withSimpleITK==2.3.0
.On our side, we'll fix the SITK version to
SimpleITK==2.2.1
- but you might want to look into this for the future 😄Thanks again for all your work!