KeyError self.editor_ids[self.current_editor]
See original GitHub issue@bnavigator , it actually looks like your first error is
editor_id = self.editor_ids[self.current_editor]
KeyError: <spyder.plugins.outlineexplorer.editor.OutlineExplorerProxyEditor object at 0x7f0efd7ea280>
which means that self.current_editor
returns an OutlineExplorerProxyEditor
object instead of a string object. Could this be related to PyQt5 >= 5.13?
_Originally posted by @mrclary in https://github.com/spyder-ide/spyder/issues/14803#issuecomment-846075484_
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
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 >How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >Key Error Running Python Script (Using Atom) - Stack Overflow
I'm using Atom text editor plus the Hydrogen module to run said code. I am getting KeyError: '203' when I run the following...
Read more >What is KeyError in Python? Dictionary and Handling Them
This article will provide you with a detailed and comprehensive knowledge of how to resolve KeyError in Python in Dictionary.
Read more >KeyError Pandas – How To Fix - Data Independent
Pandas KeyError - This annoying error means that Pandas can not find your ... _getitem_multilevel(key) -> 2899 indexer = self.columns.get_loc(key) 2900 if ...
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
I inserted some print statements at line 412 and ran bootstrap from a pyenv environment with PyQt5=5.15.4
with the following results
That was upon startup. I was incorrect about my assumption that it was looking for a string object. It appears that the dictionary is using unique objects as keys. Nevertheless, upon switching projects once, no prints are encountered, so
go_to_cursor_position
is not accessed. Upon switching back to the orignal project, again no prints are encountered, but I get the error reported in #14803Can you run with some print statements to see under what circumstances there is a KeyError?
I cannot reproduce the error anymore. None of the listed direct dependencies changed from https://github.com/spyder-ide/spyder/issues/15668#issuecomment-846589975 to now.
Notable changes which could be related:
That currently pulls in 538 MB of unnecessary, duplicate and outdated stuff. Most notably a complete set of precompiled Qt libraries, which don’t work well in parallel with an already loaded system Qt.