Skip to content

[ITensors] [BUG] Failed to precompile: "KeyError: key "TypeParameterAccessors" not found" #1618

Closed
@JaydevSR

Description

@JaydevSR

The package fails to precompile giving the following error:

pkg> precompile
Precompiling project...
  ✗ ITensors
  ✗ ITensors  ITensorsVectorInterfaceExt
  0 dependencies successfully precompiled in 7 seconds. 119 already precompiled.

ERROR: The following 2 direct dependencies failed to precompile:

ITensors

Failed to precompile ITensors [9136182c-28ba-11e9-034c-db9fb085ebd5] to "C:\\Users\\u0174972\\.julia\\compiled\\v1.11\\ITensors\\jl_E7E2.tmp".
ERROR: LoadError: KeyError: key "TypeParameterAccessors" not found
Stacktrace:
  [1] getindex
    @ .\dict.jl:477 [inlined]
  [2] _insert_extension_triggers(parent::Base.PkgId, extensions::Dict{String, Any}, weakdeps::Dict{String, Any})
    @ Base .\loading.jl:1471
  [3] insert_extension_triggers(env::String, pkg::Base.PkgId)
    @ Base .\loading.jl:1434
  [4] insert_extension_triggers
    @ .\loading.jl:1390 [inlined]
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2309
  [6] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2287
  [9] macro expansion
    @ .\loading.jl:2226 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2183
 [12] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2176
 [15] include(mod::Module, _path::String)
    @ Base .\Base.jl:557
 [16] include(x::String)
    @ ITensors C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:51
 [17] top-level scope
    @ C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:52
 [18] include
    @ .\Base.jl:557 [inlined]
 [19] 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:2806
 [20] top-level scope
    @ stdin:4
in expression starting at C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\usings.jl:14
in expression starting at C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:1
in expression starting at stdin:4
ITensorsVectorInterfaceExt

Failed to precompile ITensorsVectorInterfaceExt [2f1fcacd-197e-560a-aa0f-27cf761d5e85] to "C:\\Users\\u0174972\\.julia\\compiled\\v1.11\\ITensorsVectorInterfaceExt\\jl_F09F.tmp".
ERROR: LoadError: KeyError: key "TypeParameterAccessors" not found
Stacktrace:
  [1] getindex
    @ .\dict.jl:477 [inlined]
  [2] _insert_extension_triggers(parent::Base.PkgId, extensions::Dict{String, Any}, weakdeps::Dict{String, Any})
    @ Base .\loading.jl:1471
  [3] insert_extension_triggers(env::String, pkg::Base.PkgId)
    @ Base .\loading.jl:1434
  [4] insert_extension_triggers
    @ .\loading.jl:1390 [inlined]
  [5] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2309
  [6] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
  [7] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2287
  [9] macro expansion
    @ .\loading.jl:2226 [inlined]
 [10] macro expansion
    @ .\lock.jl:273 [inlined]
 [11] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2183
 [12] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
 [13] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2176
 [15] include(mod::Module, _path::String)
    @ Base .\Base.jl:557
 [16] include(x::String)
    @ ITensors C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:51
 [17] top-level scope
    @ C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:52
 [18] include
    @ .\Base.jl:557 [inlined]
 [19] 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:2806
 [20] top-level scope
    @ stdin:4
in expression starting at C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\usings.jl:14
in expression starting at C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\src\ITensors.jl:1
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile ITensors [9136182c-28ba-11e9-034c-db9fb085ebd5] to "C:\\Users\\u0174972\\.julia\\compiled\\v1.11\\ITensors\\jl_F12C.tmp".
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; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64})
    @ Base .\loading.jl:3089
  [3] (::Base.var"#1081#1082"{Base.PkgId})()
    @ Base .\loading.jl:2477
  [4] mkpidlock(f::Base.var"#1081#1082"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:95
  [5] #mkpidlock#6
    @ C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\u0174972\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\FileWatching\src\pidfile.jl:116
  [7] #invokelatest#2
    @ .\essentials.jl:1056 [inlined]
  [8] invokelatest
    @ .\essentials.jl:1051 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1081#1082"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3613
 [10] maybe_cachefile_lock
    @ .\loading.jl:3610 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2473
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2300
 [13] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
 [14] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2287
 [16] macro expansion
    @ .\loading.jl:2226 [inlined]
 [17] macro expansion
    @ .\lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2183
 [19] #invoke_in_world#3
    @ .\essentials.jl:1088 [inlined]
 [20] invoke_in_world
    @ .\essentials.jl:1085 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2176
 [22] include
    @ .\Base.jl:557 [inlined]
 [23] 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:2806
 [24] top-level scope
    @ stdin:4
in expression starting at C:\Users\u0174972\.julia\packages\ITensors\Zs2nC\ext\ITensorsVectorInterfaceExt\ITensorsVectorInterfaceExt.jl:1
in expression starting at stdin:4

Version Info:

Julia Version 1.11.0
Commit 501a4f25c2 (2024-10-07 11:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 7 PRO 8840U w/ Radeon 780M Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 8 default, 0 interactive, 4 GC (on 16 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    ITensorsIssues or pull requests related to the `ITensors` package.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions