Unable to open Spyder with Ubuntu
See original GitHub issueI installed Spyder into a virtualenv on Ubuntu using:
Steps to get Problem
source venv/bin/activate
sudo pip3 install spyder
(which you are apparently never supposed to use sudo pip together ever)spyder3
I get the following errors each time:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-quit’ libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast shared memfd open() failed: Function not implemented Trace/breakpoint trap (core dumped)
I have read that the libGL error is often associated with an Nvidia graphics card which I read here, but I ran the following to check for the problematic driver which would be caused by Nvidia:
sudo ldconfig -p | grep -i gl.so which outputs:
libwayland-egl.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libwayland-egl.so.1
libcogl.so.20 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcogl.so.20
libQt5OpenGL.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libQt5OpenGL.so.5
libGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libGL.so.1
libEGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libEGL.so.1
I did not find the nvidia driver amongst these. Maybe it’s the case that one of these libs listed is the problematic one, or I do not have the lib that it wants to run Spyder?
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (6 by maintainers)
Also, just in case fro wsl/wsl2, we have some docs regarding the usage of Spyder with wsl2 instances here: https://docs.spyder-ide.org/current/faq.html?highlight=run cell#install-wsl2 (not installing Spyder itself in the wsl2 instance but connecting to a remote kernel started there from you host on Windows)
Xubuntu (ubuntu base + XFCE) 21.10
python3 -m pip install spyder -U --user
works fine. No need for anaconda or miniconda. Not using any virtual environment of any type.