-
Notifications
You must be signed in to change notification settings - Fork 80
Failed to load module "canberra-gtk-module" #458
Comments
We noticed these warnings when we first built Gtk, they should be harmless. canberra-gtk-module is a module to manage sound events: https://askubuntu.com/questions/342202/failed-to-load-module-canberra-gtk-module-but-already-installed |
This issue is causing problems for me too. I am new to Gtk.jl so working through the example code here https://juliagraphics.github.io/Gtk.jl/latest/manual/gettingStarted/ If I save the code as a file and try to run it by However, if I execute the same code from within the Julia REPL, I get the same error message, and the window does appear. Any ideas how to get around this? |
These are two different things. The window not appearing in the non-REPL mode is correct. You need to stop Julia from quitting, see https://juliagraphics.github.io/Gtk.jl/latest/manual/nonreplusage/ The other thing is not an error but a warning about the theme. I see this as well on ubuntu. |
Ah, okay. Thanks for the explanation. I just got the warning and then Julia quit without anything happening, so I assumed they were related. |
It actually is a feature rather than a bug. In other Gtk bindings, one has to go into the blocking main loop and cannot further interact within the REPL. In this way we have full flexibility. |
I was annoyed with this message all the time and what solved for me was to create an enviroment variable and export it in .bashrc export GTK_PATH"=/usr/lib/x86_64-linux-gnu/gtk-3.0:$PATH" (or gtk-2.0 if it is your version) Julia 1.6 running in Ubuntu 20.04 Hope it helps |
This fixed it, thanks! |
Also update the precompilation section, including deleting the old userimg.jl instructions.
When using this workaround with Julia 1.7.3 on Ubuntu 18.04:
together with InspectDR the warnings disappear, but in addition the menu is not shown any longer. Any idea? |
When I load Gtk I see the following warnings:
However, the tests pass.
The text was updated successfully, but these errors were encountered: