KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

Error building `PGFPlotsX` #268

Closed ll7 closed 3 years ago

ll7 commented 3 years ago

I have problems using PGFPlotsX with Julia 1.6.1 on Ubuntu 20.04 and I don't have a clue how to fix this:

using:

julia> using PGFPlotsX
[ Info: Precompiling PGFPlotsX [8314cec4-20b6-5062-9cdb-752b83310925]
ERROR: LoadError: please run Pkg.build("PGFPlotsX") before loading the package
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] top-level scope
   @ ~/.julia/packages/PGFPlotsX/V7bWm/src/PGFPlotsX.jl:32
 [3] include
   @ ./Base.jl:386 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1213
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:360 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:446
 [8] top-level scope
   @ none:1
in expression starting at /home/luttkule/.julia/packages/PGFPlotsX/V7bWm/src/PGFPlotsX.jl:3
ERROR: Failed to precompile PGFPlotsX [8314cec4-20b6-5062-9cdb-752b83310925] to /home/luttkule/.julia/compiled/v1.6/PGFPlotsX/jl_V9Ndgm.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1306
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1021
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:914
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:901

build:

julia> import Pkg; Pkg.build("PGFPlotsX")
    Building PGFPlotsX → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/e8961c48743b383f01ba13187b9cfcfc080fc004/build.log`
ERROR: Error building `PGFPlotsX`: 
ERROR: LoadError: UndefVarError: info not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/PGFPlotsX/V7bWm/deps/build.jl:5
 [2] include(fname::String)
   @ Base.MainInclude ./client.jl:444
 [3] top-level scope
   @ none:5
in expression starting at /home/luttkule/.julia/packages/PGFPlotsX/V7bWm/deps/build.jl:4
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
  [2] (::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec})()
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1044
  [3] withenv(::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, ::Pair{String, String}, ::Vararg{Pair{String, B} where B, N} where N)
    @ Base ./env.jl:161
  [4] (::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec})()
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1542
  [5] with_temp_env(fn::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec}, temp_env::String)
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1444
  [6] (::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1517
  [7] mktempdir(fn::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:729
  [8] mktempdir(fn::Function, parent::String) (repeats 2 times)
    @ Base.Filesystem ./file.jl:727
  [9] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project)
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1483
 [10] build_versions(ctx::Pkg.Types.Context, uuids::Vector{Base.UUID}; verbose::Bool)
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1025
 [11] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, verbose::Bool)
    @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:906
 [12] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; verbose::Bool, kwargs::Base.Iterators.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:899
 [13] build(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:79
 [14] build(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:77
 [15] #build#71
    @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75 [inlined]
 [16] build
    @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75 [inlined]
 [17] #build#70
    @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:74 [inlined]
 [18] build(pkg::String)
    @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:74
 [19] top-level scope
    @ REPL[15]:1
KristofferC commented 3 years ago

What PGFPlotsX version are you on? Seems to be an old one.

ll7 commented 3 years ago

What PGFPlotsX version are you on? Seems to be an old one.

[8314cec4] PGFPlotsX v0.2.2

KristofferC commented 3 years ago

Yeah, that's an ancient one. Try upgrade, like pkg> add PGFPlotsX@1

ll7 commented 3 years ago

Thanks:

(scpsLL) pkg> add PGFPlotsX@1
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CUDA [052768ef]:
 CUDA [052768ef] log:
 ├─possible versions are: 0.1.0-3.2.1 or uninstalled
 ├─restricted by julia compatibility requirements to versions: [2.3.0, 2.5.0-3.2.1] or uninstalled
 └─restricted by compatibility requirements with ReinforcementLearningCore [de1b191a] to versions: 1.0.0-1.3.3 — no versions left
   └─ReinforcementLearningCore [de1b191a] log:
     ├─possible versions are: 0.1.0-0.8.0 or uninstalled
     ├─restricted by compatibility requirements with Distributions [31c24e10] to versions: 0.2.5-0.4.6 or uninstalled
     │ └─Distributions [31c24e10] log:
     │   ├─possible versions are: 0.16.0-0.25.1 or uninstalled
     │   ├─restricted to versions * by AdversarialDriving [0f7eb3e9], leaving only versions 0.16.0-0.25.1
     │   │ └─AdversarialDriving [0f7eb3e9] log:
     │   │   ├─possible versions are: 0.1.0 or uninstalled
     │   │   └─AdversarialDriving [0f7eb3e9] is fixed to version 0.1.0
     │   ├─restricted by compatibility requirements with POMDPModelTools [08074719] to versions: 0.17.0-0.25.1
     │   │ └─POMDPModelTools [08074719] log:
     │   │   ├─possible versions are: 0.1.0-0.3.7 or uninstalled
     │   │   ├─restricted to versions * by AdversarialDriving [0f7eb3e9], leaving only versions 0.1.0-0.3.7
     │   │   │ └─AdversarialDriving [0f7eb3e9] log: see above
     │   │   ├─restricted to versions 0.2-0.3 by RLInterface [3065fe53], leaving only versions 0.2.0-0.3.7
     │   │   │ └─RLInterface [3065fe53] log:
     │   │   │   ├─possible versions are: 0.3.7 or uninstalled
     │   │   │   ├─restricted to versions * by scpsLL [65d53137], leaving only versions 0.3.7
     │   │   │   │ └─scpsLL [65d53137] log:
     │   │   │   │   ├─possible versions are: 0.1.0 or uninstalled
     │   │   │   │   └─scpsLL [65d53137] is fixed to version 0.1.0
     │   │   │   └─RLInterface [3065fe53] is fixed to version 0.3.7
     │   │   └─restricted by compatibility requirements with MCTS [e12ccd36] to versions: 0.3.0-0.3.7
     │   │     └─MCTS [e12ccd36] log:
     │   │       ├─possible versions are: 0.4.4-0.4.7 or uninstalled
     │   │       └─restricted to versions 0.4.6-0.4 by POMDPStressTesting [6fc570d8], leaving only versions 0.4.6-0.4.7
     │   │         └─POMDPStressTesting [6fc570d8] log:
     │   │           ├─possible versions are: 0.5.0 or uninstalled
     │   │           ├─restricted to versions * by scpsLL [65d53137], leaving only versions 0.5.0
     │   │           │ └─scpsLL [65d53137] log: see above
     │   │           └─POMDPStressTesting [6fc570d8] is fixed to version 0.5.0
     │   └─restricted by compatibility requirements with AutomotiveSimulator [6aa42d20] to versions: 0.23.0-0.23.12
     │     └─AutomotiveSimulator [6aa42d20] log:
     │       ├─possible versions are: 0.1.0-0.1.1 or uninstalled
     │       └─restricted to versions * by AdversarialDriving [0f7eb3e9], leaving only versions 0.1.0-0.1.1
     │         └─AdversarialDriving [0f7eb3e9] log: see above
     ├─restricted by compatibility requirements with ReinforcementLearning [158674fc] to versions: [0.2.0-0.5.1, 0.7.0-0.8.0], leaving only versions: 0.2.5-0.4.6
     │ └─ReinforcementLearning [158674fc] log:
     │   ├─possible versions are: 0.2.0-0.9.0 or uninstalled
     │   ├─restricted to versions * by scpsLL [65d53137], leaving only versions 0.2.0-0.9.0
     │   │ └─scpsLL [65d53137] log: see above
     │   ├─restricted by compatibility requirements with PGFPlotsX [8314cec4] to versions: 0.4.0-0.9.0 or uninstalled, leaving only versions: 0.4.0-0.9.0
     │   │ └─PGFPlotsX [8314cec4] log:
     │   │   ├─possible versions are: 0.2.2-1.2.10 or uninstalled
     │   │   ├─restricted to versions * by scpsLL [65d53137], leaving only versions 0.2.2-1.2.10
     │   │   │ └─scpsLL [65d53137] log: see above
     │   │   └─restricted to versions 1 by an explicit requirement, leaving only versions 1.0.0-1.2.10
     │   └─restricted by compatibility requirements with ReinforcementLearningCore [de1b191a] to versions: [0.2.0-0.3.0, 0.6.0] or uninstalled, leaving only versions: 0.6.0
     │     └─ReinforcementLearningCore [de1b191a] log: see above
     └─restricted by compatibility requirements with CuArrays [3a865a2d] to versions: [0.2.0, 0.4.0-0.8.0] or uninstalled, leaving only versions: 0.4.0-0.4.6
       └─CuArrays [3a865a2d] log:
         ├─possible versions are: 0.2.1-2.2.2 or uninstalled
         └─restricted by julia compatibility requirements to versions: uninstalled

(scpsLL) pkg> 

I will create a new environment and try again.

ll7 commented 3 years ago

A new environment helped to overcome my dependencies issues.