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 'get' #453

Closed
luminesupreme opened this issue Jan 16, 2024 · 3 comments · Fixed by #506
Closed

AttributeError: 'NoneType' object has no attribute 'get' #453

luminesupreme opened this issue Jan 16, 2024 · 3 comments · Fixed by #506
Labels
bug Something isn't working

Comments

@luminesupreme
Copy link

luminesupreme commented Jan 16, 2024

*C:\Users\lumi\Downloads\turing-smart-screen-python-3.3.4\turing-smart-screen-python-3.3.4>python.exe .\configure.py
Traceback (most recent call last):
File "C:\Users\lumi\Downloads\turing-smart-screen-python-3.3.4\turing-smart-screen-python-3.3.4\configure.py", line 434, in
configurator = TuringConfigWindow()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lumi\Downloads\turing-smart-screen-python-3.3.4\turing-smart-screen-python-3.3.4\configure.py", line 240, in init
self.load_config_values()
File "C:\Users\lumi\Downloads\turing-smart-screen-python-3.3.4\turing-smart-screen-python-3.3.4\configure.py", line 278, in load_config_values
self.load_theme_preview()
File "C:\Users\lumi\Downloads\turing-smart-screen-python-3.3.4\turing-smart-screen-python-3.3.4\configure.py", line 259, in load_theme_preview
author_name = theme_data.get('author', 'unknown')
^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

Environment:

  • Smart screen model [Turing 3.5”]
  • Revision of this project [3.3.4]
  • OS with version [Windows 11 Pro]
  • Python version [Python 3.12]
  • Hardware [AMD Ryzen 7 7700X]

Additional context
Hello, sorry if this is a stupid question but I'm pretty new to tech and improving my setup here. This is the error I'm getting when I attempt step 4- starting the configuration wizard. I was able to get this far following a YouTube tutorial, but this error isn't mentioned.

@luminesupreme luminesupreme added the bug Something isn't working label Jan 16, 2024
@mathoudebine
Copy link
Owner

Hello @luminesupreme
This is a very starnge error that should not happen.
Can you post the content of the config.yaml file here?
Did you manually edit some Python files or theme files by yourself?

@Ergonautaa
Copy link

I have this same problem, additionally I can share that yesterday i actually opened the configuration wizard and tryed many settings and averything worked perfectly fine, but when i tried to make the task for the screen to work everytime i logged on, the task didnt work and once i restarted the PC i get this exact attribute error

@mathoudebine
Copy link
Owner

To fix this issue, you should replace the config.yaml file with the original one. The you can restart the configure.py properly without error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants