How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV

When I run the program that wrote OpenCV, I get the following error. Even if this error occurs, it does not work, but I have found a workaround and would like to introduce it.

Gtk-Message: 15:45:02.507: Failed to load module "canberra-gtk-module"

o.png

This is done in the Zubari terminal as follows

sudo apt-get install libcanberra-gtk*

o2.png

If it ends like this, the error will disappear.

Recommended Posts

How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
How to deal with the error that Docker's MySQL container fails to start on Docker Toolbox
How to deal with python installation error in pyenv (BUILD FAILED)
How to deal with the problem that the current directory moves when Python is executed from Atom
How to deal with OAuth2 error when using Google APIs from Python
How to deal with SSL error when connecting to S3 with boto of Python
[AWS] How to deal with WordPress "An error occurred when cropping an image."
How to deal with the problem that build fails when CI / CD of Python Function with AWS Amplify
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
How to deal with SessionNotCreatedException when using Selenium
Turn off the dialog that appears when you enter Linux with Remote Desktop
[EC2] How to deal with errors that selenium cannot execute (No module named selenium)
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to solve the problem that only the process remains when you press cross on the imshow screen of OpenCV
How to deal with the problem that Japanese characters are garbled when outputting logs using JSON log formatter
How to deal with "^ [[A ^ [[B ^ [[C ^ [[D"] when you press the arrow keys when executing python on mac
How to run the Ansible module added in Ansible Tower
A story that failed when trying to remove the suffix from the string with rstrip
Settings when you want to run python-mecab with travis
How to deal with "Type Error: No matching signature found" error when using pandas fillna
[Python] How to deal with pandas read_html read error
A memo of misunderstanding when trying to load the entire self-made module with Python3
How to deal with Executing transaction: failed in Anaconda
How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted
How to deal with the problem that pandas 1.1.0 or later build fails on Alpine Linux
When I try to connect to MySQL with mysql-connector-python, I cannot connect with the error "SSL connection error: SSL_CTX_set_tmp_dh failed"
How to delete "(base)" that appears in the terminal when Anaconda is installed on Mac
[VLC] How to deal with the problem that it is not in the foreground during playback
How to not load images when using PhantomJS with Selenium
[Linux] How to deal with garbled characters when viewing files
[AWS] How to deal with "Invalid codepoint" error in CloudSearch
A story about how to deal with the CORS problem
How to deal with UnicodeDecodeError when executing google image download
How to output additional information when logging with python's logging module
A story that didn't work when I tried to log in with the Python requests module
How to deal with errors when installing whitenoise and deploying to Heroku
How to deal with errors when installing Python and pip with choco
When WSL Distro fails to start (error: "WslRegisterDistribution failed with error: 0x800706be.")
When you want to adjust the axis scale interval with APLpy
How to use the optparse module
How to deal with imbalanced data
How to deal with imbalanced data
How to deal with DistributionNotFound errors
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
How to use the ConfigParser module
[PostgreSQL] How to grant superuser authority when the user (role) with superuser authority is 0
How to crop the lower right part of the image with Python OpenCV
[Introduction to machine learning] Until you run the sample code with chainer
[Docker] What to do when error Couldn't find the binary git appears
The module that should have been installed with pip does not run
Codes that you often see when working with SIer and how to fix them-Slight improvements to highly dependent code
[Python] How to deal with the is instance error "is instance () arg 2 must be a type or tuple of types"
How to deal with enum compatibility errors
Workaround if you get an error when trying to install PySide with pip
How to deal with the inability to open the lock file / var / lib / dpkg / lock-frontend
Solution to the problem that build does not end when installing OpenCV (PEP517)
How to display in the entire window when setting the background image with tkinter
What to do if you get an error when installing python with pyenv
[AWS] Wordpress How to deal with "The response is not a correct JSON response"
How to deal with problems that occur in future prediction using the SARIMA model (seasonal autoregressive integrated moving average model)