-
-
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 not installing the PyQt5 wheel when using pip #3242
Comments
I see that you don't have PyQt nor PySide installed, maybe that's the reason why ? It should throw an exception however. |
@Nodd yes, the absence of Qt binding is most likely the reason, but I expect it to react to command line options or show exception. |
Seems to be an issue with setuptools launcher https://bitbucket.org/vinay.sajip/simple_launcher/issues/2/launcher-ignores-command-line-arguments In the meanwhile I was able to get stacktrace about missing bindings with
|
I fixed PySide error with the patch below, but it crashes as soon as I click Preferences. diff --git a/spyderlib/requirements.py b/spyderlib/requirements.py
index d48b56d..c81ecb1 100644
--- a/spyderlib/requirements.py
+++ b/spyderlib/requirements.py
@@ -35,7 +35,7 @@ def check_path():
def check_qt():
"""Check Qt binding requirements"""
- qt_infos = dict(pyqt5=("PyQt5", "5.2"), pyqt=("PyQt4", "4.6"))
+ qt_infos = dict(pyqt5=("PyQt5", "5.2"), pyqt=("PyQt4", "4.6"), pyside=("PySide", "1.2.4"))
try:
import qtpy
package_name, required_ver = qt_infos[qtpy.API] Need to find out the way to install PyQt4 into virtualenv. |
The problem with PySide and peferences is reported in #2567. I think we'd accept a PR with your modifications to run with pyside. @ccordoba12 ? |
We could make our wheel to install the PyQt5 one, although it's semi-broken on Linux and Windows (WebEngine is not working), and it's only available for Python 3.5. @stonebig, would you be ok with that? About PySide: I won't reactivate support for it until I see a fully committed effort to fix all its bugs. So far I've only seen good intentions :-) |
hi @ccordoba12 I'm not sure of what you mean, but in any solution that would make Spyder/Webengine/PyQt5/Python3.5/Windows combination work is welcomed. Otherwise, I will hope for a miracle with PyQt5.6.1 Detkev of "Eric" doesn't seem to complain, but his inner knowledge of PyQt5 may allow him to workaround anything https://www.riverbankcomputing.com/pipermail/pyqt/2016-June/037665.html |
If your employee agrees to sponsor this work too, I guess I can find some people. But it will be more beneficial for scientific community if PySide was just marked as "unsupported" to let people move with the progress in their free time. |
@ccordoba12 That will force the user to use PyQt5, while he may have PyQt4 already installed. Is it possible to add a warning in setup.py, stating that it needs a qt backend to run ? |
Description of your problem
There are two problems.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected to see help, but nothing happens at all.
Please provide any additional information below
Versions and main components
Dependencies
Doesn't start to get those.
pip freeze
The text was updated successfully, but these errors were encountered: