Stream: helpdesk (published)

Topic: Overriding artifacts woes


view this post on Zulip James Wrigley (Mar 29 2022 at 16:28):

I'm trying to make some modifications to QML.jl, and as part of that I want to compile jlqml locally.

My problem is that I've followed the jlqml instructions to the letter, but I'm getting errors when trying to load the package:

(@v1.7) pkg> activate QML.jl
  Activating project at `~/git/QML.jl`

julia> using jlqml_jll
ERROR: InitError: Artifact "jlqml" was not installed correctly. Try `using Pkg; Pkg.instantiate()` to re-install all missing resources.
Stacktrace:
 [1] macro expansion
   @ /usr/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:680 [inlined]
 [2] find_artifact_dir()
   @ jlqml_jll ~/.julia/packages/JLLWrappers/QpMQW/src/wrapper_generators.jl:17
 [3] __init__()
   @ jlqml_jll ~/.julia/packages/jlqml_jll/3A4Lz/src/wrappers/x86_64-linux-gnu-cxx11-julia_version+1.7.0.jl:10
during initialization of module jlqml_jll

Running ] instantiate technically doesn't fail, but it doesn't look like the package is initialized (e.g. calling methods later fails with the same error). Does anyone know how I can get a more descriptive error message?

For reference, this is the wrapper file that's in the stacktrace:

# Autogenerated wrapper script for jlqml_jll for x86_64-linux-gnu-cxx11-julia_version+1.7.0
export libjlqml

using libcxxwrap_julia_jll
using Qt5Declarative_jll
using Qt5Svg_jll
JLLWrappers.@generate_wrapper_header("jlqml")
JLLWrappers.@declare_library_product(libjlqml, "libjlqml.so")
function __init__()
    JLLWrappers.@generate_init_header(libcxxwrap_julia_jll, Qt5Declarative_jll, Qt5Svg_jll)
    JLLWrappers.@init_library_product(
        libjlqml,
        "lib/libjlqml.so",
        RTLD_LAZY | RTLD_DEEPBIND,
    )

    JLLWrappers.@generate_init_footer()
end  # __init__()

I've already added the appropriate overrides for the Qt JLLs (and it complains if they aren't there so I'm fairly sure that's correct).

view this post on Zulip James Wrigley (Mar 30 2022 at 11:00):

NVM I'm just dumb, the path for one of the overloads was wrong :upside_down:


Last updated: Dec 28 2024 at 04:38 UTC