Skip to content
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

Precompile error on v0.16.19 #960

Closed
slwu89 opened this issue Feb 7, 2025 · 2 comments
Closed

Precompile error on v0.16.19 #960

slwu89 opened this issue Feb 7, 2025 · 2 comments
Labels

Comments

@slwu89
Copy link
Member

slwu89 commented Feb 7, 2025

Hi all, I'm working in a project with the following deps:

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Catlab = "134e5e36-593f-5add-ad60-77f754baafbe"
Countries = "5bf49175-83fb-4b6d-82b5-d6ded85154ae"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Oxygen = "df9a0d86-3283-4920-82dc-4555fc0d1d8b"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
XLSX = "fdbf4ff8-1666-58a4-91e7-1b58723a45e0"

[compat]
Reexport = "1.2.2"

With the following versions (on Julia 1.11.3):

  [336ed68f] CSV v0.10.15
  [134e5e36] Catlab v0.16.19
  [5bf49175] Countries v0.3.0
  [a93c6f00] DataFrames v1.7.0
  [cd3eb016] HTTP v1.10.15
  [87dc4568] HiGHS v1.13.0
  [0f8b85d8] JSON3 v1.14.1
  [4076af6c] JuMP v1.24.0
  [df9a0d86] Oxygen v1.7.1
  [189a3867] Reexport v1.2.2
  [2913bbd2] StatsBase v0.34.4
  [fdbf4ff8] XLSX v0.10.4

When trying to precompile the project, I get the following error ``ERROR: LoadError: UndefVarError: ThCategory not defined in `Catlab.Theories```. The full error is below. Any ideas on what's going on? If I try to load Catlab in an empty project, it works fine.

ERROR: LoadError: UndefVarError: `ThCategory` not defined in `Catlab.Theories`
Stacktrace:
  [1] top-level scope
    @ :0
  [2] #macroexpand#74
    @ ./expr.jl:125 [inlined]
  [3] macroexpand(m::Module, x::Any)
    @ Base ./expr.jl:123
  [4] var"@symbolic_model"(__source__::LineNumberNode, __module__::Module, decl::Any, theoryname::Any, body::Any)
    @ GATlab.Models.SymbolicModels ~/.julia/packages/GATlab/fO07H/src/models/SymbolicModels.jl:235
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [6] include(x::String)
    @ Catlab.Theories ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:6
  [7] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:37
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [9] include(x::String)
    @ Catlab ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
 [10] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:5
 [11] include
    @ ./Base.jl:557 [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, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2881
 [13] top-level scope
    @ stdin:6
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:1
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
in expression starting at stdin:6
GCSModeling 

Failed to precompile GCSModeling [e93409f1-6d57-48c5-9fa8-1fd3b3493a8b] to "/Users/wusea/.julia/compiled/v1.11/GCSModeling/jl_OrHYxi".
ERROR: LoadError: UndefVarError: `ThCategory` not defined in `Catlab.Theories`
Stacktrace:
  [1] top-level scope
    @ :0
  [2] #macroexpand#74
    @ ./expr.jl:125 [inlined]
  [3] macroexpand(m::Module, x::Any)
    @ Base ./expr.jl:123
  [4] var"@symbolic_model"(__source__::LineNumberNode, __module__::Module, decl::Any, theoryname::Any, body::Any)
    @ GATlab.Models.SymbolicModels ~/.julia/packages/GATlab/fO07H/src/models/SymbolicModels.jl:235
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [6] include(x::String)
    @ Catlab.Theories ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:6
  [7] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:37
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [9] include(x::String)
    @ Catlab ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
 [10] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:5
 [11] include
    @ ./Base.jl:557 [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, UInt128}}, source::String)
    @ Base ./loading.jl:2881
 [13] top-level scope
    @ stdin:6
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:1
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile Catlab [134e5e36-593f-5add-ad60-77f754baafbe] to "/Users/wusea/.julia/compiled/v1.11/Catlab/jl_HSVurt".
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}, loadable_exts::Nothing)
    @ Base ./loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base ./loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3698
 [10] maybe_cachefile_lock
    @ ./loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [16] macro expansion
    @ ./loading.jl:2314 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [19] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [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:2881
 [24] top-level scope
    @ stdin:6
in expression starting at /Users/wusea/Desktop/git/dssi-dyve-gcs/src/GCSModeling.jl:1
in expression starting at stdin:6

CatlabDataFramesExt 

Failed to precompile CatlabDataFramesExt [2ba0e0b3-fe25-51a6-b03e-95753f7b4923] to "/Users/wusea/.julia/compiled/v1.11/CatlabDataFramesExt/jl_JZdEmR".
ERROR: LoadError: UndefVarError: `ThCategory` not defined in `Catlab.Theories`
Stacktrace:
  [1] top-level scope
    @ :0
  [2] #macroexpand#74
    @ ./expr.jl:125 [inlined]
  [3] macroexpand(m::Module, x::Any)
    @ Base ./expr.jl:123
  [4] var"@symbolic_model"(__source__::LineNumberNode, __module__::Module, decl::Any, theoryname::Any, body::Any)
    @ GATlab.Models.SymbolicModels ~/.julia/packages/GATlab/fO07H/src/models/SymbolicModels.jl:235
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [6] include(x::String)
    @ Catlab.Theories ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:6
  [7] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:37
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
  [9] include(x::String)
    @ Catlab ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
 [10] top-level scope
    @ ~/.julia/packages/Catlab/jPXBM/src/Catlab.jl:5
 [11] include
    @ ./Base.jl:557 [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, UInt128}}, source::String)
    @ Base ./loading.jl:2881
 [13] top-level scope
    @ stdin:6
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Category.jl:15
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/theories/Theories.jl:1
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/src/Catlab.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile Catlab [134e5e36-593f-5add-ad60-77f754baafbe] to "/Users/wusea/.julia/compiled/v1.11/Catlab/jl_51wok0".
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}, loadable_exts::Nothing)
    @ Base ./loading.jl:3174
  [3] (::Base.var"#1110#1111"{Base.PkgId})()
    @ Base ./loading.jl:2579
  [4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3698
 [10] maybe_cachefile_lock
    @ ./loading.jl:3695 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2565
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [16] macro expansion
    @ ./loading.jl:2314 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [19] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [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:2881
 [24] top-level scope
    @ stdin:6
in expression starting at /Users/wusea/.julia/packages/Catlab/jPXBM/ext/CatlabDataFramesExt.jl:1
in expression starting at stdin:6
@epatters
Copy link
Member

epatters commented Feb 7, 2025

Should be resolved by @kris-brown's https://github.com/AlgebraicJulia/GATlab.jl/releases/tag/v0.1.5

@epatters epatters added the bug label Feb 7, 2025
@epatters
Copy link
Member

epatters commented Feb 7, 2025

Can confirm that this is resolved by Gatlab v0.1.5.

@epatters epatters closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants