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
When I try to create Components or Commands for edit, the following error occurs:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Program Files (x86)\auto-maple-2.3.6\src\gui\edit\controls.py", line 88, in new
self.parent.parent.editor.create_add_prompt()
File "C:\Program Files (x86)\auto-maple-2.3.6\src\gui\edit\main.py", line 137, in create_add_prompt
options = config.routine.get_all_components()
File "C:\Program Files (x86)\auto-maple-2.3.6\src\routine\routine.py", line 277, in get_all_components
options = config.bot.command_book.dict.copy()
AttributeError: 'NoneType' object has no attribute 'dict'
This is an AttributeError indicating you are trying to access the dict attribute of a None object. Specifically, in get_all_components, config.bot.command_book is returning None, and then you try to access its dict attribute, causing the error.
I looked at the config.py file and see that bot = None. I think this is the main reason. Can't it be given an initial value?
I use python 3.10.8.
When I try to create Components or Commands for edit, the following error occurs:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Program Files (x86)\auto-maple-2.3.6\src\gui\edit\controls.py", line 88, in new
self.parent.parent.editor.create_add_prompt()
File "C:\Program Files (x86)\auto-maple-2.3.6\src\gui\edit\main.py", line 137, in create_add_prompt
options = config.routine.get_all_components()
File "C:\Program Files (x86)\auto-maple-2.3.6\src\routine\routine.py", line 277, in get_all_components
options = config.bot.command_book.dict.copy()
AttributeError: 'NoneType' object has no attribute 'dict'
This is an AttributeError indicating you are trying to access the dict attribute of a None object. Specifically, in get_all_components, config.bot.command_book is returning None, and then you try to access its dict attribute, causing the error.
I looked at the config.py file and see that bot = None. I think this is the main reason. Can't it be given an initial value?
auto-maple/src/common/config.py
Line 36 in c34b226
The text was updated successfully, but these errors were encountered: