spyder: Crashes when trying to access Preferences after adding custom color schemes
Description
What steps will reproduce the problem?
- Open Spyder application
- Click on Python > Preferences… (⌘,)
What is the expected output? What do you see instead?
Opens the preferences panel.
Please provide any additional information below
Please note: I saved a few custom color themes and noticed that it was starting to bug-out… That’s it. I have a very vanilla Spyder environment.
File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/app/mainwindow.py”, line 2609, in edit_preferences widget.initialize() File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/plugins/configdialog.py”, line 76, in initialize self.setup_page() File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/plugins/configdialog.py”, line 1175, in setup_page self.scheme_editor_dialog.add_color_scheme_stack(name, custom=True) File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/plugins/configdialog.py”, line 1502, in add_color_scheme_stack value = self.parent.get_option(option) File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/plugins/configdialog.py”, line 55, in get_option return CONF.get(self.CONF_SECTION, option, default) File “/Users/michaelloewen/anaconda/lib/python3.6/site-packages/spyder/config/user.py”, line 378, in get raise cp.NoOptionError(option, section) configparser.NoOptionError: No option ‘custom-0/normal’ in section: ‘color_schemes’
Version and main components
- Spyder Version: 3.2.4
- Python Version: 3.6.3
- Qt Versions: 5.6.2, PyQt5 5.6 on Darwin
Dependencies
pyflakes >=0.6.0 : 1.6.0 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pygments >=2.0 : 2.2.0 (OK)
pandas >=0.13.1 : 0.20.3 (OK)
numpy >=1.7 : 1.13.3 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
rope >=0.9.4 : 0.10.5 (OK)
jedi >=0.9.0 : 0.10.2 (OK)
psutil >=0.3 : 5.4.0 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
cython >=0.21 : 0.26.1 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
IPython >=4.0 : 6.1.0 (OK)
pylint >=0.25 : 1.7.4 (OK)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (13 by maintainers)
Thanks @SuperZing !
Here’s a quick and easy method to fix this bug and not restart
0. Close Anaconda and Spyder 1. In user search for spyder.ini, backup in case and edit the original. 2. Find color_schemes then custom_names, it will look like this “custom_names = [‘custom-0’, ‘custom-1’, ‘custom-3’]”, delete the custom causing the error. 3. Still wont work, delete the error custom from custom_names