-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
note: perhaps two different versions of crate ndarray
are being used?
#188
Comments
Try |
Anyway I have to release 0.14... |
Hi, I also ran into this same problem when trying to compile some old code (couple of months old). For me the problem is that conflicting versions of As it stands, I think fixing the version of |
While I agree that re-exporting ndarray = ">= 0.13, < 0.16" meaning that only versions If I understand things correctly, this is deliberately looser than the default
I think this would go against the intention of the deliberately more loose version specification, i.e. allowing different versions of |
I understand that this might have been the intention in theory, but in practice this does not seem to work for (I may be doing something wrong though, still quite new to rust and cargo). I specify in my [dependencies]
ndarray = "0.14.0" # ">=0.14.0, <0.15.0"
numpy = "0.13.0" # ">=0.13.0, <0.14.0" which resolves to It seems to me that while my requested version of |
The Dependency Resolution page says
This sounds a bit ambiguous but to me it seems like this does not mean that it looks for just any SemVer compatible subrange. Apparently it means the different ranges have to be entirely SemVer compatible for it to try to find a common version of the dependency. So in the case of the ndarray EDIT: So this would mean, if you specify a range of SemVer breaking versions, the only way to unify them would be to specify the same identical range (or at least one that doesn't include more or fewer SemVer breaking versions). Maybe I'm wrong but I'm not sure how to explain the behavior observed by @digitalillusions otherwise. |
Indeed, specifying [dependencies]
numpy = "0.14"
ndarray = ">= 0.13, < 0.16" does resolve to a single version for
I agree, that this makes the version specification Looking at |
I'm learning to use rust to write WHL files for Python. When I first started running the official sample code, I encountered an error.
Cargo.toml
lib.rs
The contents of the error report are as follows:
The text was updated successfully, but these errors were encountered: