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 3.1.4 fails to load due to missing PyQt5.QtWebKitWidgets

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

10reactions
ccordoba12commented, May 4, 2017

pyqt: 5.6.0-py27_0 conda-forge --> 5.6.0-py27_2

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

conda update qt pyqt -c conda-forge

should fix this problem.

2reactions
jamessongcommented, Jun 11, 2019

I found anaconda or whatever python packages are badly maintained …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start spyder because of PyQt5.QtWebKitWidgets
PyQt5 is installed with version 5.12. No clue why it doesn't work... EDIT: The full error message: Error msg. It sugggest that the...
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 >
Why is PyQt5 causing issues with Spyder? : r/Python - Reddit
In my experience, sometimes you just have a bad install of Qt or a partial install. Uninstall and reinstalling fixes it.
Read more >
Can't Start Spyder Because Of Pyqt5.Qtwebkitwidgets - ADocLib
Any higher version resulted in the same error: ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets' raised in qtpy\QtWebEngineWidgets Line 26. Download ...
Read more >
Errors in Anaconda after pip install pyqt5 (or conda update ...
I was trying to install pyqt5 using the command pip install pyqt5. it gave me an error saying something along the lines of...
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 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