What steps will reproduce the problem?
When starting Spyder the splash screen will pop up and make variable amounts of progress then close but the application itself doesn't open.
If I try to open Spyder again I get the "Spyder crashed during last session." popup warning.
I then reset to defaults by running Spyder with the command line option 'spyder --reset
Thee splash screen image pops up for a sec disappears and then nothing happens
I try to open Spyder again and end up at step 1 again.
What is the expected output? What do you see instead?
The expected outcome is for the main window to load instead I just get the splash screen to pop up for a minute.
Please provide any additional information below
If i try running spyder again using the command prompt 'spyder --show-console'
I get the following error
AttributeError: 'QHeaderView' object has no attribute 'setSectionsClickable'
I have tried restarting my desktop and I have tried uninstalling and reinstalling spydering using the anaconda prompt 'conda uinstall spyder' and 'conda install spyder' to no avail
The last time the main window was open it crashed with a kernel error in the console as soon as it opened
Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:
@mwhaap Thank you very much for the well written and complete bug report.
@andfoy I think the error originates in the find in files module here. The setClickable method in QHeaderView has been replaced in Qt4 by setSectionsClickable in Qt5.
So something is not working as expected in his qtpy to patch this in qheaderview. Maybe he is using a version of qtpy that is too old?
Sorry for all that noise :slightly_frowning_face: , I've kind of understood too late this was more of a dependency issue than a bug.
@ccordoba12 I think we need to increase the version of qtpy in the requirements from 1.1.0 to at least 1.2.0 where a patch was introduced for the QHeaderView class in qtpy.
I tried switching from pyqt4 to pyqt5 and it fixed the problem, however I need to use pyqt4 instead of 5 for compatibility with libraries such as Traits UI. Going back to Spyder version 3.1.0 and it worked so somthing thats been added to spyder since then is the source of the problem when running qt4
@mwhaap, please update qtpy to fix this problem, as @jnsebgosselin suggested.
Ok thanks for the quick help
Going back to Spyder version 3.1.0 and it worked so somthing thats been added to spyder since then is the source of the problem when running qt4
@mwhaap You are right, this bug was introduced in version 3.2.0 in this commit.
Updating your qtpy version to at least 1.2.0 should solve the issue.
@dalthviz, please work on this one. We need to update our qtpy requirement in setup.py, README, docs and our conda recipe.