I'm having the next issue when I try to launch Spyder:
$spyder
Traceback (most recent call last):
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libXss.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/luisquii/anaconda3/bin/spyder", line 11, in <module>
sys.exit(main())
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/home/luisquii/anaconda3/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
I'm running it on Windows Subsystem For Linux terminal.
Even if I run it like:
$ anaconda-navigator
and then click "Launch" in the Anaconda interface I got the same error message in a textbox.
Do you know how to fix this issue?
If you need any extra information I can provide it.
Solved by:
sudo apt-get install libxss1
I was getting the same error.
I got Spyder to work on Windows Subsystem for Linux through a clean reinstall of Anaconda3 followed by:
sudo apt-get install libxtst6
sudo updatedb
sudo apt-get install libasound2-plugins
make sure you have xming installed
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.
I get this issue when trying to run spyder
C:\ProgramData\Anaconda3\Scripts>spyder
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 178, in main
from spyder.app import mainwindow
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "C:\ProgramData\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
I have tried https://www.programmersought.com/article/80564836035/ of pip installing PyQtWebEngine and uninstalling PyQt5-stubs
I don't use Spyder, but I ran into this issue and managed to solve it somehow.
I had installed PyQtWebEngine like this: pip install PyQtWebEngine. However, this did not cause the proper Python39\Lib\site-packages\PyQt5\Qt5\bin\Qt5WebEngine.dll file to be created.
The solution:
pip uninstall PyQtWebEngine
pip uninstall PyQtWebEngine-qt5
pip install PyQtWebEngine-qt5
pip install PyQtWebEngine
While the prerequisite that installs the Qt5 tooling does end up installed, it is somehow messed up. Install it manually first ensured everything got placed where it was supposed to be.
I successfully installed Anaconda3 on my Windows 10 laptop but when I try to launch Navigator (or any other Anaconda app) it doesn't start. When typing anaconda-navigator on Anaconda Prompt this is the error I get
Traceback (most recent call last):
File "C:\Users\myuser\anaconda3\lib\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 "C:\Users\myuser\anaconda3\Scripts\anaconda-navigator-script.py", line 6, in <module>
from anaconda_navigator.app.main import main
File "C:\Users\myuser\anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 22, in <module>
from anaconda_navigator.utils.conda import is_conda_available
File "C:\Users\myuser\anaconda3\lib\site-packages\anaconda_navigator\utils\__init__.py", line 15, in <module>
from qtpy.QtGui import QIcon
File "C:\Users\myuser\anaconda3\lib\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
I tried to uninstall and reinstall it several times but nothing changed. I already tried conda update conda and conda update navigator but the problem still persists. I also tried to install Anaconda2 and it worked perfectly fine, so how can I make Anaconda3 work?
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 am running Linux Mint 18.1 and python 3.6.
I would like to install idle3.6 but after installing this package
i get the following error :
Traceback (most recent call last):
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 4, in
<module>
from tkinter import *
File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in
<module>
import _tkinter # If this fails your Python may not be configured for
Tk
ModuleNotFoundError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/idle3.6", line 3, in <module>
from idlelib.pyshell import main
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 7, in
<module>
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
NameError: name 'sys' is not defined
what i understand is that i need to install the tkinter package.
what i have tried so far is this command:
sudo apt-get install python3-tk
but it i still get the above error.
which command should i use to install tkinter for python 3.6?
Here is a Linux Mint IDLE version: https://community.linuxmint.com/software/view/idle-python3.5, since you are using Linux Mint. There's not yet a idle-python3.6 version.