AlgebraicJulia / Structured-Epidemic-Modeling

Results and software for our paper on structured epidemic modeling
BSD 2-Clause "Simplified" License
12 stars 5 forks source link

using Catlab fails in Julia 1.7.2 #2

Closed djinnome closed 2 years ago

djinnome commented 2 years ago
WE36383:Structured-Epidemic-Modeling zuck016$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.2 (2022-02-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.7) pkg> activate
  Activating project at `~/.julia/environments/v1.7`

(@v1.7) pkg> add Catlab
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.7/Project.toml`
  No Changes to `~/.julia/environments/v1.7/Manifest.toml`

julia> using Catlab
[ Info: Precompiling Catlab [134e5e36-593f-5add-ad60-77f754baafbe]
ERROR: LoadError: MethodError: no method matching names(::Base.Broadcast.BroadcastFunction{Module})
Closest candidates are:
  names(::Module; all, imported) at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/base/reflection.jl:102
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/Catlab/2P2DD/src/categorical_algebra/CSetDataStructures.jl:14
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
  [3] include(x::String)
    @ Catlab ~/.julia/packages/Catlab/2P2DD/src/Catlab.jl:1
  [4] top-level scope
    @ ~/.julia/packages/Catlab/2P2DD/src/Catlab.jl:8
  [5] include
    @ ./Base.jl:418 [inlined]
  [6] 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::Nothing)
    @ Base ./loading.jl:1318
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:373 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [10] top-level scope
    @ none:1
in expression starting at /Users/zuck016/.julia/packages/Catlab/2P2DD/src/categorical_algebra/CSetDataStructures.jl:1
in expression starting at /Users/zuck016/.julia/packages/Catlab/2P2DD/src/Catlab.jl:1
ERROR: Failed to precompile Catlab [134e5e36-593f-5add-ad60-77f754baafbe] to /Users/zuck016/.julia/compiled/v1.7/Catlab/jl_9e64Ab.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997
epatters commented 2 years ago

Also reported at https://github.com/AlgebraicJulia/Catlab.jl/issues/618. Let's handle the issue there.