spyder: spyder 3.1.4 fails to load due to missing PyQt5.QtWebKitWidgets
I have just updated through conda to the latest spyder 3.1.4, and received the latest failure:
(uvcdat280nox) duro@ocean:[160202_PaperPlots_SaltyVariability]:[5365]> Traceback (most recent call last):
File "/export/duro/anaconda2/envs/uvcdat280nox/bin/spyder", line 6, in <module>
sys.exit(spyder.app.start.main())
File "/export/duro/anaconda2/envs/uvcdat280nox/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/export/duro/anaconda2/envs/uvcdat280nox/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 92, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/export/duro/anaconda2/envs/uvcdat280nox/lib/python2.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ImportError: No module named QtWebKitWidgets
It seems that PyQt5 is installed:
(uvcdat280nox) duro@ocean:[160202_PaperPlots_SaltyVariability]:[5365]> ipython
Python 2.7.13 | packaged by conda-forge | (default, Mar 20 2017, 14:04:17)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import PyQt5
In [2]: dir(PyQt5)
Out[2]: ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']
Is there a badly defined dependency in the conda release, or a deprecation that has crept in? The # analysis:ignore comment above triggered this question
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 25 (11 by maintainers)
Conda forge packages are still a bit experimental. However, they should have support now for WebKitWidgets (as https://github.com/conda-forge/pyqt-feedstock/pull/23 proves). So a simple
should fix this problem.
I found anaconda or whatever python packages are badly maintained …
@CAM-Gerlach Thank you. After trying what you suggested and many others, I ended up solving this by:
conda install -c defaults pyqt=5 qtBefore, I think I was using eitherconda-forgeorspyder-ide. Now Spyder 3.3.1 works with Python 3.5 at least (I haven’t tried it on Python 2.7 yet.) Following is the full output.@ccordoba12 thanks, I can confirm that
Works for me