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.

Spyder fails to start on Linux

See original GitHub issue

Problem Description

Installed Anaconda on Ubuntu, and it was successful.

However, when i try to launch spyder, I get an error. It is related to PyQt5. I noticed some issues related to the problem I am having: #3383 (https://github.com/spyder-ide/spyder/issues/3383) #3145 (https://github.com/spyder-ide/spyder/issues/3145)

but according to those, this issue was fixed in spyder 3.0 and up… so i am not sure what i am doing wrong…

What steps will reproduce the problem?

  1. Trying to run spyder spyder

What is the expected output? What do you see instead?

I expect to see an spyder launched, instead i get this error:

"Traceback (most recent call last): File “/home/rmahajan14/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py”, line 22, in <module> from PyQt5.QtWebEngineWidgets import QWebEnginePage ModuleNotFoundError: No module named ‘PyQt5.QtWebEngineWidgets’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/rmahajan14/anaconda3/bin/spyder”, line 11, in <module> sys.exit(main()) File “/home/rmahajan14/anaconda3/lib/python3.6/site-packages/spyder/app/start.py”, line 144, in main from spyder.app import mainwindow File “/home/rmahajan14/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py”, line 92, in <module> from qtpy import QtWebEngineWidgets # analysis:ignore File “/home/rmahajan14/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py”, line 26, in <module> from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage ImportError: libXrender.so.1: cannot open shared object file: No such file or directory "

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Package Versions

  • Spyder: 3.2.6
  • Python: 3.6.4
  • Qt: 5.6.2
  • PyQt: 5.6.0
  • Operating System: 4.4.0-112-generic GNU/Linux

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
ssugrimcommented, Sep 6, 2018

For any one arriving here while trying to upgrade the pip installed version of spyder on an Ubuntu 16.04 Linux box the solution that worked for me was:

sudo apt-get install python-pyqt5.qtwebkit

6reactions
Russell-Jones-OxPhyscommented, Mar 25, 2019

Try python3 -m pip install --upgrade PyQtWebEngine

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 >
Spyder 4.1.2 for python3 doesn't launch on Linux · Issue #12303
Expected Spyder to launch. Instead, it crashes before it opens. Traceback/Error from terminal: /usr/local/lib/python3.6/ ...
Read more >
error when starting spyder on ubuntu 22.04 - qt - Stack Overflow
As a quick workaround just comment out the lines in File: /usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py.
Read more >
First Steps — Spyder 5 documentation
As a first step to solving your issue, you can try some · If Spyder won't launch, check the · If your problem...
Read more >
Bug #1968479 “[22.04] Spyder (Python3) doesn't start”
Spyder doesn't start in Ubuntu 22.04 beta (latest updates as on ... #1972112: [jammy] spyder does not start because of kite install widget....
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