Circuitscape / Circuitscape.jl

Algorithms from circuit theory to predict connectivity in heterogeneous landscapes
https://circuitscape.org
MIT License
128 stars 35 forks source link

Installing `master` branch of Circuitscape fails #254

Closed mattwilliamson13 closed 4 years ago

mattwilliamson13 commented 4 years ago

I'm trying to re-install the development branch of Circuitscape (because I'm having this issue again). julia> Pkg.add(PackageSpec(name="Circuitscape", rev = "master")) Updating git-repohttps://github.com/Circuitscape/Circuitscape.jl.git` Resolving package versions... ┌ Warning: julia version requirement for package Circuitscape not satisfied └ @ Pkg.Operations /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Operations.jl:225 ERROR: Unsatisfiable requirements detected for package GDAL [add2ef01]: GDAL [add2ef01] log: ├─possible versions are: [0.1.0-0.1.2, 0.2.0, 1.0.0-1.0.2, 1.1.0-1.1.3] or uninstalled ├─restricted to versions 1.0.1 by an explicit requirement, leaving only versions 1.0.1 └─restricted by compatibility requirements with ArchGDAL [c9ce4bd3] to versions: 1.1.1-1.1.3 — no versions left └─ArchGDAL [c9ce4bd3] log: ├─possible versions are: [0.1.0, 0.2.0-0.2.2, 0.3.0-0.3.3, 0.4.0-0.4.1] or uninstalled └─restricted to versions 0.4.0-0.4 by Circuitscape [2b7a1792], leaving only versions 0.4.0-0.4.1 └─Circuitscape [2b7a1792] log: ├─possible versions are: 5.6.0 or uninstalled └─Circuitscape [2b7a1792] is fixed to version 5.6.0 Stacktrace: [1] #propagate_constraints!#61(::Bool, ::typeof(Pkg.GraphType.propagate_constraints!), ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/GraphType.jl:1007 [2] propagate_constraints! at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/GraphType.jl:948 [inlined] [3] #simplify_graph!#121(::Bool, ::typeof(Pkg.GraphType.simplify_graph!), ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/GraphType.jl:1462 [4] simplify_graph! at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/GraphType.jl:1462 [inlined] (repeats 2 times) [5] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Operations.jl:317 [6] #add#100(::Bool, ::typeof(Pkg.Operations.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/Operations.jl:962 [7] #add at ./none:0 [inlined] [8] #add#25(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:99 [9] add at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:69 [inlined] [10] #add#24 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:67 [inlined] [11] add at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:67 [inlined] [12] #add#20 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:64 [inlined] [13] add(::Pkg.Types.PackageSpec) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:64

Trying to update ArchGDAL yields roughly the same error (suggesting that existing gdal library isn't acceptable). I recently updated all of my R geospatial libraries and so am wondering if I've moved "too far" forward. Or is this error telling me something else is wrong?

mattwilliamson13 commented 4 years ago

Updating to Julia 1.4 seems to solve this error.

vlandau commented 4 years ago

Ah, yep, Circuitscape requires Julia 1.4 or higher at this time. Glad it was sorted!