Hello,
I am new to Julia. I have been working on a project stored in a git repo on my local machine. I have now cloned the repo on an HPC to scale up my analysis. My Julia environment and packages all.
When I am in the repo on the HPC my julia project.
I open the julia REPL and try to activate the environment following from these instructions
(v1.2) pkg> activate .
I get the following error:
ERROR: MethodError: no method matching get(::Pair{String,Any}, ::String, ::Nothing)
Closest candidates are:
get(::Base.EnvDict, ::AbstractString, ::Any) at env.jl:80
get(::REPL.Terminals.TTYTerminal, ::Any, ::Any) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/REPL/src/Terminals.jl:176
get(::IdDict{K,V}, ::Any, ::Any) where {K, V} at abstractdict.jl:594
...
Stacktrace:
[1] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/manifest.jl:122
[2] #read_manifest#51(::String, ::typeof(Pkg.Types.read_manifest), ::IOStream) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/manifest.jl:151
[3] #read_manifest at ./none:0 [inlined]
[4] #54 at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/manifest.jl:155 [inlined]
[5] #open#312(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::getfield(Pkg.Types, Symbol("##54#55")){String}, ::String) at ./iostream.jl:375
[6] open at ./iostream.jl:373 [inlined]
[7] read_manifest at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/manifest.jl:154 [inlined]
[8] Pkg.Types.EnvCache(::Nothing) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:335
[9] Type at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:314 [inlined]
[10] Pkg.Types.Context() at ./util.jl:723
[11] #activate#89(::Bool, ::typeof(Pkg.API.activate), ::String) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:576
[12] activate at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/API.jl:542 [inlined]
[13] do_activate!(::Array{String,1}, ::Dict{Symbol,Any}) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/REPLMode.jl:445
[14] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Base.invokelatest), ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:790
[15] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:789
[16] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/REPLMode.jl:405
[17] #do_cmd#23(::Bool, ::typeof(Pkg.REPLMode.do_cmd), ::REPL.LineEditREPL, ::String) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/REPLMode.jl:382
[18] do_cmd at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/REPLMode.jl:378 [inlined]
[19] (::getfield(Pkg.REPLMode, Symbol("##28#31")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/Pkg/src/REPLMode.jl:610
[20] #invokelatest#1 at ./essentials.jl:790 [inlined]
[21] invokelatest at ./essentials.jl:789 [inlined]
[22] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/REPL/src/LineEdit.jl:2306
[23] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:1038
[24] run_repl(::REPL.AbstractREPL, ::Any) at /gpfs1/home/j/t/jtl/src/julia-1.2.0/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:201
[25] (::getfield(Base, Symbol("##737#739")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:390
[26] #invokelatest#1 at ./essentials.jl:790 [inlined]
[27] invokelatest at ./essentials.jl:789 [inlined]
[28] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:374
[29] exec_options(::Base.JLOptions) at ./client.jl:312
[30] _start() at ./client.jl:464
I can create new environments on the HPC just fine, I can activate them and install packages.
I have tried deleting my git repo and cloning it again to the same effect.
Does anyone know why this is happening?
Any insight would be greatly appreciated.