# Failed to load module canberra-gtk-module

**URL:** https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402
**Category:** New to Julia
**Tags:** question, gtk
**Created:** [March 21, 2023, 4:03pm UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402 "2023-03-21T16:03:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![samq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samq/32/47935_2.png) [@samq](https://discourse.julialang.org/u/samq)
#### Post date: [March 21, 2023, 4:03pm UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402/1 "2023-03-21T16:03:47Z")

</div>

OS = Ubuntu 18.04  
Julia version = Version 1.8.5 (2023-01-08)

When using Julia REPL, I type 'using Gtk and every time I get 3 ‘Gtk-Message: 09:14:02.463: Failed to load module “canberra-gtk-module”’ messages. If I type ‘using Pkg’ and then type ‘using Gtk’ I no longer get the ‘Gtk-Message: 09:14:02.463: Failed to load module “canberra-gtk-module”’. How can I make the julia REPL perform the ‘using Gtk’ command correctly the first time I use it without needing to type ‘using Pkg’?

I ensured that the canberra-gtk-module is already installed.

---

<div class="post-metadata">

### Author: ![barucden](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barucden/32/26154_2.png) [@barucden](https://discourse.julialang.org/u/barucden)
#### Post date: [March 21, 2023, 4:46pm UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402/2 "2023-03-21T16:46:51Z")

</div>

Check the green box with the tip at [Home · Gtk.jl](https://juliagraphics.github.io/Gtk.jl/latest/#Installation-1)  
It says:

> On some platforms, you may see messages like
> 
> > Gtk-Message: 20:15:48.288: Failed to load module “canberra-gtk-module”
> 
> These are harmless. If you want to suppress them, on Unix platforms you can add something like
> 
> ```julia
> export GTK_PATH=$GTK_PATH:/usr/lib/x86_64-linux-gnu/gtk-3.0
> 
> ```
> 
> to your `.bashrc` file. (You may need to customize the path for your system; it should have a `modules` directory containing `libcanberra`.)

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [March 22, 2023, 6:04am UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402/3 "2023-03-22T06:04:59Z")

</div>

Hello, welcome back to this forum 🙂  
Great your issue has been solved quickly.  
For the future, I suggest you to use a more informative title to your posts. For example for this post something on the line of:

“Failed to load module canberra-gtk-module”” message when trying to use Gtk

---

<div class="post-metadata">

### Author: ![Cyberbully](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cyberbully/32/205254_2.png) [@Cyberbully](https://discourse.julialang.org/u/Cyberbully)
#### Post date: [December 6, 2023, 5:27am UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402/4 "2023-12-06T05:27:31Z")

</div>

I’ve been getting a similar error and I tried this (I used /bin/lib64/gtk-3.0) but it still didn’t work. Btw my distro is OpenSuse if that helps.
