-
Notifications
You must be signed in to change notification settings - Fork 14
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
Problems with OpenCV and julia 1.11.0 #48
Comments
Same here, including on 1.10.5, the Cxxwrap dependency fails. The relevant trace is
|
Fixed in #47. Should register a new version soon. |
Would be nice if you can try the dev version and verify. |
@ViralBShah nvm juliaup add 1.11
julia +1.11
julia
] dev OpenCV
using OpenCV installs but crashes on precompilation (Fedora 40). Perhaps I'm doing something wrong? (@v1.11) pkg> status
Status `~/.julia/environments/v1.11/Project.toml`
[f878e3a2] OpenCV v4.6.0 `~/.julia/dev/OpenCV` Full trace
|
@ViralBShah please ignore the above, I forgot to first update registry. With an ] update it precompiles fine. Thank you for resolving this, and apologies for the noise. |
Can confirm. |
Dear friends,
I have problems in installing OpenCV on a linux (debian) platform and julia 1.11.0. This is the error log I get:
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
OpenCV
Failed to precompile OpenCV [f878e3a2-a245-4720-8660-60795d644f2a] to "/home/stefanocovino/.julia/compiled/v1.11/OpenCV/jl_Mj1Y8s".
ERROR: LoadError: InitError: could not load library "/home/stefanocovino/.julia/artifacts/fbe819efdc02977e6bc7cabfab4fb33665dc17d9/lib/libcxxwrap_julia.so"
/home/stefanocovino/.julia/artifacts/fbe819efdc02977e6bc7cabfab4fb33665dc17d9/lib/libcxxwrap_julia.so: undefined symbol: small_typeof, version JL_LIBJULIA_1.11
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:120
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl ./libdl.jl:119
[3] macro expansion
@ ~/.julia/packages/JLLWrappers/inPJn/src/products/library_generators.jl:63 [inlined]
[4] init()
@ libcxxwrap_julia_jll ~/.julia/packages/libcxxwrap_julia_jll/zmDeI/src/wrappers/x86_64-linux-gnu-cxx11-julia_version+1.11.0.jl:9
[5] run_module_init(mod::Module, i::Int64)
@ Base ./loading.jl:1336
[6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1324
[7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
@ Base ./loading.jl:1213
[8] _include_from_serialized (repeats 2 times)
@ ./loading.jl:1169 [inlined]
[9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
@ Base ./loading.jl:1975
[10] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2435
[11] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2300
[12] #invoke_in_world#3
@ ./essentials.jl:1088 [inlined]
[13] invoke_in_world
@ ./essentials.jl:1085 [inlined]
[14] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2287
[15] macro expansion
@ ./loading.jl:2226 [inlined]
[16] macro expansion
@ ./lock.jl:273 [inlined]
[17] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2183
[18] #invoke_in_world#3
@ ./essentials.jl:1088 [inlined]
[19] invoke_in_world
@ ./essentials.jl:1085 [inlined]
[20] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2176
[21] include(mod::Module, _path::String)
@ Base ./Base.jl:557
[22] top-level scope
@ ~/.julia/packages/JLLWrappers/inPJn/src/toplevel_generators.jl:192
[23] include
@ ./Base.jl:557 [inlined]
[24] 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
[25] top-level scope
@ stdin:4
during initialization of module libcxxwrap_julia_jll
in expression starting at /home/stefanocovino/.julia/packages/OpenCV_jll/Hfsh1/src/wrappers/x86_64-linux-gnu-cxx11-julia_version+1.11.0.jl:6
in expression starting at /home/stefanocovino/.julia/packages/OpenCV_jll/Hfsh1/src/OpenCV_jll.jl:2
in expression starting at stdin:4
ERROR: LoadError: Failed to precompile OpenCV_jll [33b9d88c-85f9-5d73-bd91-4e2b95a9aa0b] to "/home/stefanocovino/.julia/compiled/v1.11/OpenCV_jll/jl_54XHqw".
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 ~/.julia/juliaup/julia-1.11.0+0.x64.linux.gnu/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[5] #mkpidlock#6
@ ~/.julia/juliaup/julia-1.11.0+0.x64.linux.gnu/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.0+0.x64.linux.gnu/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 /home/stefanocovino/.julia/packages/OpenCV/2FyNG/src/OpenCV.jl:1
in expression starting at stdin:
Hope it hekps in identyfing the problem.
Thanks.
Stefanoi
The text was updated successfully, but these errors were encountered: