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...
Related
I am trying to install pandas module on PyCharm. When i try to install it it gave me this error: "ModuleNotFoundError: No module name 'Cython' " (Screen: https://prnt.sc/qafwcy)
So i went on the CMD to try to install the Cython package with this command: py -m pip install Cython , which gave me an other error: "The script, f2py.exe is install in 'C:\xxx.xxxx, which is not a PATH. (Screen: https://prnt.sc/qafvx3)
Does anyone had the same problem and know how to fix it?
Thank you
Pycharm uses a virtual environment - one separate from your python install on your computer. This is to isolate your development environment from the one you would use on your computer.
Enter your pip commands here instead:
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 !
Yes you read it right!
I am trying to install pygame, so I downloaded the whl file and copied it to my project's folder, in the command prompt I navigated to the folder and entered
python -m install --user pygame-1.9.2-cp35-cp35m-win32.whl
Now if you can help me here that would be really appreciated, why is the error so rare that I couldn't find it anywhere.
Python doesn't have a module called "install". The module you're looking for is probably pip.
Just type in the command prompt:
python -m pip install --user pygame-1.9.2-cp35-cp35m-win32.whl
And pygame should start being installed.
I've searched everywhere I could and I couldn't find appropriate answer. I don't know how to install numpy so I could use it in Geany with python 3.1.2. It only works for python 2.6.5. I'm new to ubuntu.
edit: I get ImportError: No module named numpy
If python 3.1.2 is installed via python3 package then you could try:
$ sudo apt-get install python3-numpy
Tried the apt-get installation solution above but it didn't work, however, pip did work:
$ sudo pip3 install numpy
Also, here are the install instructions for pip if needed.
I'm getting a problem while running my project in ubuntu 11.10.
/home/kranthi/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/i686-linux/readline.so: libreadline.so.5: cannot open shared object file: No such file or directory - /home/kranthi/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/i686-linux/readline.so (LoadError)
this is the error.can anyone help me in solving this?
Thanks.
On some Linux Distributions you have the option to install a special libreadline version for ruby. I solved my Problem on an Ubuntu Box.
For Ubuntu or Debian:
sudo apt-get install libreadline-ruby
or
sudo aptitude install libreadline-ruby
You seem to be missing the readline lib. I don't have a linux install close by, but something like sudo apt-get install libreadline should solve your problem. Maybe I got the name of the package wrong, don't hesitate to make a quick search
EDIT : what about rvm pkg install readline?