No module named 'PyQt5.QtWebEngineWidgets' with anaconda on spyder 4.13
See original GitHub issueProcedure: 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:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not issue with Spyder but with Anaconda. Please report it here:
https://github.com/ContinuumIO/anaconda-issues/issues/
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 theImportError
, 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 didsudo 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.