I have now come a step closer… I think…
I have passed in the config parameters from GitHub - balena-io-playground/pixel-buddy
and tried the basic example here:
GitHub - balena-io-playground/pixel-buddy
Now I get the following error. It’s seems like the display is not fully enabled…
[INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_22-06-30_20.txt
main [INFO ] [Kivy ] v2.1.0
main [INFO ] [Kivy ] Installed at "/usr/local/lib/python3.7/site-packages/kivy/__init__.py"
main [INFO ] [Python ] v3.7.13 (default, Jun 11 2022, 11:50:16)
main [GCC 10.2.1 20210110]
main [INFO ] [Python ] Interpreter at "/usr/local/bin/python"
main [INFO ] [Logger ] Purge log fired. Processing...
main [INFO ] [Logger ] Purge finished!
main [INFO ] [Factory ] 189 symbols loaded
main [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
main [INFO ] [Text ] Provider: sdl2(['text_pango'] ignored)
main [INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
main error: XDG_RUNTIME_DIR not set in the environment.
main The path /dev/dri/ cannot be opened or is not available
main The path /dev/dri/ cannot be opened or is not available
main [CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
main egl_rpi - ImportError: cannot import name 'bcm' from 'kivy.lib.vidcore_lite' (/usr/local/lib/python3.7/site-packages/kivy/lib/vidcore_lite/__init__.py)
main File "/usr/local/lib/python3.7/site-packages/kivy/core/__init__.py", line 63, in core_select_lib
main fromlist=[modulename], level=0)
main File "<frozen importlib._bootstrap>", line 1086, in __import__
main File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
main File "<frozen importlib._bootstrap>", line 983, in _find_and_load
main File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
main File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
main File "<frozen importlib._bootstrap_external>", line 728, in exec_module
main File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
main File "/usr/local/lib/python3.7/site-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
main from kivy.lib.vidcore_lite import bcm, egl
main
main sdl2 - RuntimeError: b'No available video device'
main File "/usr/local/lib/python3.7/site-packages/kivy/core/__init__.py", line 71, in core_select_lib
main cls = cls()
main File "/usr/local/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 165, in __init__
main super(WindowSDL, self).__init__()
main File "/usr/local/lib/python3.7/site-packages/kivy/core/window/__init__.py", line 1071, in __init__
main self.create_window()
main File "/usr/local/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 309, in create_window
main self.get_gl_backend_name())
main File "kivy/core/window/_window_sdl2.pyx", line 114, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
main File "kivy/core/window/_window_sdl2.pyx", line 76, in kivy.core.window._window_sdl2._WindowSDL2Storage.die
main
main x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
main File "/usr/local/lib/python3.7/site-packages/kivy/core/__init__.py", line 63, in core_select_lib
main fromlist=[modulename], level=0)
main File "<frozen importlib._bootstrap>", line 1086, in __import__
main File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
main File "<frozen importlib._bootstrap>", line 983, in _find_and_load
main File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
main
main [CRITICAL] [App ] Unable to get a Window, abort.
Service exited 'main sha256:6da0daf993144ed129b38d35d93abf7b67a95ddca216cbd5bd30e02445dd336a'