vscode: GTK+ module libcanberra-gtk-module.so cannot be loaded
Hello guys,
I’m using OpenCV in VSCode (Ubuntu Software installation) and everything worked fine, until I updated my libraries (sudo apt-get update/upgrade/full-upgrade
) I guess. But now VSCode or rather OpenCV can’t find the GTK library.
I’ve tested this succesfully:
GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 ./test
--> works
But when I specify the version gtk-3.0:
GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0 ./test
--> fails
Normally the loaded version without using GTK_PATH is gtk-3.0 and then it shows me this error:
I verified that the in /usr/lib/x86_64-linux-gnu/gtk-3.0/modules
is:
Would appreciate to solve this warning and to understand why the .so cannot be loaded.
Thanks in advance
UPDATE: the example code can be executed without warnings in the normal gnome terminal, but VSCode seems to habe problems to find the specific libraries, so it’s definitely VSCode.
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 3
- Comments: 19 (7 by maintainers)
The failure still exists, also I am unable to configure GitHub Account credentials on my VSCode as Firefox fails to launch from VSCode due to the same reasons.
I don’t have it unset in any VSCode settings. This is a new installation.
Here’s the grepped
GTK/VSCODE
Environment variables captured on my system in the integrated terminal:I don’t have any of the
GTK*
Evironment Variables in my default system terminal. It seems the issue is not resolved.With the verification steps above, I get a single message
Gtk-Message: <timestamp>: Failed to load module "canberra-gtk-module"
, but that’s it.I will keep this issue open to address the problem with snap packages.