UQpy icon indicating copy to clipboard operation
UQpy copied to clipboard

Unable to install due to pinned dependencies

Open mdtanker opened this issue 9 months ago • 2 comments

Describe the bug Hi, I'm currently unable to install UQPy, or have it be included as a dependency of one of my pacakges, since the dependencies defined in setup.py are unfortunately pinned, or at least very restrictive. I understand pinning the dependencies in requirements.txt so your docs and GH actions can use specified versions, but did you also intend to have the install_requires dependencies so tightly pinned?

Is it possible to change everything in install_requires to specify minimum versions, instead of specifying the specific version, such as changing "matplotlib==3.8.4" to "matplotlib>=3.8.4".

Thank you!

To Reproduce

mamba install uqpy

Error message

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
uqpy 4.2.0 requires torchinfo~=1.8.0, which is not installed.
uqpy 4.2.0 requires beartype==0.18.5, but you have beartype 0.9.1 which is incompatible.
uqpy 4.2.0 requires fire==0.6.0, but you have fire 0.7.0 which is incompatible.
uqpy 4.2.0 requires matplotlib==3.8.4, but you have matplotlib 3.10.1 which is incompatible.
uqpy 4.2.0 requires numpy==1.26.4, but you have numpy 2.1.3 which is incompatible.
uqpy 4.2.0 requires scikit-learn==1.4.2, but you have scikit-learn 1.6.1 which is incompatible.
uqpy 4.2.0 requires torch~=2.2.2, but you have torch 2.6.0 which is incompatible.

mdtanker avatar Apr 07 '25 13:04 mdtanker

Thanks for bringing this to our attention! We're working on a PR in the development branch to relax the requirements.

connor-krill avatar May 29 '25 16:05 connor-krill

No worries, thanks for the fix!

mdtanker avatar May 30 '25 12:05 mdtanker