SchusterLab / rbqoc

Robust Quantum Optimal Control with Trajectory Optimization
https://journals.aps.org/prapplied/abstract/10.1103/PhysRevApplied.17.014036
MIT License
21 stars 3 forks source link

Cannot precompile spin13.jl file after following the instruction #3

Closed vsandinh closed 3 years ago

vsandinh commented 3 years ago

After build HDF5, there are two errors. Hence, I cannot precompile spin13.jl julia> Pkg.build("HDF5") Building HDF5 \u2192 ~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/8a21f34a34491833bcda29a3ec2188b4ec6e558f/build.log \u250c Warning: Could not use exact versions of packages in manifest, re-resolving \u2514 @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1524 Progress [========================================>] 266/266 \u2717 FFTW \u2717 Plots 264 dependencies successfully precompiled in 76 seconds (2 already precompiled) 2 dependencies errored

julia> include("spin13.jl") Activating environment at ~/Documents/rbqoc/Project.toml [ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] Your GR installation is incomplete. Rerun build step for GR package. ERROR: LoadError: LoadError: InitError: Evaluation into the closed module GR breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating GR with eval during precompilation - don't do this. Stacktrace: [1] eval @ ./boot.jl:360 [inlined] [2] init() @ GR ~/.julia/packages/GR/9Vi4m/src/GR.jl:280 [3] _include_from_serialized(path::String, depmods::Vector{Any}) @ Base ./loading.jl:674 [4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String) @ Base ./loading.jl:760 [5] _require(pkg::Base.PkgId) @ Base ./loading.jl:998 [6] require(uuidkey::Base.PkgId) @ Base ./loading.jl:914 [7] require(into::Module, mod::Symbol) @ Base ./loading.jl:901 [8] include(mod::Module, _path::String) @ Base ./Base.jl:386 [9] include(x::String) @ Plots ~/.julia/packages/Plots/SjqWU/src/Plots.jl:1 [10] top-level scope @ ~/.julia/packages/Plots/SjqWU/src/Plots.jl:216 [11] include @ ./Base.jl:386 [inlined] [12] 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::String) @ Base ./loading.jl:1213 [13] top-level scope @ none:1 [14] eval @ ./boot.jl:360 [inlined] [15] eval(x::Expr) @ Base.MainInclude ./client.jl:446 [16] top-level scope @ none:1 during initialization of module GR in expression starting at /home/vsdinh/.julia/packages/Plots/SjqWU/src/backends/gr.jl:6 in expression starting at /home/vsdinh/.julia/packages/Plots/SjqWU/src/Plots.jl:1 ERROR: LoadError: LoadError: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/vsdinh/.julia/compiled/v1.6/Plots/jl_BuJTcB. 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 [7] include(fname::String) @ Base.MainInclude ./client.jl:444 [8] top-level scope @ ~/Documents/rbqoc/src/spin/spin.jl:6 [9] include(fname::String) @ Base.MainInclude ./client.jl:444 [10] top-level scope @ ~/Documents/rbqoc/src/spin/spin13.jl:6 [11] include(fname::String) @ Base.MainInclude ./client.jl:444 [12] top-level scope @ REPL[4]:1 in expression starting at /home/vsdinh/Documents/rbqoc/src/rbqoc.jl:14 in expression starting at /home/vsdinh/Documents/rbqoc/src/spin/spin.jl:6 in expression starting at /home/vsdinh/Documents/rbqoc/src/spin/spin13.jl:6

tpr0p commented 3 years ago

Looks like it's this line: Your GR installation is incomplete. Rerun build step for GR package. Try: juila> Pkg.build("GR")

tpr0p commented 3 years ago

I am closing the issue. Please reopen this issue if you believe it is unresolved. If you encounter different difficulties, please open another issue.