Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'dict' #196

Open
braces186 opened this issue Nov 19, 2023 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'dict' #196

braces186 opened this issue Nov 19, 2023 · 0 comments

Comments

@braces186
Copy link

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?

error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant