You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Pi Os Lite Bullseye with no Desktop Environment
Kivy: 2.1.0
Kivy installation method: pip
Describe the bug
If I try to run an kivy example from console I have a error message: Couldn't connect to X server
Expected behavior
Years ago with kivy 1.11, python2.7 and raspbian stretch i was able to run my app from console. I could even make it run at startup as service, or with supervisor.
To Reproduce
From a fresh copy of Pi Os Lite Bullseye 64 bits (without Desktop Environment) install dependencies, I don't know if all are required, I just followed the instructions with a little change on libgstreamer-plugins-base1.0-0:arm64 and gstreamer1.0-alsa.
But If I run the xserver first with (only from console in raspberry screen)
startx
This command opened a small terminal with a white background and a mouse cursor, from this terminal I was able run kivy example.
the log of the execution is:
ticketera@ticketera:~ $ python3 ~/.local/share/kivy-examples/3Drendering/main.py -d
[INFO ] Logger: Record log in /home/ticketera/.kivy/logs/kivy_22-07-22_5.txt
[INFO ] Kivy: v2.1.0
[INFO ] Kivy: Installed at "/home/ticketera/.local/lib/python3.9/site-packages/kivy/__init__.py"
[INFO ] Python: v3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
[INFO ] Python: Interpreter at "/usr/bin/python3"
[INFO ] Logger: Purge log fired. Processing...
[INFO ] Logger: Purge finished!
[INFO ] Factory: 189 symbols loaded
[DEBUG ] Cache: register <kv.resourcefind> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=None
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60
[DEBUG ] Cache: register <kv.shader> with limit=1000, timeout=3600
[DEBUG ] Window: Ignored <egl_rpi> (import error)
[INFO ] Window: Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] GL: Using the "OpenGL" graphics system
[INFO ] GL: Backend used <sdl2>
[INFO ] GL: OpenGL version <b'2.1 Mesa 20.3.5'>
[INFO ] GL: OpenGL vendor <b'Broadcom'>
[INFO ] GL: OpenGL renderer <b'VC4 V3D 2.1'>
[INFO ] GL: OpenGL parsed version: 2, 1
[INFO ] GL: Shading version <b'1.20'>
[INFO ] GL: Texture max size <2048>
[INFO ] GL: Texture max units <16>
[DEBUG ] Shader: Fragment compiled successfully
[DEBUG ] Shader: Vertex compiled successfully
[DEBUG ] ImageSDL2: Load </home/ticketera/.local/lib/python3.9/site-packages/kivy/data/glsl/default.png>
[INFO ] Window: auto add sdl2 input provider
[INFO ] Window: virtual keyboard not allowed, single mode, not docked
[DEBUG ] App: Loading kv </home/ticketera/.local/share/kivy-examples/3Drendering/renderer.kv>
[DEBUG ] App: kv </home/ticketera/.local/share/kivy-examples/3Drendering/renderer.kv> not found
[INFO ] Shader: Read </home/ticketera/.local/share/kivy-examples/3Drendering/simple.glsl>
[DEBUG ] Shader: Vertex compiled successfully
[DEBUG ] Shader: Fragment compiled successfully
[DEBUG ] Base: Create provider from mouse
[DEBUG ] Base: Create provider from probesysfs
[DEBUG ] ProbeSysfs: using probesysfs!
[DEBUG ] ProbeSysfs: found device: generic ft5x06 (79) at /dev/input/event5
[INFO ] ProbeSysfs: device match: /dev/input/event5
[INFO ] MTD: Read event from </dev/input/event5>
[INFO ] Base: Start application main loop
[INFO ] MTD: </dev/input/event5> range position X is 0 - 799
[INFO ] MTD: </dev/input/event5> range position Y is 0 - 479
[INFO ] MTD: </dev/input/event5> range touch major is 0 - 0
[INFO ] MTD: </dev/input/event5> range touch minor is 0 - 0
[INFO ] MTD: </dev/input/event5> range pressure is 0 - 255
[INFO ] MTD: </dev/input/event5> axes invertion: X is 0, Y is 0
[INFO ] MTD: </dev/input/event5> rotation set to 0
[INFO ] Base: Leaving application in progress...
Additional context
I was also able to run my app on Pi OS Bullseye WITH Desktop environment.
The installation was simple, the compatibility with new Pi OS is great, compile not was necessary, but the functionality of running it from console is gone.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
Software Versions
Describe the bug
If I try to run an kivy example from console I have a error message: Couldn't connect to X server
Expected behavior
Years ago with kivy 1.11, python2.7 and raspbian stretch i was able to run my app from console. I could even make it run at startup as service, or with supervisor.
To Reproduce
From a fresh copy of Pi Os Lite Bullseye 64 bits (without Desktop Environment) install dependencies, I don't know if all are required, I just followed the instructions with a little change on libgstreamer-plugins-base1.0-0:arm64 and gstreamer1.0-alsa.
If execute the kivy example from console on raspberry screen or ssh session, I have this error:
But If I run the xserver first with (only from console in raspberry screen)
startx
This command opened a small terminal with a white background and a mouse cursor, from this terminal I was able run kivy example.
the log of the execution is:
Additional context
I was also able to run my app on Pi OS Bullseye WITH Desktop environment.
The installation was simple, the compatibility with new Pi OS is great, compile not was necessary, but the functionality of running it from console is gone.
Thanks for your help.
The text was updated successfully, but these errors were encountered: