You are not logged in.
Pages: 1
Hi everybody.
I'm getting problems starting spyder.
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/qtpy/__init__.py", line 204, in <module>
File "/usr/lib/python3.8/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 146, in _import
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/spyder", line 3, in <module>
File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 200, in main
File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 53, in <module>
File "/usr/lib/python3.8/site-packages/spyder/requirements.py", line 41, in check_qt
File "/usr/lib/python3.8/site-packages/qtpy/__init__.py", line 210, in <module>
qtpy.PythonQtError: No Qt bindings could be found
Can anyone working with spyder confirm that it runs well please?
spyder3 ran good, but was installed via pip -yes I know, a great mistake-. Dealing with it and trying to switch from pip to pacman I got in a little mess... but I think all is ok now. Anyway I've no idea how to test it.
Can someone help either about spyder's error or how to verify pip python's packages switched to pacman correctly?
Thanks
Last edited by HermesT (2020-12-03 17:29:23)
Offline
You need PyQt5, PyQt4, PySide2 or PySide installed in your system to make use of QtPy. If several of these packages are found, PyQt5 is used by default unless you set the QT_API environment variable.
Did you install at least one of those optional deps?
Offline
pyqt should be a hard dep for the Arch package.
If
pacman -Qo /usr/lib/python3.8/site-packages/* > /dev/null
gives you output you haven't properly undone the pip install.
Offline
Hi twelveeighty
Yes, I've been trying a lot of things before post here. As you can see I've installed (almost?) all packages related with python and pyqt or pyside after the spyder affair... maybe too many? :-/
Here is my output with pacman queries for pyqt and pyside and the only QT env. variable (irrelevant I think for this issue).
I even tried to install qt4 from AUR, with no success... But I' think this wouldn't solve nothing.
$ sudo pacman -Qs pyqt
local/eric 20.9-1
A full-featured Python and Ruby IDE in PyQt
local/pyqt-builder 1.5.0-1
The PEP 517 compliant PyQt build system
local/python-pyqt5 5.15.1-2 (pyqt5)
A set of Python bindings for the Qt5 toolkit
local/python-pyqt5-sip 12.8.1-1
The sip module support for PyQt5
local/python-pyqtchart 5.15.1-1 (pyqt5)
Python bindings for QtCharts
local/python-pyqtwebengine 5.15.1-2 (pyqt5)
Python bindings for QtWebEngine
local/python-pytest-qt 3.3.0-2
pytest support for PyQt and PySide applications
local/python-qtawesome 0.6.0-3
Iconic fonts in PyQt and PySide applications
local/python-qtpy 1.9.0-3
Provides an uniform layer to support PyQt5, PyQt4 and PySide with a single codebase
local/python-sip-pyqt4 4.19.24-1
Python 3.x SIP bindings for C and C++ libraries (PyQt4 version)
local/python2-pyqt5 5.15.1-1
A set of Python 2 bindings for the Qt5 toolkit
local/python2-pyqtwebengine 5.15.1-1
Python 2 bindings for QtWebEngine
local/python2-sip-pyqt4 4.19.24-1
Python 2.x SIP bindings for C and C++ libraries (PyQt4 version)
local/python2-sip-pyqt5 4.19.24-1
Python 2.x SIP bindings for C and C++ libraries (PyQt5 version)
$ sudo pacman -Qs pyside
local/pyside2 5.15.1-1 (qt qt5)
Enables the use of Qt5 APIs in Python applications
local/pyside2-tools 5.15.1-1
Tools for PySide2
local/python-pytest-qt 3.3.0-2
pytest support for PyQt and PySide applications
local/python-qtawesome 0.6.0-3
Iconic fonts in PyQt and PySide applications
local/python-qtpy 1.9.0-3
Provides an uniform layer to support PyQt5, PyQt4 and PySide with a single codebase
$ printenv | grep QT
QT_AUTO_SCREEN_SCALE_FACTOR=0
Thanks for your reply.
Offline
HiV1del.
No output, so I think no problem with undone pip install. Doesn't seem the problem.
Thanks for your reply.
Offline
Hi.
I've been checking spyder after every update, if it included any python package.
No luck until today, in a system update with huge presence of them and wich bring spyder to life again.
If anybody is interested in the whole list ask for it please.
Regards!
Offline
Pages: 1