Table of contents

Kivy

%3 cluster_0b6da023_ac38_42c6_95ba_99556fb309f9 Kivy cluster_df224bf7_6fc7_468f_83ab_f69e38b6b6b1 [1/1] Errors running on PinePhone cluster_e48561e5_26a5_4ccb_adb7_858d1d832255 Blank screen _1a380233_d3ad_4228_a579_eb1cdf043e3d Other tested approaches (not working) _11af9543_5f79_4782_8562_f815fd6e9edb Other approaches (dropped halfway) _941b5d1d_1ca2_4eda_867b_32e074c9fce4 Python _941b5d1d_1ca2_4eda_867b_32e074c9fce4->__0:cluster_0b6da023_ac38_42c6_95ba_99556fb309f9 __0:cluster_0b6da023_ac38_42c6_95ba_99556fb309f9->_941b5d1d_1ca2_4eda_867b_32e074c9fce4
# Would trigger some imports if declared as python block
from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()

[ 1/1 ] Errors running on PinePhone

DONE

Blank screen

  • If running it returns

x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
  File "/home/mobian/.local/lib/python3.9/site-packages/kivy/core/__init__.py", line 58, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(

[INFO   ] [Text        ] Provider: pil(['text_pango', 'text_pygame'] ignored)
[CRITICAL] [App         ] Unable to get a Window, abort.

DISCARDED

Other approaches (dropped halfway)

  • Install from source with export USE_WAYLAND=1

    • How to force this config?

DISCARDED

Other tested approaches (not working)

  • Theory

    Problem with OpenGL

  • Install X11

    pip install xlib

  • Consider options.extras_require from https://github.com/kivy/kivy/blob/master/setup.cfg

  • Consider installing from distro's repo

    sudo apt install python3-kivy

    • Version 1.11.0, not 2 (as of [ 2021-03-25 Xov ] )

    • Doesn't support KIVY_WINDOW=x11