question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to open Spyder with Ubuntu

See original GitHub issue

I installed Spyder into a virtualenv on Ubuntu using:

Steps to get Problem

  1. source venv/bin/activate
  2. sudo pip3 install spyder (which you are apparently never supposed to use sudo pip together ever)
  3. 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:closed
  • Created 3 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dalthvizcommented, Apr 5, 2022

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)

1reaction
texadactylcommented, Apr 6, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Python) Spyder not starting - Ask Ubuntu
Simply doing sudo apt-get purge spyder or sudo apt-get install --reinstall spyder won't work since it doesn't affect your personal configuration file. You...
Read more >
Open spyder in ubuntu - python - Stack Overflow
in ubuntu. Normally I would write "spyder" in the shell, and it would open the spyder IDE.
Read more >
Bug #1968479 “[22.04] Spyder (Python3) doesn't start”
Spyder doesn't start in Ubuntu 22.04 beta (latest updates as on 2022/04/10) anymore: (Clean install, default theme). ``` $ spyder
Read more >
Frequently Asked Questions — Spyder 5 documentation
From Anaconda Navigator: Scroll to Spyder under Home, and click Launch. *Windows Only*: Launch it via the Start menu shortcut.
Read more >
Troubleshooting — Anaconda documentation
Close and relaunch Spyder and see if the problem remains. · On the menu, select Start, then select Reset Spyder Settings and see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found