OSError: Failed to load library from libmediainfo.so.0 - google-colaboratory

OSError: Failed to load library from libmediainfo.so.0 - libmediainfo.so.0: cannot open shared object file: No such file or directory
How can I install libmediainfo.so.0 in colab? Doesn't it work in colab?

I had the same problem, you can solve it by running the command "sudo apt install mediainfo" in the terminal. (was not my idea i found it on https://github.com/sbraz/pymediainfo/issues/109 and it worked)

Related

matplotlib qt wsl ubuntu qt5

Faced problems when using a jupyter notebook and tried to do a simple plot using matplotlib.
Hit many errors,
ImportError: Failed to import any qt binding
Also tried installing some libraries in my WSL Ubuntu Linux
sudo apt-get install libgl1-mesa-glx
But didn't solve the problem:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
After installing other packages I only got from Jupyter a message Kernel is dead.
How to solve issue?
TL;DR;
sudo apt-get install libxkbcommon-x11-0
More details:
After a lot of googling, what pointed me in the right direction was (this site)[https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/3] where SGaist's comment of doing
$ export QT_DEBUG_PLUGINS=1
$ jupyter qtconsole
Showed:
.../site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
Which can be installed doing:
sudo apt-get install libxkbcommon-x11-0
And then it all worked....!
Hope this can help someone...

How to install pyqt5 on a virtual machine?

I have a google cloud platform virtual machine and I'm trying to run a python code using pyqt5 library.
I managed to install the miniconda distribution and all libraries I need (including pyqt5) but I'm having a problem while executing that code :
from PyQt5 import QtWebEngineWidgets
getting this error :
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
After searching in forums, I understood that it's because I may have a virtual machine (through SSH, OS : Ubuntu 19.04 amd64 disco image built on 2019-07-24) without window manager. I then installed the window manager Awesome but I got the same error.
I then tried unhopefully to solve the error by doing:
sudo apt update
sudo apt install libgl1-mesa-glx
as seen in a forum and I got a different error:
ImportError: libXss.so.1: cannot open shared object file: No such file or directory
but I think it's the same core problem.
Does anyone have an idea ?
Thank you for your help and your time !

ca-certificates on a raspberry pi 3 - update-ca-certificates plots and error

Something went totally wrong with my Raspberry Pi 3. I had to run fsck.ext3, but many packages got corrupted, such as python etc. Now, ca-certificates won't reinstall. Whenever it runs update-ca-certificates, this is the output:
Setting up ca-certificates (20141019+deb8u4) ...
Updating certificates in /etc/ssl/certs... wc: error while loading shared libraries: xit: cannot open shared object file: No such file or directory
dpkg: error processing package ca-certificates (--configure):
subprocess installed post-installation script returned error exit status 127
It doesn't say which shared library is the problem. How can I find out?
Any tips are appreciated!
So the problem was /usr/bin/wc
i found that out after running "debsums -cs" .. so i reinstalled coreutils and everything that fixed it.

Scrapy - url open error [Errno 61] Connection refused

I am trying to deploy a project in Osx (Osx El Capitan 10.11.6), but I get the following error.
Deploying to project "webofscience" in
http://localhost:6800/addversion.json
Deploy failed:
Could they be administrator permissions ?, add some line in the host file ??
I can not think what I could do to solve it. Anyone have any suggestions on how to fix the error ??
source code: https://github.com/damlaozdemir/webofsciencescrapy
Console error
webofsciencescrapy-master sudo scrapyd-deploy local -p webofscience
Password:
Packing version 1518114723
Deploying to project "webofscience" in http://localhost:6800/addversion.json
Deploy failed: <urlopen error [Errno 61] Connection refused>
webofsciencescrapy-master
Solution:
I had 2 problems,
(1) The first one that my scrapyd installation was damaged. I threw the following error.
blablabla
File "/Library/Python/2.7/site-packages/twisted/protocols/tls.py", line 63, in <module>
from twisted.internet._sslverify import _setAcceptableProtocols
File "/Library/Python/2.7/site-packages/twisted/internet/_sslverify.py", line 38, in <module>
TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
exceptions.AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
I solved it in this link https://github.com/scrapy/scrapy/issues/2473 summary
sudo pip install -U pip
sudo pip install --upgrade scrapy
sudo pip install --upgrade twisted
sudo pip install --upgrade pyopenssl
sudo pip install Twisted==16.4.1
(2) The second problem is 'Deploy failed: ', for this problem it's necessary run the command scrapyd (layer 8 problem).

ImportError:libcudart.so.8.0:cannot open shared object file:No such file or directory

I used the spyder or terminal to run the mnist_deep.py program , it can run normally, but when i run the program using pycharm, it will cause an error.The Project Interpreter is 2.7.12(~/anaconda2/bin/python).
Error Type:
ImportError:libcudart.so.8.0:cannot open shared object file:No such file or directory
Error importing tensorflow.Unless you are using bazel,you should not try to import tensorflow from its source directory;please exit the tensorflow source tree,and relaunch your python interpreter from there
It's preferable to do a system-wide configuration instead of editing ~/.bashrc. Create a .conf file in /etc/ld.so.conf.d/:
sudo nano /etc/ld.so.conf.d/nvidia.conf
Add this:
/usr/local/cuda-8.0/lib64
/usr/local/cuda-8.0/lib # you probably don't need this line; check
# if the directory exists
Then run sudo ldconfig. Hope this brings you joy.
In my case, I had installed tensorflow-gpu on a machine without a GPU.
Uninstalling it fixed the problem
pip uninstall tensorflow-gpu
pip install tensorflow --ignore-installed
Without the 2nd step, I was getting an error No module named tensorflow (ref)