Open haesleinhuepf opened 2 years ago
Hey, @haesleinhuepf ! I agree it would be great to maintain compatibility. It looks like numba has resolved the numpy issues that required < 1.22 (links below) in 0.55.2. As of a couple of weeks ago, 0.55.2 was available on pypi and it looks like it will be on Vonda-forge soon (already available on numba channel. In light of this, I will try removing the numpy constraint and instead add a numba constraint in morphometrics, which should alleviate this dependency conflict. I’ll ping you in the PR once I’ve made the test.
FYI, I've updated the numpy dependency in morphometrics: https://github.com/kevinyamauchi/morphometrics/pull/26
Awesome, thanks @kevinyamauchi !
I'd like to explore anyway if we can relax this dependency version constraint... There have been other projects (stardist?) which are quick picky about their numpy version...
I had a quick look at the pyshtools
library out of curiosity and I don't really understand what is setting their numpy version requirement. To me it actually looks like they set it to whatever version of numpy is currently in the environment upon installation (see this line). I am curious if this is going to cause an issue where the required numpy version will depend on when and in what order pyshtools
was added to the environment.
I'd like to explore anyway if we can relax this dependency version constraint... There have been other projects (stardist?) which are quick picky about their numpy version...
I agree it makes sense to try to be as relaxed as possible with the numpy dependency seeing as many (most?) scientific python packages depends on it.
To me it actually looks like they set it to whatever version of numpy is currently in the environment upon installation (see this line).
I had the same suspicion. It could be a different random-ish version depending on who releases it from where.
It would be cool if napari-stress was compatible with morphometrics. Unfortunately, we have a dependency conflict at the moment.
If morphometrics is installed correctly (numpy 1.21.5), pip complains:
If napari-stress is installed correctly (numpy 1.22.4), pip complains:
After a quick chat with @kevinyamauchi in https://github.com/kevinyamauchi/morphometrics/issues/25 , I presume it would be good if we could pin
numpy < 1.22
in napari-stress. But it needs to be tested if our functionality depending on pyshtools still works then.