Skip to content
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

Unsatisfiable requirements when trying to install OMETIFF due to Images. #804

Closed
kellertuer opened this issue May 6, 2019 · 5 comments
Closed

Comments

@kellertuer
Copy link

When I try to ] add OMETIFF (because I need that for another project, namely TestImages.jl, I get

ERROR: Unsatisfiable requirements detected for package OMETIFF [2d0ec36b]:
 OMETIFF [2d0ec36b] log:
 ├─possible versions are: [0.0.1, 0.1.0-0.1.2, 0.2.0-0.2.1] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.0.1, 0.1.0-0.1.2, 0.2.0-0.2.1]
 ├─restricted by compatibility requirements with Images [916415d5] to versions: [0.0.1, 0.1.0-0.1.1] or uninstalled, leaving only versions: [0.0.1, 0.1.0-0.1.1]
 │ └─Images [916415d5] log:
 │   ├─possible versions are: [0.2.0-0.2.50, 0.3.0-0.3.3, 0.4.0-0.4.50, 0.5.0-0.5.14, 0.6.0-0.6.1, 0.7.0, 0.8.0, 0.9.0-0.9.1, 0.10.0-0.10.1, 0.11.0-0.11.5, 0.12.0, 0.13.0, 0.14.0, 0.15.0-0.15.1, 0.16.0-0.16.1, 0.17.0-0.17.3, 0.18.0] or uninstalled
 │   └─restricted to versions 0.18.0 by an explicit requirement, leaving only versions 0.18.0
 └─restricted by julia compatibility requirements to versions: 0.2.0-0.2.1 or uninstalled — no versions left

If I read that correctly, julia (running version 1.1 on Mac OS here) requires that OMETIFF to be at least at version 0.2.0, while Images requires that OMETIFF is less than 0.1.1 (fifth line). I could not find OMETIFF.jl in your project.toml so I am not completely sure where this requirement comes from, but can someone check, whether Images is ok with a newer version of OMETIFF.jl to solve this error? Or is it OMETIFF that is wrong here?

@timholy
Copy link
Member

timholy commented May 6, 2019

My guess this is another one of those cases where automatically-imposed upper bounds are getting in the way (JuliaRegistries/Registrator.jl#122). Check Images' and OMETIFF's Project.toml to see if there are any "real" version restrictions. Then check ~/.julia/registries/General and see about editing the Compat.toml files to fix the bounds. If that's what's needed, then please bundle those changes up as a PR to https:/JuliaRegistries/General.

@kellertuer
Copy link
Author

kellertuer commented May 6, 2019

I already tried that, but OMETIFF does not yet have a Project.toml and the REQUIRE looks okay. In Images there is no direct restriction, so it might come from one of the packages it depends on, but how can I find that out?
Edit: I did find it out. the .julia/registries/General/O/OMETIFF/Compat.toml

had the lines

["0.1.2-0"]
ImageMetadata = "0-0.6"
Images = "0-0.17"
JSON = "0"

when I changed that to

["0.1.2-0"]
ImageMetadata = "0-0.7"
Images = "0-0.18"
JSON = "0"

(since those are the versions I have installed), I was able to install OMETIFF.

I still don't understand what that does, so I also don't know how and where to report that (also see above, the OMETIFF does not yet have a Project.toml.

@timholy
Copy link
Member

timholy commented May 6, 2019

You did the right thing. Just submit that change to JuliaRegistries. Thanks!

@kellertuer
Copy link
Author

Cool.After working with Julia for a while I am slowly getting into fixing things I notice, that's fun :)

@tlnagy
Copy link
Contributor

tlnagy commented Jun 16, 2019

Hey (I'm the author of OMETIFF.jl 👋) thanks for taking care of this! I've just updated it to use the new the Project.toml setup: tlnagy/OMETIFF.jl#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants