-
Notifications
You must be signed in to change notification settings - Fork 125
[ITensors] [BUG] Failed to precompile: "KeyError: key "TypeParameterAccessors" not found" #1618
New issue
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
Comments
I don't have trouble installing or precompiling the package. What other packages do you have installed? |
I am trying to install in a fresh environment (empty project.toml). While installing I get the error: NDTensors has a malformed Project.toml, the extension package TypeParameterAccessors is not listed in [weakdeps]
Stacktrace:
[1] pkgerror(::String, ::Vararg{String})
@ Pkg.Types C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Types.jl:68
[2] status_ext_info(pkg::Pkg.Types.PackageSpec, env::Pkg.Types.EnvCache)
@ Pkg.Operations C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2302
[3] print_status(env::Pkg.Types.EnvCache, old_env::Pkg.Types.EnvCache, registries::Vector{…}, header::Symbol, uuids::Vector{…}, names::Vector{…}; manifest::Bool, diff::Bool, ignore_indent::Bool, outdated::Bool, extensions::Bool, io::IOContext{…}, mode::Pkg.Types.PackageMode, hidden_upgrades_info::Bool, show_usagetips::Bool)
@ Pkg.Operations C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2394
[4] print_status
@ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2332 [inlined]
[5] status(env::Pkg.Types.EnvCache, registries::Vector{…}, pkgs::Vector{…}; header::Symbol, mode::Pkg.Types.PackageMode, git_diff::Bool, env_diff::Pkg.Types.EnvCache, ignore_indent::Bool, io::IOContext{…}, outdated::Bool, extensions::Bool, hidden_upgrades_info::Bool, show_usagetips::Bool)
@ Pkg.Operations C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2567
[6] status (repeats 2 times)
@ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2535 [inlined]
[7] #show_update#170
@ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:2531 [inlined]
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
@ Pkg.Operations C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1452
[9] add
@ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Operations.jl:1400 [inlined]
[10] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{…})
@ Pkg.API C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:306
[11] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{allow_autoprecomp::Bool})
@ Pkg.API C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:159
[12] add
@ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:147 [inlined]
[13] try_prompt_pkg_add(pkgs::Vector{Symbol})
@ REPLExt C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\REPLExt.jl:248
[14] #invokelatest#2
@ .\essentials.jl:1054 [inlined]
[15] invokelatest
@ .\essentials.jl:1051 [inlined]
[16] check_for_missing_packages_and_run_hooks(ast::Any)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:251
[17] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:222
[18] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:323
[19] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:308
[20] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:464
[21] run_repl(repl::REPL.AbstractREPL, consumer::Any)
@ REPL C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\REPL.jl:450
[22] (::Base.var"#1138#1140"{Bool, Symbol, Bool})(REPL::Module)
@ Base .\client.jl:446
[23] #invokelatest#2
@ .\essentials.jl:1054 [inlined]
[24] invokelatest
@ .\essentials.jl:1051 [inlined]
[25] run_main_repl(interactive::Bool, quiet::Bool, banner::Symbol, history_file::Bool, color_set::Bool)
@ Base .\client.jl:430
[26] repl_main
@ .\client.jl:567 [inlined]
[27] _start()
@ Base .\client.jl:541
Some type information was truncated. Use `show(err)` to see complete types. and then the above error in the main post when I try to precompile again. So it seems the problem is with NDTensors.jl? |
I see you are using Julia v1.11.0, can you try the latest release (Julia v1.11.3) instead? I think there were some issues with certain package extension setups in older Julia v1.11 releases. |
Thanks! Updating the julia version worked. |
This is getting fixed properly in #1623, so when you upgrade to NDTensors v0.4.4 you can use the latest version of ITensors.jl with any Julia v1.10 or v1.11 releases. |
The package fails to precompile giving the following error:
Version Info:
The text was updated successfully, but these errors were encountered: