Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ImageMorphology issue #933

@kafisatz

Description

@kafisatz

Hi

I run into the error below and I think it is due to Revise.

I only run two lines of code.
When I run the Revise line first, I get the error (see below).
When I run the other line first using LLScrapers things work fine.

this is a confidential package, so I cannot show you the source. but I can give you the packages I use and versioninfo()

 using Revise; rlogger = Revise.debug_logger(); 
 using Pkg;Pkg.activate("."); Pkg.instantiate(); using LLScrapers
julia> using Revise; rlogger = Revise.debug_logger(); 

julia> using Pkg;Pkg.activate("."); Pkg.instantiate(); using LLScrapers
  Activating project at `C:\Users\bernhard.konig\Documents\Repositories\LLScrapers.jl`
ERROR: InitError: KeyError: key Base.PkgId(Base.UUID("787d08f9-d448-5407-9aad-5290dd7ab264"), "ImageMorphology") not found
Stacktrace:
  [1] getindex
    @ .\dict.jl:477 [inlined]
  [2] macro expansion
    @ .\lock.jl:273 [inlined]
  [3] root_module(key::Base.PkgId)
    @ Base .\loading.jl:2471
  [4] parse_pkg_files(id::Base.PkgId)
    @ Revise C:\Users\bernhard.konig\.julia\packages\Revise\W4D4d\src\loading.jl:38
  [5] watch_package(id::Base.PkgId)
    @ Revise C:\Users\bernhard.konig\.julia\packages\Revise\W4D4d\src\pkgs.jl:349
  [6] add_require(sourcefile::String, modcaller::Module, idmod::String, modname::String, expr::Expr)
    @ Revise C:\Users\bernhard.konig\.julia\packages\Revise\W4D4d\src\pkgs.jl:188
  [7] withnotifications(::Any, ::Vararg{Any})
    @ Requires C:\Users\bernhard.konig\.julia\packages\Requires\1eCOK\src\require.jl:70
  [8] (::ImageMorphology.var"#146#149")()
    @ ImageMorphology C:\Users\bernhard.konig\.julia\packages\Requires\1eCOK\src\require.jl:106
  [9] listenpkg(f::Any, pkg::Base.PkgId)
    @ Requires C:\Users\bernhard.konig\.julia\packages\Requires\1eCOK\src\require.jl:20
 [10] macro expansion
    @ C:\Users\bernhard.konig\.julia\packages\Requires\1eCOK\src\require.jl:98 [inlined]
 [11] __init__()
    @ ImageMorphology C:\Users\bernhard.konig\.julia\packages\ImageMorphology\lktkj\src\ImageMorphology.jl:153
 [12] run_module_init(mod::Module, i::Int64)
    @ Base .\loading.jl:1378
 [13] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1366
 [14] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{…}, ignore_native::Nothing; register::Bool)
    @ Base .\loading.jl:1254
 [15] _include_from_serialized (repeats 2 times)
    @ .\loading.jl:1210 [inlined]
 [16] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{…}, DEPOT_PATH::Vector{…})
    @ Base .\loading.jl:2041
 [17] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2527
 [18] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2388
 [19] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [20] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [21] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:2375
 [22] macro expansion
    @ .\loading.jl:2314 [inlined]
 [23] macro expansion
    @ .\lock.jl:273 [inlined]
 [24] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2271
 [25] #invoke_in_world#3
    @ .\essentials.jl:1089 [inlined]
 [26] invoke_in_world
    @ .\essentials.jl:1086 [inlined]
 [27] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:2260
during initialization of module ImageMorphology
Some type information was truncated. Use `show(err)` to see complete types.

julia> 


Status `C:\Users\bernhard.konig\Documents\Repositories\LLScrapers.jl\Project.toml`
  [1520ce14] AbstractTrees v0.4.5   
  [336ed68f] CSV v0.10.15
  [54eefc05] Cascadia v1.0.2        
  [944b1d66] CodecZlib v0.7.8       
  [8f4d0f93] Conda v1.10.2
  [a93c6f00] DataFrames v1.7.0      
  [864edb3b] DataStructures v0.18.22
  [8f5d6c58] EzXML v1.2.1
  [5789e2e9] FileIO v1.17.0
  [41a02a25] Folds v0.2.10
  [708ec375] Gumbo v0.8.3
  [cd3eb016] HTTP v1.10.17
  [916415d5] Images v0.26.2
  [033835bb] JLD2 v0.5.15
  [682c06a0] JSON v0.21.4
  [6fe1bfb0] OffsetArrays v1.17.0   
  [438e738f] PyCall v1.96.4
  [20febd7b] Retry v0.4.1
  [2913bbd2] StatsBase v0.34.5      
  [fdbf4ff8] XLSX v0.10.4
  [ade2ca70] Dates v1.11.0
  [8ba89e20] Distributed v1.11.0
  [de0858da] Printf v1.11.0



julia> versioninfo()
Julia Version 1.11.5
Commit 760b2e5b73 (2025-04-14 06:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 32 × AMD Ryzen 9 5950X 16-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 16 default, 0 interactive, 8 GC (on 32 virtual cores)
Environment:
  JULIA_NUM_THREADS = 16
  JULIA_EDITOR = "code"
  JULIA_VSCODE_REPL = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions