Any attempt to use Pkg turns into failure

ERROR: Plots=91a5bcdd-55d7-5caf-9e0b-520d859cae80 depends on Pkg=44cfe95a-1eb2-52ea-b672-e2afdf69b78f, but entry with UUID 44cfe95a-1eb2-52ea-b672-e2afdf69b78f has name Pkg-93b6d6de857dc88e665d2c64397852ab9701ba24.
Stacktrace:
[1] pkgerror(::String, ::Vararg{String,N} where N) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53
[2] validate_manifest(::Dict{String,Array{Pkg.Types.Stage1,1}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:120
[3] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:154
[4] read_manifest(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:177
[5] Pkg.Types.EnvCache(::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:302
[6] EnvCache at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:281 [inlined]
[7] Pkg.Types.Context() at ./util.jl:742
[8] activate(::String; shared::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:907
[9] activate(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:873
[10] top-level scope at REPL[8]:1

I am a newbie with python/scala/haskell background. the traceback is hardly interpretable. Attempts to remove Plots also raises this issue. Any idea?

Could you give us some more information please?
This looks like you are building on a worker node in some CI pipeline? Are you building a container?

Do you know how Julia 1.4 is installed?
I maybe will guess - this is Ububtu OS And you are installing Julia via apt-get?

Please send the output of
using Pkg
Pkg.status()

Sorry to ask all the questions. And people on here do agree about the stack traces!

1 Like

It looks like you may have manually edited your manifest and put it into an inconsistent state.

1 Like

Jupyter gives the following:

Status ~/.julia/environments/v1.4/Project.toml
[336ed68f] CSV v0.7.3
[a93c6f00] DataFrames v0.21.4
[587475ba] Flux v0.11.0
[7073ff75] IJulia v1.21.2
[1902f260] Knet v1.2.3
[438e738f] PyCall v1.91.4
[d330b81b] PyPlot v2.9.0
[0aa819cd] SQLite v1.0.3
[3646fa90] ScikitLearn v0.6.2

from REPL i get

Pkg.status()
ERROR: Plots=91a5bcdd-55d7-5caf-9e0b-520d859cae80 depends on Pkg=44cfe95a-1eb2-52ea-b672-e2afdf69b78f, but entry with UUID 44cfe95a-1eb2-52ea-b672-e2afdf69b78f has name Pkg-93b6d6de857dc88e665d2c64397852ab9701ba24.
Stacktrace:
[1] pkgerror(::String, ::Vararg{String,N} where N) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:53
[2] validate_manifest(::Dict{String,Array{Pkg.Types.Stage1,1}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:120
[3] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:154
[4] read_manifest(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/manifest.jl:177
[5] Pkg.Types.EnvCache(::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:302
[6] EnvCache at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:281 [inlined]
[7] Pkg.Types.Context() at ./util.jl:742
[8] #status#123 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:832 [inlined]
[9] status at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:832 [inlined]
[10] #status#120 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:828 [inlined]
[11] status() at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:828
[12] top-level scope at REPL[14]:1

Pkg.status() works only from JuPyTer. Yep, it is Ububnu. Nope, it was not installed through apt-get. I stuck to the recommendations.

As for editing the manifest, surely not. I am not so experienced with JL as to edit something manually