#πŸ”’ canberra-gtk-module py module not detected by linux PopOS

25 messages Β· Page 1 of 1 (latest)

snow shoal
#

Hey there! I am trying to run a bit of python code with matplotlib but no matter how many times I install it and reinstall it I keep getting this error: Gtk-Message: 11:02:01.967: Failed to load module "canberra-gtk-module"

I have tried: sudo dpkg-reconfigure canberra-gtk-module

And that returns:

dpkg-query: package 'canberra-gtk-module' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
/usr/sbin/dpkg-reconfigure: canberra-gtk-module is not installed

Thanks in advance for any help! (Btw, I am using VS Code)

cerulean moonBOT
#

@snow shoal

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

snow shoal
somber zodiac
#

what is the output from apt list --installed | grep libcanberra-gtk-module?

#

or with sudo

snow shoal
#
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libcanberra-gtk-module/jammy-updates,now 0.30-10ubuntu1.22.04.1 amd64 [installed]
libcanberra-gtk-module/jammy-updates,now 0.30-10ubuntu1.22.04.1 i386 [installed]
#

is it a problem with vscode?

somber zodiac
#

have you tried running the script in the terminal?

snow shoal
#

in vs?

somber zodiac
#

no, just your terminal in popos

snow shoal
#

oh yes, this is what it gives me: ```
Traceback (most recent call last):
File "/home/braxtenchenay/Programming/School/lab22/lab22.py", line 1, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'

#

It never seems to detect the libraries

#

when run from said terminal

somber zodiac
#

if you have venv you need to activate it

snow shoal
#

is a venv set up by default or do I have to create one?

somber zodiac
#

probably need to set it up

#

I don't know if vscode creates it for you, since I don't use it, but you can make one manually

snow shoal
#

ok let me see

snow shoal
# somber zodiac probably need to set it up

ok so I did that and it gives me the same error: Gtk-Message: 11:50:29.417: Failed to load module "canberra-gtk-module" Gtk-Message: 11:50:29.417: Failed to load module "canberra-gtk-module"

#

actually, I figured out that even though I keep getting the error my program runs fine lol. I guess I'll just live with it. Thanks for the help!

#

!close

cerulean moonBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.