-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder is failing because of wrong qtpy version #3230
Comments
You need to update qtpy. @spyder-ide/core-developers We should maybe show qtpy version in the dependencies list ? |
I see, it is a QtPy version issue not a Qt version issue. I confirm that |
You're right, the documentation is lacking. The switch to QtPy 1.0.2 is very recent and not everything has been updated. |
I don't think it's worth it. Without the right
It'd take too much time because we have a lot of them. We can check just the |
Please, fix the check_qt() function in /usr/lib/python3.5/site-packages/spyderlib/requirements.py This function has this problem: $ /usr/bin/python3.5 /usr/bin/spyder3 But I already installed PyQt5 and qtpy: $ sudo python -m pip install --upgrade PyQt5 $ sudo python -m pip install --upgrade qtpy (also python-qtpy-git python2-qtpy-git) I put a "return True" in this check_qt() and Spyder3 opened OK, but the console and ipython won't work, so the problem is this check_qt function, that found (found v1.1.0.dev0). This function is confusing: PyQt5 (5.6) with QtPy (1.1.0.dev0) My PIP List: http://paste.debian.net/739884/ |
I changed line 38 (requirements.py): from: qt_infos = dict(pyqt5=("PyQt5", "5.2"), pyqt=("PyQt4", "4.6")) After error: not find or load the Qt platform plugin "xcb". I did: "export QT_QPA_PLATFORM_PLUGIN_PATH='/usr/lib/qt/plugins/platforms'" But still with error: This application failed to start because it could not find or load the Qt platform plugin "xcb" Available platform plugins are: wayland-org.kde.kwin.qpa (from /usr/lib/qt/plugins/platforms), eglfs (from /usr/lib/qt/plugins/platforms), linuxfb (from /usr/lib/qt/plugins/platforms), minimal (from /usr/lib/qt/plugins/platforms), minimalegl (from /usr/lib/qt/plugins/platforms), offscreen (from /usr/lib/qt/plugins/platforms), wayland-egl (from /usr/lib/qt/plugins/platforms), wayland (from /usr/lib/qt/plugins/platforms), xcb (from /usr/lib/qt/plugins/platforms), eglfs, linuxfb, minimal, minimalegl, offscreen, xcb. Reinstalling the application may fix this problem. $ ls -lha /usr/lib/qt/plugins/platforms |
@JohnRobson, thanks for reporting your problems. My answers:
This error is caused because you're using
I don't know what distro you're using, but (I almost sure) you need to install http://packages.ubuntu.com/trusty/libxcb1 By the way, the PyQt5 wheel is working fine for me with that package installed :-) |
I solved this removing all PyQt4 and PyQt5 installed with "pip" and installing directly from archlinux aur packages "python-pyqt4 python-pyqt5 python2-pyqt4 python2-pyqt5".
This one still wrong. For now Spyder 2.3.9 is awesome... I excited to see a stable version for Spyder 3. |
I had an issue that seems to match what happened here |
bootstrap.py
no longer works on my system on current master.What steps will reproduce the problem?
python bootstrap.py
What is the expected output? What do you see instead?
Please provide any additional information below
The problem appears to have started with commit 4b21e1e ; after checking out the immediately prior commit I can load spyder again. Are you now relying on parts of Qt that are not in older versions? Has support for Qt 4.6+ been dropped entirely? The README still mentions it...
Versions and main components
Python 2.7.6 64bits, Qt 4.8.6, PyQt4 (API v2) 4.10.4 on Linux
Dependencies
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0: 1.5.1+1643.g0423430 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.12.0.dev0+2af06c8 (OK)
pandas >=0.13.1 : 0.18.0+104.g1c8816f (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 1.2.1 (OK)
pyflakes >=0.5.0: 1.1.0 (OK)
pygments >=1.6 : 2.1.3 (OK)
pylint >=0.25 : 1.5.5 (OK)
qtconsole >=4.0 : 4.2.1 (OK)
rope >=0.9.4 : 0.10.3 (OK)
sphinx >=0.6.6 : 1.5a0 (OK)
sympy >=0.7.3 : None (NOK)
The text was updated successfully, but these errors were encountered: