5.1.0 crashes with KeyError 'preferences'
See original GitHub issueProblem Description
Spyder won’t start due to a plugin KeyError. A spyder --reset
doesn’t solve the problem.
What steps reproduce the problem?
Start spyder 5.1.0 or git 48b9305.
What is the expected output? What do you see instead?
Spyder should start successfully. Instead, the following errors are shown.
Paste Traceback/Error Below (if applicable)
Traceback (most recent call last):
File "/home/USER/repos/spyder/spyder/app/utils.py", line 271, in create_window
main.setup()
File "/home/USER/repos/spyder/spyder/app/mainwindow.py", line 892, in setup
PLUGIN_REGISTRY.register_plugin(self, PluginClass,
File "/home/USER/repos/spyder/spyder/api/plugin_registration/registry.py", line 274, in register_plugin
instance = self._instantiate_spyder5_plugin(
File "/home/USER/repos/spyder/spyder/api/plugin_registration/registry.py", line 164, in _instantiate_spyder5_plugin
self._notify_plugin_dependencies(plugin_name)
File "/home/USER/repos/spyder/spyder/api/plugin_registration/registry.py", line 224, in _notify_plugin_dependencies
plugin_instance._on_plugin_available(plugin)
File "/home/USER/repos/spyder/spyder/api/plugin_registration/mixins.py", line 59, in _on_plugin_available
method()
File "/home/USER/repos/spyder/spyder/plugins/layout/plugin.py", line 142, in on_toolbar_available
before_action = self.get_action(
File "/home/USER/repos/spyder/spyder/api/widgets/mixins.py", line 506, in get_action
return ACTION_REGISTRY.get_reference(name, plugin, context)
File "/home/USER/repos/spyder/spyder/utils/registries.py", line 133, in get_reference
plugin_contexts = self.registry_map[plugin]
KeyError: 'preferences'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/USER/.local/bin/spyder", line 33, in <module>
sys.exit(load_entry_point('spyder', 'gui_scripts', 'spyder')())
File "/home/USER/repos/spyder/spyder/app/start.py", line 226, in main
mainwindow.main(options, args)
File "/home/USER/repos/spyder/spyder/app/mainwindow.py", line 2114, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File "/home/USER/repos/spyder/spyder/app/utils.py", line 273, in create_window
if main.console is not None:
File "/home/USER/repos/spyder/spyder/app/mainwindow.py", line 1109, in __getattr__
return self.get_plugin(self._INTERNAL_PLUGINS_MAPPING[attr])
File "/home/USER/repos/spyder/spyder/app/mainwindow.py", line 166, in get_plugin
raise SpyderAPIError(f'Plugin "{plugin_name}" not found!')
spyder.api.exceptions.SpyderAPIError: Plugin "internal_console" not found!
Versions
- Spyder version: 5.1.0 and git 48b9305
- Python version: 3.8.10
- Qt version: 5.12.10
- PyQt version: 5.12.3
- Operating System name/version: Ubuntu 20.04
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
snowflake Python Connection KeyError - Stack Overflow
But when I upload the script to aws glue and supply the wheel file, I encountered KeyError: 'snowflake-connector-python . Any idea?
Read more >Spyder changelog - Awesome Python | LibHunt
Prevent Spyder from crashing when selecting an interpreter with an ... Issue 16117 - 5.1.0 crashes with KeyError 'preferences' (PR 16130 by @ccordoba12)....
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
{10,12}: sysprof-modules crashes system when playing music" status:RESOLVED ... Bug:229335 - "sys-apps/portage: KeyError due to corruption in /var/db/pkg" ...
Read more >Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >Release History — Deadline 10.1.23.6 documentation
Fixed a python 3 compatibility issue that would cause V-Ray jobs to crash ... Improved the wording on the Import Settings page in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey eveyone, thanks for reporting. I’m taking a look at this problem and will try to release 5.1.1 with a fix for it as soon as possible.
Thanks for your patience.
Thanks for the confirmation @AndrewAmmerlaan!