-
-
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 crashes with Python 3.5 and pyqt4 if there are no existing configuration files #3009
Comments
it happen on OSX as well:
The patch provided fixed the error.
|
I managed to reproduce this on Linux. It seems to have something to do with sphinx. The following configuration is fine (meaning that spyder will start even when there are no existing configuration files):
However, if I uninstall sphinx then spyder crashes if started without configuration files. If sphinx is not installed, |
@jitseniesen, thanks for helping us to figure this problem out. Yes, Sphinx is now a required dependency of Spyder (not an optional one), so this is where this problem is coming from. The only optional dependencies are now: Matplotlib, Pandas, Numpy and Sympy. However, I'll do the required changes to avoid this ugly crash. |
Ok, so my solution was this: Now Spyder crashes in a very clear way if Sphinx can't be found. That should make clear to all our users that Sphinx is now a hard dependency :-) |
I'm using the master branch of Spyder. It seems some update broke the auto-completion of the editor so I deleted the configuration files in %HOME%/.spyder-py3. Then the spyder can not be launched.
The error is
AttributeError: 'NoneType' object has no attribute 'dockwidget'
and it occurs at several places in spyder\spyderlib\app\spyder.py
I did some dirty patch on the spyder.py, and it works. Then I reset the file to the origin file and it's still working. So I think the problem only occurs when there are no configuration files, i.e. %HOME%/.spyder-py3 .
What steps will reproduce the problem?
Please provide any additional information below
Since I'm not familiar with the source code of Spyder, I don't think it's a good idea to submit a pull request. Just FYI, the modification I have done is
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
jedi >=0.8.1;<0.9.0: 0.9.0 (NOK)
matplotlib >=1.0 : 1.5.0 (OK)
nbconvert >=4.0 : None (NOK)
numpy >=1.7 : 1.10.4 (OK)
pandas >=0.13.1 : 0.17.0 (OK)
pep8 >=0.6 : 1.6.2 (OK)
pyflakes >=0.6.0 : None (NOK)
pygments >=1.6 : 2.0.2 (OK)
pylint >=0.25 : 1.4.3 (OK)
qtconsole >=4.0 : 4.1.0 (OK)
rope >=0.9.4 : None (NOK)
sphinx >=0.6.6 : None (NOK)
sympy >=0.7.3 : 0.7.7.dev (OK)
By the way, the reason I'm using PyQt4 is because there are no PyQt5 available for Python 3.5 yet.
The text was updated successfully, but these errors were encountered: