Skip to content
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 work with QtWebEngine #3073

Closed
TPeterW opened this issue Mar 21, 2016 · 5 comments
Closed

Spyder doesn't work with QtWebEngine #3073

TPeterW opened this issue Mar 21, 2016 · 5 comments

Comments

@TPeterW
Copy link

TPeterW commented Mar 21, 2016

Description of your problem

I tried to launch spyder 3.0.0 beta2 from command line with qt5 installed from homebrew, sip and pyqt5 install from source code and spyder preview installed from pip, when I launched it, the error log said

Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/spyderlib/spyder.py", line 3119, in main
mainwindow = run_spyder(app, options, args)
File "/usr/local/lib/python3.5/site-packages/spyderlib/spyder.py", line 3005, in run_spyder
main.setup()
File "/usr/local/lib/python3.5/site-packages/spyderlib/spyder.py", line 822, in setup
message=_("Spyder Internal Console\n\n"
File "/usr/local/lib/python3.5/site-packages/spyderlib/plugins/console.py", line 79, in init
self.find_widget.set_editor(self.shell)
File "/usr/local/lib/python3.5/site-packages/spyderlib/widgets/findreplace.py", line 250, in set_editor
from spyderlib.qt.QtWebKit import QWebView
File "/usr/local/lib/python3.5/site-packages/spyderlib/qt/QtWebKit.py", line 10, in
from PyQt5.QtWebKitWidgets import QWebPage, QWebView # analysis:ignore
ImportError: dlopen(/usr/local/lib/python3.5/site-packages/PyQt5/QtWebKitWidgets.so, 2): Library not loaded: /usr/local/opt/qt5/lib/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets
Referenced from: /usr/local/lib/python3.5/site-packages/PyQt5/QtWebKitWidgets.so
Reason: image not found

  • Spyder Version: 3.0.0 beta2
  • Python Version: 3.5.1
  • Operating system: OS X 10.11 El Cap
@ccordoba12 ccordoba12 added this to the v3.0beta3 milestone Mar 21, 2016
@ccordoba12
Copy link
Member

This is probably caused because the latest Qt5 version (5.6) deprecated the QtWebKit module in favor of QtWebEngine.

This problem will be fixed in beta3.

@TPeterW
Copy link
Author

TPeterW commented Mar 21, 2016

Yeah, it worked again when I downgraded qt5 back to 5.5.1-2

@ccordoba12 ccordoba12 modified the milestones: v3.0beta4, v3.0beta3 Mar 23, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0beta3, v3.0beta4 May 13, 2016
@ccordoba12 ccordoba12 changed the title Missing QtWebKitWidgets thus cannot launch Spyder doesn't work with QtWebEngine Jun 2, 2016
@ccordoba12 ccordoba12 mentioned this issue Jun 2, 2016
2 tasks
@raysalemi
Copy link

I'm seeing this issue today.

I ran the following commands

 %  conda update qt pyqt
 %  conda install -c spyder-ide spyder=3.0.0b3
 %  spyder

Get this result:

  Traceback (most recent call last):
  File "/Users/raysalemi/anaconda/bin/spyder", line 3, in <module>
   start.main()
 File "/Users/raysalemi/anaconda/lib/python2.7/site-packages/spyderlib/app/start.py", line 118, in main
from spyderlib.app import spyder
 File "/Users/raysalemi/anaconda/lib/python2.7/site-packages/spyderlib/app/spyder.py", line 91, in    <module>
   from qtpy import QtWebEngineWidgets
 File "/Users/raysalemi/anaconda/lib/python2.7/site-packages/qtpy/QtWebEngineWidgets.py", line 32, in <module>
   from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
 ImportError: dlopen(/Users/raysalemi/anaconda/lib/python2.7/site-packages/PyQt5/QtWebKitWidgets.so, 2): Library not loaded: @rpath/./libQt5WebKitWidgets.5.dylib
 Referenced from: /Users/raysalemi/anaconda/lib/python2.7/site-packages/PyQt5/QtWebKitWidgets.so
 Reason: image not found

It looks like this bug may still exist.

@ccordoba12
Copy link
Member

This is caused by another problem. We're discussing about it in #3267.

@raysalemi
Copy link

Thanks for the pointer. I'm over there now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants