I am trying to start Spyder from Anaconda on a Win10, but get the error below. As a result, Spyder does not launch. The same error arises if I try to launch Spyder from the terminal.
Any ideas on the cause of the error and/or how to solve it? There have been similar questions in the past but the errors were different, that's why I am reposting.
Versions: Spyder - 3.3.6 Anaconda - 1.9.7 Python - 3.7.4
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 186, in main
from spyder.app import mainwindow
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 90, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ValueError: PyCapsule_GetPointer called with incorrect name
Related
Trying to Launch Spyder from Anaconda and keep getting error:
Traceback (most recent call last):
File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/qtpy/QtWebEngineWidgets.py", line 21, 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 "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/bin/spyder", line 11, in
sys.exit(main())
File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/spyder/app/start.py", line 233, in main
from spyder.app import mainwindow
File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/spyder/app/mainwindow.py", line 59, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/qtpy/QtWebEngineWidgets.py", line 27, in
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
On anaconda prompt, do the following
conda uninstall -c anaconda spyder
conda install -c anaconda spyder
try it, this worked for me
Had the same issue on my Mac M1. Ultimately it worked as per Daniel Althviz comment. Go to Anaconda -> Environments -> 'Not installed', search for pyqtwebengine select it and click apply in the right bottom corner.
Spyder crashes in Manjaro KDE with the following error:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/qtpy/__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/spyder3", line 3, in <module>
start.main()
File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 200, in main
from spyder.app import mainwindow
File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 54, in <module>
requirements.check_qt()
File "/usr/lib/python3.8/site-packages/spyder/requirements.py", line 41, in check_qt
import qtpy
File "/usr/lib/python3.8/site-packages/qtpy/__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
PyQt5 and PySide are already installed and I still get the error. I already tried installing other spyder versions in pamac and pip but got the same error.
Thank you in advance for the help.
Looks like the python that is being used isn't the one from anaconda:
File "/usr/lib/python3.8/site-packages/qtpy/__init__.py"
Try doing the following:
Inside your terminal write:
// this will deactivate the base environment
// you will need to: "conda reactivate" later to use spyder again
conda deactivate
then do:
pip install PyQt5 PySide
then:
conda activate
spyder
I tried to update my Spyder with terminal by conda update qt pyqt
but I tried both ways, through this command and through pip. Do you know how to wipe off entire anaconda config and the app itself?
*Whenever I try to open spyder, this message keeps appearing
objc[9494]: Class RunLoopModeTracker is implemented in both /anaconda3/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x10c490270) and /anaconda3/lib/libQt5Core.5.dylib (0x10f143a80). One of the two will be used. Which one is undefined.
Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 11, in
sys.exit(main())
File "/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 90, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ValueError: PyCapsule_GetPointer called with incorrect name
I am trying to start Spyder from Anaconda on a Mac, but get the error below. As a result, Spyder does not launch. The same error arises if I try to launch Spyder from the terminal.
Any ideas on the cause of the error and/or how to solve it? There have been similar questions in the past but the errors were different, that's why I am reposting.
Versions:
Spyder - 3.2.8
Anaconda - 1.8.3
Python - 3.6.5
Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 7, in
from spyder.app.start import main
File "/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 27, in
from spyder.config.main import CONF
File "/anaconda3/lib/python3.6/site-packages/spyder/config/main.py", line 22, in
from spyder.config.user import UserConfig
File "/anaconda3/lib/python3.6/site-packages/spyder/config/user.py", line 26, in
from spyder.utils.programs import check_version
File "/anaconda3/lib/python3.6/site-packages/spyder/utils/programs.py", line 18, in
import subprocess
File "/anaconda3/lib/python3.6/subprocess.py", line 136, in
import _posixsubprocess
ImportError: dlopen(/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so, 2): Symbol not found: __Py_set_inheritable_async_safe
Referenced from: /anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
Expected in: flat namespace
in /anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
you might have to downgrad python to 3.6.4.
or:
run this command:
conda update python python.app
I am installing Python 2 via Anaconda 4.4.0 on Ubuntu 16.04 and I am trying to use spyder as my IDE.
When I first load spyder, I get the following error:
Traceback (most recent call last):
File "/home/pearlman/anaconda2/bin/spyder", line 6, in <module>
sys.exit(spyder.app.start.main())
File "/home/pearlman/anaconda2/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/home/pearlman/anaconda2/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 92, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/home/pearlman/anaconda2/lib/python2.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ImportError: /home/pearlman/anaconda2/lib/python2.7/site-packages/numexpr/../../../libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.55)
This error is solved by either copying the /usr/lib/x86_64-linux-gnu/libstdc++.so.6 library to ~/anaconda2/lib, or by running conda update libgcc.
After this is completed, when I run spyder, I get a Segmentation Fault. Does anyone have any ideas what the issue might be here?