Closed PablosGW closed 3 years ago
the error I get this :
INFO:infopanel.driver:Starting InfoPanel.
DEBUG:infopanel.sprites:Build <Duration at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <Duration at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <AnimatedGif at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <Temperature at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <Temperature at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <Temperature at 0, 0. dx/dy: (0, 0), size: (64, 64)>
INFO:infopanel.sprites:Built custom frames for <Sprite at 0, 0. dx/dy: (1, 0), size: (64, 64)>.
DEBUG:infopanel.sprites:Build <Sprite at 0, 0. dx/dy: (1, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <AnimatedGif at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <FancyText at 0, 0. dx/dy: (-1, 0), size: (64, 64)>
DEBUG:infopanel.sprites:Build <FancyText at 0, 0. dx/dy: (0, 0), size: (64, 64)>
DEBUG:infopanel.scenes:Initializing <class 'infopanel.scenes.Scene'>
DEBUG:infopanel.scenes:Initializing <class 'infopanel.scenes.Giraffes'>
DEBUG:infopanel.scenes:Initializing <class 'infopanel.scenes.Time'>
DEBUG:infopanel.scenes:Initializing <class 'infopanel.scenes.Scene'>
DEBUG:infopanel.scenes:Initializing <class 'infopanel.scenes.Welcome'>
INFO:infopanel.driver:Applying mode: morning
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/infopanel-0.1-py3.7.egg/infopanel/__main__.py", line 5, in <module>
driver.run()
File "/usr/local/lib/python3.7/dist-packages/infopanel-0.1-py3.7.egg/infopanel/driver.py", line 252, in run
infopanel = driver_factory(disp, datasrc, conf)
File "/usr/local/lib/python3.7/dist-packages/infopanel-0.1-py3.7.egg/infopanel/driver.py", line 226, in driver_factory
driver.init_modes(conf)
File "/usr/local/lib/python3.7/dist-packages/infopanel-0.1-py3.7.egg/infopanel/driver.py", line 214, in init_modes
self.apply_mode(default_mode)
File "/usr/local/lib/python3.7/dist-packages/infopanel-0.1-py3.7.egg/infopanel/driver.py", line 144, in apply_mode
scene = self.scenes[scene_name]
KeyError: 'cat'
everything worked before adding the cat and hypnotoad line
I think the issue here is that there's no scene
called cat
. In general, mode
s are made of scenes
which are made of sprites
. So if you were to just make a scene
called cat
and another called hypnotoad
and add them to the scenes
section then I think this would work.
scenes:
...[other scenes you already have defined]...
cat:
sprites:
- cat:
hypnotoad:
sprites:
- hypnotoad:
thanx , it's work now 👍
awesome, np!
sorry for my English :) I have a problem with a gif image that I am trying to put into the configuration file I have a bug all the time I also tried to validate the yaml file but it didn't help
The code looks like this: