We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can use QuantumOptics from the REPL just fine, but when I try to load it in Jupyter Lab, I get the following error:
[ Info: Precompiling QuantumOptics [6e0679c1-51ea-5a7c-ac74-d61b76210b0c] ERROR: LoadError: UndefVarError: `has_trivial_array_constructor` not defined Stacktrace: [1] include @ ./Base.jl:495 [inlined] [2] 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, UInt128}}, source::String) @ Base ./loading.jl:2222 [3] top-level scope @ stdin:3 in expression starting at /home/swan/.julia/packages/SciMLStructures/wL1ke/src/SciMLStructures.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile SciMLStructures [53ae85a6-f571-4167-b2af-e1d143709226] to "/home/swan/.julia/compiled/v1.10/SciMLStructures/jl_gyay4C". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2468 [3] compilecache @ ./loading.jl:2340 [inlined] [4] (::Base.var"#968#969"{Base.PkgId})() @ Base ./loading.jl:1974 [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93 [6] #mkpidlock#6 @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined] [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111 [8] #invokelatest#2 @ ./essentials.jl:894 [inlined] [9] invokelatest @ ./essentials.jl:889 [inlined] [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64) @ Base ./loading.jl:2983 [11] maybe_cachefile_lock @ ./loading.jl:2980 [inlined] [12] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1970 [13] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1812 [14] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [15] invoke_in_world @ ./essentials.jl:923 [inlined] [16] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1803 [17] macro expansion @ ./loading.jl:1790 [inlined] [18] macro expansion @ ./lock.jl:267 [inlined] [19] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [20] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [21] invoke_in_world @ ./essentials.jl:923 [inlined] [22] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746 [23] include @ ./Base.jl:495 [inlined] [24] 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, UInt128}}, source::String) @ Base ./loading.jl:2222 [25] top-level scope @ stdin:3 in expression starting at /home/swan/.julia/packages/SciMLBase/nftrI/src/SciMLBase.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] to "/home/swan/.julia/compiled/v1.10/SciMLBase/jl_P7NN8i". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2468 [3] compilecache @ ./loading.jl:2340 [inlined] [4] (::Base.var"#968#969"{Base.PkgId})() @ Base ./loading.jl:1974 [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93 [6] #mkpidlock#6 @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined] [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111 [8] #invokelatest#2 @ ./essentials.jl:894 [inlined] [9] invokelatest @ ./essentials.jl:889 [inlined] [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64) @ Base ./loading.jl:2983 [11] maybe_cachefile_lock @ ./loading.jl:2980 [inlined] [12] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1970 [13] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1812 [14] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [15] invoke_in_world @ ./essentials.jl:923 [inlined] [16] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1803 [17] macro expansion @ ./loading.jl:1790 [inlined] [18] macro expansion @ ./lock.jl:267 [inlined] [19] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [20] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [21] invoke_in_world @ ./essentials.jl:923 [inlined] [22] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746 [23] include @ ./Base.jl:495 [inlined] [24] 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, UInt128}}, source::String) @ Base ./loading.jl:2222 [25] top-level scope @ stdin:3 in expression starting at /home/swan/.julia/packages/DiffEqBase/sCsah/src/DiffEqBase.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] to "/home/swan/.julia/compiled/v1.10/DiffEqBase/jl_mh8NAY". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2468 [3] compilecache @ ./loading.jl:2340 [inlined] [4] (::Base.var"#968#969"{Base.PkgId})() @ Base ./loading.jl:1974 [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93 [6] #mkpidlock#6 @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined] [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111 [8] #invokelatest#2 @ ./essentials.jl:894 [inlined] [9] invokelatest @ ./essentials.jl:889 [inlined] [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64) @ Base ./loading.jl:2983 [11] maybe_cachefile_lock @ ./loading.jl:2980 [inlined] [12] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1970 [13] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1812 [14] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [15] invoke_in_world @ ./essentials.jl:923 [inlined] [16] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1803 [17] macro expansion @ ./loading.jl:1790 [inlined] [18] macro expansion @ ./lock.jl:267 [inlined] [19] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [20] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [21] invoke_in_world @ ./essentials.jl:923 [inlined] [22] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746 [23] include @ ./Base.jl:495 [inlined] [24] 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, UInt128}}, source::String) @ Base ./loading.jl:2222 [25] top-level scope @ stdin:3 in expression starting at /home/swan/.julia/packages/OrdinaryDiffEq/s27pa/src/OrdinaryDiffEq.jl:1 in expression starting at stdin:3 ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to "/home/swan/.julia/compiled/v1.10/OrdinaryDiffEq/jl_zvKPK4". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2468 [3] compilecache @ ./loading.jl:2340 [inlined] [4] (::Base.var"#968#969"{Base.PkgId})() @ Base ./loading.jl:1974 [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93 [6] #mkpidlock#6 @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined] [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111 [8] #invokelatest#2 @ ./essentials.jl:894 [inlined] [9] invokelatest @ ./essentials.jl:889 [inlined] [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64) @ Base ./loading.jl:2983 [11] maybe_cachefile_lock @ ./loading.jl:2980 [inlined] [12] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1970 [13] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1812 [14] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [15] invoke_in_world @ ./essentials.jl:923 [inlined] [16] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1803 [17] macro expansion @ ./loading.jl:1790 [inlined] [18] macro expansion @ ./lock.jl:267 [inlined] [19] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [20] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [21] invoke_in_world @ ./essentials.jl:923 [inlined] [22] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746 [23] include(mod::Module, _path::String) @ Base ./Base.jl:495 [24] include(x::String) @ QuantumOptics.timeevolution ~/.julia/packages/QuantumOptics/vT1Wm/src/QuantumOptics.jl:19 [25] top-level scope @ ~/.julia/packages/QuantumOptics/vT1Wm/src/QuantumOptics.jl:22 [26] include @ ./Base.jl:495 [inlined] [27] 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, UInt128}}, source::Nothing) @ Base ./loading.jl:2222 [28] top-level scope @ stdin:3 in expression starting at /home/swan/.julia/packages/QuantumOptics/vT1Wm/src/timeevolution_base.jl:4 in expression starting at /home/swan/.julia/packages/QuantumOptics/vT1Wm/src/QuantumOptics.jl:1 in expression starting at stdin:3 Failed to precompile QuantumOptics [6e0679c1-51ea-5a7c-ac74-d61b76210b0c] to "/home/swan/.julia/compiled/v1.10/QuantumOptics/jl_4gfcnO". Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool) @ Base ./loading.jl:2468 [3] compilecache @ ./loading.jl:2340 [inlined] [4] (::Base.var"#968#969"{Base.PkgId})() @ Base ./loading.jl:1974 [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93 [6] #mkpidlock#6 @ ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined] [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64}) @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.10.5+0.x64.linux.gnu/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111 [8] #invokelatest#2 @ ./essentials.jl:894 [inlined] [9] invokelatest @ ./essentials.jl:889 [inlined] [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64) @ Base ./loading.jl:2983 [11] maybe_cachefile_lock @ ./loading.jl:2980 [inlined] [12] _require(pkg::Base.PkgId, env::String) @ Base ./loading.jl:1970 [13] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1812 [14] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [15] invoke_in_world @ ./essentials.jl:923 [inlined] [16] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base ./loading.jl:1803 [17] macro expansion @ ./loading.jl:1790 [inlined] [18] macro expansion @ ./lock.jl:267 [inlined] [19] __require(into::Module, mod::Symbol) @ Base ./loading.jl:1753 [20] #invoke_in_world#3 @ ./essentials.jl:926 [inlined] [21] invoke_in_world @ ./essentials.jl:923 [inlined] [22] require(into::Module, mod::Symbol) @ Base ./loading.jl:1746
System specs:
julia> versioninfo() Julia Version 1.10.5 Commit 6f3fdf7b362 (2024-08-27 14:19 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) CPU: 12 × 12th Gen Intel(R) Core(TM) i5-12450H WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, alderlake) Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)
The text was updated successfully, but these errors were encountered:
This doesn't seem to be an issue with QuantumOptics but with the OrdinaryDiffEq dependency:
ERROR: LoadError: Failed to precompile SciMLStructures
The actual error is
ERROR: LoadError: UndefVarError: `has_trivial_array_constructor` not defined
Try updating your packages. If that doesn't work, please raise this issue with OrdinaryDiffEq.
Sorry, something went wrong.
No branches or pull requests
I can use QuantumOptics from the REPL just fine, but when I try to load it in Jupyter Lab, I get the following error:
System specs:
The text was updated successfully, but these errors were encountered: