Pkg.develop(url="https://github.com/ablaom/MLJTutorial.jl") failing with Julia 1.11.5
I am new to Julia, which implies that I am stymied by what follows. Any suggestions on how to fix this would be welcome.
julia> using Pkg
julia> Pkg.develop(url="https://github.com/ablaom/MLJTutorial.jl")
Cloning git-repo https://github.com/ablaom/MLJTutorial.jl
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Pluto [c3e4b0f8]:
Pluto [c3e4b0f8] log:
├─possible versions are: 0.2.0 - 0.20.13 or uninstalled
├─restricted to versions 0.17 by MLJTutorial [1abb19d6], leaving only versions: 0.17.0 - 0.17.7
│ └─MLJTutorial [1abb19d6] log:
│ ├─possible versions are: 0.1.0 or uninstalled
│ └─MLJTutorial [1abb19d6] is fixed to version 0.1.0
└─restricted by julia compatibility requirements to versions: [0.2.0 - 0.14.9, 0.20.6 - 0.20.13] or uninstalled — no versions left
Stacktrace:
[1] propagate_constraints!(graph::Pkg.Resolve.Graph, sources::Set{Int64}; log_events::Bool)
@ Pkg.Resolve /usr/share/julia/stdlib/v1.11/Pkg/src/Resolve/graphtype.jl:1072
[2] propagate_constraints! (repeats 2 times)
@ /usr/share/julia/stdlib/v1.11/Pkg/src/Resolve/graphtype.jl:1008 [inlined]
[3] simplify_graph!(graph::Pkg.Resolve.Graph, sources::Set{Int64}; clean_graph::Bool)
@ Pkg.Resolve /usr/share/julia/stdlib/v1.11/Pkg/src/Resolve/graphtype.jl:1533
[4] simplify_graph! (repeats 2 times)
@ /usr/share/julia/stdlib/v1.11/Pkg/src/Resolve/graphtype.jl:1532 [inlined]
[5] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, julia_version::VersionNumber, installed_only::Bool)
@ Pkg.Operations /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:434
[6] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1402
[7] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, julia_version::VersionNumber, try_all_installed::Bool)
@ Pkg.Operations /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1391
[8] _resolve(io::IOContext{…}, env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1412
[9] develop(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1493
[10] develop
@ /usr/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1484 [inlined]
[11] develop(ctx::Pkg.Types.Context, pkgs::Vector{…}; shared::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{…})
@ Pkg.API /usr/share/julia/stdlib/v1.11/Pkg/src/API.jl:258
[12] develop(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{})
@ Pkg.API /usr/share/julia/stdlib/v1.11/Pkg/src/API.jl:159
[13] develop(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /usr/share/julia/stdlib/v1.11/Pkg/src/API.jl:148
[14] develop
@ /usr/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined]
[15] develop(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@Kwargs{})
@ Pkg.API /usr/share/julia/stdlib/v1.11/Pkg/src/API.jl:176
[16] top-level scope
@ REPL[3]:1
Some type information was truncated. Use show(err) to see complete types.
Thanks for reporting.
Looks like a package management issue. Some packages in your existing environment are in conflict with the package compatibility requirements of MLJTutorials.jl. This is not fatal, because ultimately you activate an environment which has only the packages you need (in the 3rd last line of here). To remedy the situation, first create a temporary environment:
using Pkg
Pkg.activate(temp=true)
Then apply the instructions as normal.
That said, I couldn't get these (old) tutorials to run under the latest version of Julia. They do work if you switch to Julia 1.6. I may update these tutorials at some point, but in the meantime you might want to try one of the other resources listed here.