clemapfel / mousetrapmakie.jl Goto Github PK
View Code? Open in Web Editor NEWAllows for integrating Makie Plots into Mousetrap.jl Applications
License: GNU Lesser General Public License v3.0
Allows for integrating Makie Plots into Mousetrap.jl Applications
License: GNU Lesser General Public License v3.0
In trying to load mousetrapmakie.jl using the suggested approach, on a Win 11 machine, I get an error in the precompile stage as follows:
`julia> import Pkg
julia> begin
Pkg.add(url="https://github.com/clemapfel/mousetrap_jll")
Pkg.add(url="https://github.com/clemapfel/Mousetrap.jl")
Pkg.add(url="https://github.com/clemapfel/MousetrapMakie.jl")
end
Updating git-repo https://github.com/clemapfel/mousetrap_jll
Resolving package versions...
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Project.toml
[287f9a42] + libmousetrap_jll v0.3.0+0 https://github.com/clemapfel/mousetrap_jll#main
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Manifest.toml
[287f9a42] + libmousetrap_jll v0.3.0+0 https://github.com/clemapfel/mousetrap_jll#main
Precompiling project...
1 dependency successfully precompiled in 4 seconds. 350 already precompiled.
Cloning git-repo https://github.com/clemapfel/Mousetrap.jl
Updating git-repo https://github.com/clemapfel/Mousetrap.jl
Resolving package versions...
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Project.toml
[5deeb4b9] ~ Mousetrap v0.3.1 https://github.com/clemapfel/mousetrap.jl#main
⇒ v0.3.1 https://github.com/clemapfel/Mousetrap.jl#main
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Manifest.toml
[5deeb4b9] ~ Mousetrap v0.3.1 https://github.com/clemapfel/mousetrap.jl#main
⇒ v0.3.1 https://github.com/clemapfel/Mousetrap.jl#main
Cloning git-repo https://github.com/clemapfel/MousetrapMakie.jl
Updating git-repo https://github.com/clemapfel/MousetrapMakie.jl
Resolving package versions...
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Project.toml
[aebf437e] + MousetrapMakie v0.1.0 https://github.com/clemapfel/MousetrapMakie.jl#main
Updating C:\Users\jakez\AppData\Local\Temp\jl_s10Cd7\Manifest.toml
[aebf437e] + MousetrapMakie v0.1.0 https://github.com/clemapfel/MousetrapMakie.jl#main
Precompiling project...
✗ MousetrapMakie
0 dependencies successfully precompiled in 12 seconds. 351 already precompiled.
1 dependency errored.
For a report of the errors see julia> err
. To retry use pkg> precompile
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
MousetrapMakie [aebf437e-4a9b-4da2-be5f-abfe051cab05]
Failed to precompile MousetrapMakie [aebf437e-4a9b-4da2-be5f-abfe051cab05] to "C:\Users\jakez\.julia\compiled\v1.10\MousetrapMakie\jl_734C.tmp".
ERROR: LoadError: UndefVarError: retina_scaling_factor
not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:31
[2] top-level scope
@ C:\Users\jakez.julia\packages\MousetrapMakie\trewM\src\MousetrapMakie.jl:109
[3] include
@ Base .\Base.jl:495 [inlined]
[4] 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:2216
[5] top-level scope
@ stdin:3
in expression starting at C:\Users\jakez.julia\packages\MousetrapMakie\trewM\src\MousetrapMakie.jl:1
in expression starting at stdin:
julia>`
Would be good to have compat bounds specified for dependencies here. The other issues here would be solve with an upper bounds on Makie.jl at 0.19
When I try to run the installation instructions here, I here this error:
julia> Pkg.add(url="https://github.com/clemapfel/MousetrapMakie.jl")
Updating git-repo `https://github.com/clemapfel/MousetrapMakie.jl`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Mousetrap [5deeb4b9]:
Mousetrap [5deeb4b9] log:
├─Mousetrap [5deeb4b9] has no known versions!
└─restricted to versions * by MousetrapMakie [aebf437e] — no versions left
└─MousetrapMakie [aebf437e] log:
├─possible versions are: 0.1.0 or uninstalled
└─MousetrapMakie [aebf437e] is fixed to version 0.1.0
In trying to run the example code, the precompile gives a 'retina_scaling_factor' not defined error and then when running the example code a GLMakieArea
not defined error.
`julia> main() do app::Application
window = Window(app)
canvas = GLMakieArea()
set_child!(window, canvas)
set_size_request!(canvas, Vector2f(200, 200))
screen = Ref{Union{Nothing, GLMakie.Screen{GLMakieArea}}}(nothing)
connect_signal_realize!(canvas) do self
screen[] = create_glmakie_screen(canvas)
display(screen[], scatter(rand(123)))
return nothing
end
present!(window)
end
(julia.exe:31760): GLib-GIO-WARNING **: 18:03:40.224: C:\Users\jakez.julia\artifacts\13606487e48c4dea9d20813adf4f03a3edea59fd\bin\gdbus.exe dbus binary failed to launch bus, maybe incompatible version
[ERROR] In Mousetrap.main: UndefVarError: GLMakieArea
not defined
Stacktrace:
[1] (::var"#3#5")(app::Application)
@ Main .\REPL[15]:3
[2] (::TypedFunction)(args::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:91
[3] (::Mousetrap.var"#14#15"{TypedFunction})(app::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:1542
[4] (::TypedFunction)(args::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:91
[5] (::Mousetrap.var"#6#8"{TypedFunction})(x::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Application}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:657
[6] safe_call(scope::String, f::Function, args::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Application}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:190
[7] run!(arg1::Mousetrap.detail._ApplicationAllocated)
@ Mousetrap.detail C:\Users\jakez.julia\packages\CxxWrap\5IZvn\src\CxxWrap.jl:624
[8] run!(app::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:1511
[9] main
@ C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:1552 [inlined]
[10] main(f::Function)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\CHEs7\src\Mousetrap.jl:1538
[11] top-level scope
@ REPL[15]:1
[12] eval
@ .\boot.jl:385 [inlined]
[13] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
@ REPL C:\Users\jakez\AppData\Local\Programs\Julia-1.10.1\share\julia\stdlib\v1.10\REPL\src\REPL.jl:150
[14] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
@ REPL C:\Users\jakez\AppData\Local\Programs\Julia-1.10.1\share\julia\stdlib\v1.10\REPL\src\REPL.jl:246
[15] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
@ REPL C:\Users\jakez\AppData\Local\Programs\Julia-1.10.1\share\julia\stdlib\v1.10\REPL\src\REPL.jl:231
[16] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
@ REPL C:\Users\jakez\AppData\Local\Programs\Julia-1.10.1\share\julia\stdlib\v1.10\REPL\src\REPL.jl:389
[17] run_repl(repl::REPL.AbstractREPL, consumer::Any)
@ REPL C:\Users\jakez\AppData\Local\Programs\Julia-1.10.1\share\julia\stdlib\v1.10\REPL\src\REPL.jl:375
[18] (::Base.var"#1013#1015"{Bool, Bool, Bool})(REPL::Module)
@ Base .\client.jl:432
[19] #invokelatest#2
@ .\essentials.jl:892 [inlined]
[20] invokelatest
@ .\essentials.jl:889 [inlined]
[21] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
@ Base .\client.jl:416
[22] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:333
[23] _start()
@ Base .\client.jl:552
0
julia>`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.