Échec ouverture de Spyder dans WSL
Dans WSL, après avoir installé spyder dans un nouvel environnement conda test-pyder
avec la commande conda install spyder
et avoir lancé le serveur X pour windows VcXsrv (installé au préalable), on a l'erreur suivante :
(test-spyder) daxid@WinDev2004Eval:~$ spyder
Traceback (most recent call last): File "/home/daxid/anaconda3/envs/test-spyder/lib/python3.8/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libXcursor.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/daxid/anaconda3/envs/test-spyder/bin/spyder", line 11, in <module>
sys.exit(main())
File "/home/daxid/anaconda3/envs/test-spyder/lib/python3.8/site-packages/spyder/app/start.py", line 201, in main
from spyder.app import mainwindow
File "/home/daxid/anaconda3/envs/test-spyder/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 84, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/home/daxid/anaconda3/envs/test-spyder/lib/python3.8/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module> from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
(test-spyder) daxid@WinDev2004Eval:~$
Edited by David Rouquet