mathoudebine / turing-smart-screen-python

Unofficial Python system monitor and library for small IPS USB-C displays like Turing Smart Screen or XuanFang
GNU General Public License v3.0
1.05k stars 174 forks source link

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

Closed luminesupreme closed 4 months ago

luminesupreme commented 7 months ago

*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:

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.

mathoudebine commented 7 months ago

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 commented 5 months ago

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 commented 4 months ago

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