-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spyder doesn't start - no module named 'PyQt5.QtWebEngineWidgets' #8952
Comments
Thanks for reporting. This is a duplicate of issue #8747 and it'll be fixed in our next version (3.3.4). For now you can run
to get the fix. |
Actually you need to uninstall it first: This solved it for me. |
I tried both approaches above:
But I still get the same errors. This happens with ALL of my environments, base and 2 other different virtual environments I have tried. It seems to be a bad system-wide reference.
|
By using pip to install PyQt5 you basically broke your Anaconda installation, so now you have to reinstall it. And please stick to the defaults packages (instead of using conda-forge) to see if that helps. |
pip3 install PyQtWebEngine |
I just download the python 3.8 and pip install pyqt5 and PyQtWebEngine still get this issue how to solve it? |
Is the issue related to this: https://stackoverflow.com/questions/37876987/cannot-import-qtwebkitwidgets-in-pyqt5 which would mean the version of pyqt5 getting installed is too new? It seems like everytime I try to use spyder from a conda environment I get this error and I have to recreate the environment and install a specific version for spyder to work. |
This worked for me. Ubuntu 19.10 x86_64 |
I got past the first couple of potholes by installing as follows in my Anaconda 2020.02 base environment with Spyder v4.0.1 and Python 3.7.6:
I used 5.12.1 because of requisites for PyQt5<5.13 and pqtwebengine<5.13 reported on my attempt to install the latest version. This brought me to the following error message:
At line 210, we have the following code: if API in PYSIDE_API:
try:
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
from PySide.QtCore import __version__ as QT_VERSION # analysis:ignore
PYQT_VERSION = None
PYQT5 = PYSIDE2 = False
PYSIDE = True
except ImportError:
raise PythonQtError('No Qt bindings could be found') The PySide 1.2.4 module is not compatible with Python version 3.7 (only up to 3.4), and installing PySide2 5.12.1 module does not resolve the binding issue, presumably because it would have to import PySide2, not PySide. |
Thus, what is the installation to follow with conda? |
First uninstall both PyQt5 and pyqtwebengine |
First uninstall both PyQt5 and pyqtwebengine |
I keep having the same issue on WSL2 with latest anaconda3, a fresh environment, and the latest spyder version. when I follow the suggested
Based on this error msg I tried Any suggestions? |
Same here, a very annoying bug. Installing older versions of PyQt5 doesn't help either. |
pip uninstall PyQt5 pip install PyQt5==5.12.1 pyqtwebengine==5.12.1 I tries above things. But I faild. and I see the next error.Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@withover try install libgl1-mesa-glx - https://unix.stackexchange.com/questions/486741/libgl-errors-when-starting-x-applications-via-ssh |
I don't have issue with my conda based env but I have for some application I have to install from pypi. Has anyone managed to fix this through pip install? |
This comment was marked as resolved.
This comment was marked as resolved.
Thank you! It works to me |
This solved the issue for spyder 5.2.2 |
My system:conda: v4.13.0
@ccordoba12 @systems-apatrick @JyotirmaySahu @jyk4100 Issue & (temporary) fix:Yes. I had all the aforementioned troubles when I installed (in my virtual environment) the latest spyder (v5.3.2) with Short synopsis:The problem seems to be with |
I had the same problem except this time with spyder 5.2.2. After some tinkering I ended up with the identical command and now it works! This was all because the input() command wasn't working on an old version.. :) |
I was having similar problems while running spyder as GUI from Windows WSL. sudo apt-get install libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libxtst-dev libxss-dev libdbus-1-dev libevent-dev libfontconfig1-dev libcap-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libegl1-mesa-dev gperf bison nodejs |
I had the same problem while running spyder as GUI from Windows WSL. pip list PyQt5 5.15.7 Spyder doesn't start - no module named 'PyQt5.QtWebEngineWidgets'Changing the pyqt5 versions by /uninstall new version /install old version: pip uninstall PyQt5 pip uninstall PyQtWebEngine pip install pyqt5==5.12.3 pip install sip==5.0.0 pip install pyqt5==5.12.3 tools pip install PyQtWebEngine==5.12.3 pip check pip list Python 3.10.8 64-bit | Qt 5.12.10 | PyQt5 5.12.3 | Linux 5.15.68.1-microsoft-standard-WSL2 | ================================== and now spyder run good. |
Same here on Ubuntu 22.04 |
On Linux Mint 21.2 (based on Ubuntu 22.04), I had to install the following additional packages: |
Problem Description
I recently installed Python and Spyder in my computer, but Spyder doesn't start.
What steps reproduce the problem?
pip install spyder
python
import spyder; spyder.app.start.main()
What is the expected output? What do you see instead?
Expected opening the GUI, but error occurred.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
Solution
I managed to fix it, by installing an older version of PyQt5, following this discussion on Stack Overflow: https://stackoverflow.com/questions/51154871/python-3-7-0-no-module-named-pyqt5-qtwebenginewidgets
pip install PyQt5==5.10
The text was updated successfully, but these errors were encountered: