These are chat archives for spyder-ide/public

Mar 2016
Dave Hirschfeld
Mar 15 2016 01:06
I thought I'd try spyder with the Qt5 package from the m-labs conda channel but get the below error when running
λ python
Executing Spyder from source checkout
Revision 90ab905, Branch: master
01. Patched sys.path with C:\dev\spyder
02. PyQt5 is detected, selecting
03. Imported Spyder 3.0.0dev
    [Python 3.5.1 64bits, Qt 5.5.1, PyQt5 5.5.1 on Windows]
0x. Enforcing parent console (Windows only)
04. Running Spyder
Bootstrap completed in 00:00:09.2939
Traceback (most recent call last):
  File "C:\dev\spyder\spyderlib\app\", line 3130, in main
    mainwindow = run_spyder(app, options, args)
  File "C:\dev\spyder\spyderlib\app\", line 3016, in run_spyder
  File "C:\dev\spyder\spyderlib\app\", line 840, in setup
    from import Help
  File "C:\dev\spyder\spyderlib\plugins\", line 14, in <module>
    from spyderlib.qt.QtWebKit import QWebPage
  File "C:\dev\spyder\spyderlib\qt\", line 10, in <module>
    from PyQt5.QtWebKitWidgets import QWebPage, QWebView      # analysis:ignore
ImportError: No module named 'PyQt5.QtWebKitWidgets'
Is spyder supposed to work with PyQt5 (on Windows)? Any idea what's wrong?
λ python
Python 3.5.1 |Continuum Analytics, Inc.| (default, Jan 29 2016, 15:01:46) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5
>>> import PyQt5.QtWebKitWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt5.QtWebKitWidgets'
>>> dir(PyQt5)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
Carlos Cordoba
Mar 15 2016 04:14
@dhirschfeld, the m-labs conda package was not compiled with QtWebkit support, so that breaks several Spyder plugins, starting with the Help one
We're using it right now to test our widgets that don't have web components (which are almost all of them)
In the meant time you can use WinPython to test Spyder with Qt5 ;-)
Dave Hirschfeld
Mar 15 2016 04:24
Fair enough - I saw you add it for the testing so I thought I'd give it a go. I use anaconda so will wait until it's available as a supported conda package...