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

in macOS Mojave v 10.14.4 I launch spyder from terminal #9132

Closed
fallucchi opened this issue Apr 8, 2019 · 7 comments
Closed

in macOS Mojave v 10.14.4 I launch spyder from terminal #9132

fallucchi opened this issue Apr 8, 2019 · 7 comments

Comments

@fallucchi
Copy link

$ spyder
Traceback (most recent call last):
File "/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 11, in
sys.exit(main())
File "/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 90, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

@ccordoba12
Copy link
Member

Did you use pip to install/update Spyder?

@fallucchi
Copy link
Author

fallucchi commented Apr 8, 2019

I try in different way in accord with all the posts and all your suggestions for these problems with spyder. But I haven't had the spyder working in anaconda3 for 4 days. Can you help me?

@ccordoba12
Copy link
Member

I try in different way in accord with all the posts and all your suggestions for these problems with spyder.

Please remove and reinstall Anaconda again. Most probably one of the commands you used corrupted your installation and that's why you're getting that error.

@VicPariah
Copy link

VicPariah commented Apr 8, 2019

@ccordoba12 Please forgive me, but what exactly do you refer to when you said "corruption?"

Things I'm aware of:

-QTWebEngine is no longer a part of PyQt5, and is now its own package
-This problem was addressed in the latest version of Spyder, but not the one before that (hence it was broken in the previous version if you had updated your PyQt5)
-The problem itself refers to only modules resting in site-packages

So, is what's corrupted probably in site-packages or the spyder library?

EDIT 1/2: if I had to make a guess, maybe this problem has to do with referencing PyQt5.QtWebEngineWidgets as opposed to simply QtWebEngineWidgets?

Edit 2/2: Here's the kind of information I gathered from my home installation: #8868 (comment)

@ccordoba12
Copy link
Member

-QTWebEngine is no longer a part of PyQt5, and is now its own package

Exactly to this statement: the conda and pip packages for PyQt5 are incompatible (so you can't mix them), and this problem only happens with the pip packages. According to the initial traceback, @fraPython is using Anaconda and not pip.

EDIT 1/2: if I had to make a guess, maybe this problem has to do with referencing PyQt5.QtWebEngineWidgets as opposed to simply QtWebEngineWidgets?

No, that's not true. Things are working perfectly fine with pip (because we run all our tests by installing everything with it), as long as you use it properly.

@fallucchi
Copy link
Author

I reinstall anaconda but the problem with spyder persists.

@ccordoba12
Copy link
Member

Please post your problem in our Gitter channel:

https://gitter.im/spyder-ide/public

You'll receive help there.

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