You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
What steps reproduce the problem?
Clicked on a file from the project list to open it
The file opens but the issue reporter window pops up
What is the expected output? What do you see instead?
Following what the error message said I realized that the problem occurred when doing get_conf('bookmarks', default={}), because it returned None. Maybe my spyder.ini file got somehow corrupted and that section was not found.
So then, when the load_bookmarks function is called, slots is None and it results in the error saying NoneType has no attribute keys
To fix it, I clicked on the reset to defaults option inside the preferences page. That generated a new config file and the error stoped occuring.
Paste Traceback/Error Below (if applicable)
Traceback (most recent call last):
File "c:\users\angela\spyder\spyder\plugins\editor\plugin.py", line 2105, in save_bookmarks
new_slots = update_bookmarks(filename, bookmarks, old_slots)
File "c:\users\angela\spyder\spyder\plugins\editor\utils\bookmarks.py", line 55, in update_bookmarks
updated_slots = load_bookmarks_without_file(filename, old_slots)
File "c:\users\angela\spyder\spyder\plugins\editor\utils\bookmarks.py", line 30, in load_bookmarks_without_file
bookmarks = _load_all_bookmarks(slots)
File "c:\users\angela\spyder\spyder\plugins\editor\utils\bookmarks.py", line 16, in _load_all_bookmarksfor slot_num inlist(slots.keys()):
AttributeError: 'NoneType' object has no attribute 'keys'
Traceback (most recent call last):
File "c:\users\angela\spyder\spyder\app\mainwindow.py", line 1193, in open_file
editor.load(fname)
File "c:\users\angela\spyder\spyder\plugins\editor\plugin.py", line 2459, in load
current_editor.set_bookmarks(load_bookmarks(filename, slots))
File "c:\users\angela\spyder\spyder\plugins\editor\utils\bookmarks.py", line 24, in load_bookmarks
bookmarks = _load_all_bookmarks(slots)
File "c:\users\angela\spyder\spyder\plugins\editor\utils\bookmarks.py", line 16, in _load_all_bookmarksfor slot_num inlist(slots.keys()):
AttributeError: 'NoneType' object has no attribute 'keys'
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)spyder --reset
Problem Description
What steps reproduce the problem?
What is the expected output? What do you see instead?
Following what the error message said I realized that the problem occurred when doing
get_conf('bookmarks', default={})
, because it returned None. Maybe myspyder.ini
file got somehow corrupted and that section was not found.So then, when the
load_bookmarks
function is called, slots is None and it results in the error sayingNoneType has no attribute keys
To fix it, I clicked on the
reset to defaults
option inside the preferences page. That generated a new config file and the error stoped occuring.Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: