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.

No module named 'PyQt5.QtWebEngineWidgets' with anaconda on spyder 4.13

See original GitHub issue

Procedure: Fresh installed conda.

conda update anaconda conda install spyder=4.1.3

Output:

$ /opt/anaconda/bin/spyder | xclip
Traceback (most recent call last):
  File "/opt/anaconda/lib/python3.7/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 "/opt/anaconda/bin/spyder", line 11, in <module>
    sys.exit(main())
  File "/opt/anaconda/lib/python3.7/site-packages/spyder/app/start.py", line 201, in main
    from spyder.app import mainwindow
  File "/opt/anaconda/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 84, in <module>
    from qtpy import QtWebEngineWidgets  # analysis:ignore
  File "/opt/anaconda/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
    from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

I do have python-pyqtwebengine installed on my system. I am running arch linux. I a lso have python on my system but i already tried removing PyQt5 and pyqtwebengine using my system’s pip and reinstalling and in both ways i always had this same missing QtWebEngine error.

I saw many errors like this on the issues here and they always end up like that’s not a spyder problem, but maybe we need better installing instructions?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ccordoba12commented, May 20, 2020

This is not issue with Spyder but with Anaconda. Please report it here:

https://github.com/ContinuumIO/anaconda-issues/issues/

2reactions
bbutler3commented, Nov 23, 2020

I have solved my issue. Sorry for the multiple comments, but I want to help anyone else who may run into this. I think it was a Ubuntu libraries problem. After sudo apt-get install libxss1 to fix the ImportError, I got another one that was basically identical: ImportError: libEGL.so.1: cannot open shared object file: No such file or directory It took a little digging to find the right package this time, but I did sudo apt-get install libegl1-mesa, and Spyder worked after that! I’m using WSL 2 here, so I did have to fiddle with my X display settings, but that’s a different issue. Anyway, I hope this helps anyone who may come looking, and saves the Spyder developers from more work in explaining.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start spyder because of PyQt5.QtWebKitWidgets
QtWebEngineWidgets import QWebEnginePage ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets' During handling of the above ...
Read more >
No Module Named 'Pyqt5.Qtwebenginewidgets' - ADocLib
I recently installed Python and Spyder in my computer but Spyder doesn't start. What steps reproduce the problem? Download and Install Python 3.7.2;...
Read more >
spyder-ide/public - Gitter
Any higher version resulted in the same error: ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets' (raised in qtpy\QtWebEngineWidgets, Line 26).
Read more >
ImportError: No module named 'PyQt5.QtWebEngineWidgets'
I'm using a Miniconda distribution on Mac. I had to install both so that I could lunch Spyder pip install PyQtWebEngine pip install...
Read more >
[Example code]-ImportError: No module named 'keras'
django · Create a new environment with Anaconda and Python 3.5: conda create -n tensorflow python=3.5 anaconda · Activate the environment: activate tensorflow ......
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