conflicting numpy dependencies in v5.7 with Python 3.6 #2249
Comments
@MarkusShepherd - Thank you for the detailed write up. I appreciate it. I agree we should do a better job of handling dependency versions. Relying on a range of versions would certainly be better. Here are all of the distinct requirements for
So it sounds like we should change our numpy requirement from |
Yes, I'd think so. Looking at the other requirements there are more dependencies fixed at a specific version ( I'm not familiar with best practices regarding dependencies for libraries, but intuitively it makes sense to bound them according to what functionality your own library actually requires, and let dependencies handle their own bounds. In this concrete case, it should be enough to restrict |
FYI, I just realised |
Seems to only repro on |
When I
I'd call that reproducing the issue... |
@MarkusShepherd As I said in the previous comment,
|
Sadly, we can not fix this in our next release. Although I opened apple/coremltools#456 with them. Since MXNet requires |
Verified a python 3.6 egg using from 6607589. Installation via virtual-env no longer gives
|
Is it resolved, though? From what I can tell installation might work now as Is there a good reason why |
@MarkusShepherd You are right, is is resolved (for now) in our master branch. @TobyRoseman Here is what our setup.py says. Do you have a recommendation for how we can more permanently fix it.
|
I agree we should not have fixed dependencies. We also shouldn't be depending on a beta version (i.e. In order to avoid potential conflicts in users' environments, |
Created to #2664 track unfixing numpy. |
When installing Turicreate under Python 3.6, there are conflicting (i.e., unresolvable) constraints on the
numpy
version to be installed. To reproduce:It fails with this message:
When running
it yields
I.e.,
turicreate
itself fixesnumpy
at v1.16.4 (bad practice for a library IMHO), whilemxnet
requiresnumpy
before v1.15.0.It seems to be working correctly under Python 3.7, though
numpy
still is fixed at v1.16.4, butmxnet
is upgraded (yet fixed) to v1.5.0, which requiresnumpy
>v1.16.0.It would be great if dependencies resolve properly on all supported Python versions. Also, it'd be much more robust if they are specified with a supported range, not a fixed version, else Turicreate will become quickly unusable alongside other libraries.
The text was updated successfully, but these errors were encountered: