Stream: helpdesk (published)

Topic: ✔ Pkg key error


view this post on Zulip Timothy (Jul 01 2022 at 07:22):

Hi, I'm trying to use Julia on a supercomputer that makes Julia available via the module system, and I think I've set JULIA_DEPOT_PATH appropriately (/data/agpdev/timothy/.julia:/data/agpdev/sw/julia/1.7.3/usr/local/share/julia:/data/agpdev/sw/julia/1.7.3/usr/share/julia) however I don't seem to be able to Pkg.add anything, consistently seeing a UUID key error.

(@v1.7) pkg> add ClusterManagers
    Updating registry at `/data/agpdev/timothy/.julia/registries/General.toml`
   Resolving package versions...
ERROR: KeyError: key UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f") not found
Stacktrace:
  [1] getindex
    @ ./dict.jl:481 [inlined]
  [2] deps_graph(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, uuid_to_name::Dict{Base.UUID, String}, reqs::Dict{Base.UUID, Pkg.Versions.VersionSpec}, fixed::Dict{Base.UUID, Pkg.Resolve.Fixed}, julia_version::VersionNumber)
    @ Pkg.Operations /data/tki_agpdev/sw/julia/1.7.3/usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:408
  [3] resolve_versions!
...

Might anyone have ideas/suggestions?

view this post on Zulip Sukera (Jul 01 2022 at 07:30):

can you try ]registry rm General followed by ]registry add General?

view this post on Zulip Sukera (Jul 01 2022 at 07:30):

what have you set JULIA_DEPOT_PATH to?

view this post on Zulip Timothy (Jul 01 2022 at 07:32):

Removing/re-adding General didn't help, and I have JULIA_DEPOT_PATH set to /data/agpdev/timothy/.julia:/data/agpdev/sw/julia/1.7.3/usr/local/share/julia:/data/agpdev/sw/julia/1.7.3/usr/share/julia (as per my original post).

view this post on Zulip Sukera (Jul 01 2022 at 07:36):

the error is definitely odd, since that's the UUID of Pkg

view this post on Zulip Sukera (Jul 01 2022 at 07:36):

to me that suggests your module provided julia install is broken

view this post on Zulip Timothy (Jul 01 2022 at 07:40):

Hmm, this is also interesting:

julia> using Pkg
ERROR: ArgumentError: Package Pkg not found in current path:
- Run `import Pkg; Pkg.add("Pkg")` to install the Pkg package.

view this post on Zulip Timothy (Jul 01 2022 at 07:40):

For reference, using LinearAlgebra is fine.

view this post on Zulip Sukera (Jul 01 2022 at 07:41):

:thinking:

view this post on Zulip Sukera (Jul 01 2022 at 07:42):

yeah that definitely sounds like a broken install

view this post on Zulip Timothy (Jul 01 2022 at 07:42):

I've just had a look at the stdlib folder, and I'm seeing a few broken symlinks...

view this post on Zulip Sukera (Jul 01 2022 at 07:43):

might want to talk to the admins of that supercomputer about it, if that's intended or just broken

view this post on Zulip Timothy (Jul 01 2022 at 07:45):

Yea, I'm now sending them a message. I'm guessing this could explain the error(s) I'm seeing.

view this post on Zulip Timothy (Jul 01 2022 at 09:15):

They've just rebuild it, and it works now :)

view this post on Zulip Notification Bot (Jul 01 2022 at 09:15):

Timothy has marked this topic as resolved.


Last updated: Dec 28 2024 at 04:38 UTC