Skip to content

Instantly share code, notes, and snippets.

View clayote's full-sized avatar

clayote

View GitHub Profile
@clayote
clayote / gist:4ed7e24fc2a7d66313cdb63390136c6f
Created October 17, 2025 01:40
Successful build of p4a kivy, but with no logger module
(lisien3.14) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/Lisien$ python -m pip install 'git+https://github.com/kivy/buildozer.git'
Collecting git+https://github.com/kivy/buildozer.git
Cloning https://github.com/kivy/buildozer.git to /tmp/pip-req-build-vkvwz8x0
Running command git clone --filter=blob:none --quiet https://github.com/kivy/buildozer.git /tmp/pip-req-build-vkvwz8x0
Resolved https://github.com/kivy/buildozer.git to commit 5a0956b2bf5e1bf9cbf27c9dd8103ce23563a133
Preparing metadata (setup.py) ... done
Collecting pexpect (from buildozer==1.5.1.dev0)
Using cached pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: packaging in /home/sanotehu/.local/share/virtualenv/lisien3.14/lib/python3.14/site-packages (from buildozer==1.5.1.dev0) (25.0)
Collecting cython<3.0 (from buildozer==1.5.1.dev0)
@clayote
clayote / logcat.log
Last active August 13, 2025 06:25
All of Kivy's default assets got removed from the cache
08-13 18:07:19.027 16814 16865 I python : [INFO ] [Base ] Start application main loop
08-13 18:08:18.742 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:/data/user/0/org.tacmeta.elide/files/app/_python_bundle/site-packages/kivy/data/style.kv from cache due to timeout
08-13 18:08:18.744 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:/data/user/0/org.tacmeta.elide/files/app/_python_bundle/site-packages/kivy/data/style.kv from cache
08-13 18:08:18.745 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:data/fonts/Roboto-Regular.ttf from cache due to timeout
08-13 18:08:18.746 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:data/fonts/Roboto-Regular.ttf from cache
08-13 18:08:18.747 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:data/fonts/Roboto-Italic.ttf from cache due to timeout
08-13 18:08:18.749 16814 16865 I python : [TRACE ] [Cache ] Removed kv.resourcefind:data/font
@clayote
clayote / logcat
Created June 4, 2025 04:13
kivy black screen logcat
06-04 16:12:16.556 32521 32688 I python : Initializing Python for Android
06-04 16:12:16.556 32521 32688 I python : Setting additional env vars from p4a_env_vars.txt
06-04 16:12:16.557 32521 32688 I python : Changing directory to the one provided by ANDROID_ARGUMENT
06-04 16:12:16.557 32521 32688 I python : /data/user/0/org.tacmeta.elide/files/app
06-04 16:12:16.559 32521 32688 I python : Preparing to initialize python
06-04 16:12:16.559 32521 32688 I python : _python_bundle dir exists
06-04 16:12:16.559 32521 32688 I python : calculated paths to be...
06-04 16:12:16.559 32521 32688 I python : /data/user/0/org.tacmeta.elide/files/app/_python_bundle/stdlib.zip:/data/user/0/org.tacmeta.elide/files/app/_python_bundle/modules
06-04 16:12:16.561 32521 32688 I python : set wchar paths...
06-04 16:12:16.628 32521 32688 I python : Initialized python
@clayote
clayote / kivy_25-06-04_0.txt
Created June 4, 2025 03:50
kivy black screen log
[INFO ] Logger: Record log in /data/user/0/org.tacmeta.elide/files/app/.kivy/logs/kivy_25-06-04_0.txt
[DEBUG ] Config: Upgrading from 0 to 1
[WARNING] Config: Upgrading configuration in progress.
[WARNING] Config: Older configuration version detected (0 instead of 27)
[ERROR ] Error when copying logo directory
Traceback (most recent call last):
File "/home/sanotehu/src/Lisien/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Elide/arm64-v8a/kivy/__init__.py", line 372, in <module>
File "/home/sanotehu/src/Lisien/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3-libbz2-liblzma/arm64-v8a__ndk_target_28/python3/Lib/shutil.py", line 561, in copytree
File "/home/sanotehu/src/Lisien/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3-libbz2-liblzma/arm64-v8a__ndk_target_28/python3/Lib/shutil.py", line 515, in _copytree
shutil.Error: [('/data/user/0/org.tacmeta.elide/files/app/_python_bundle/site-packages/kivy/data/
@clayote
clayote / buildozer deploy run logcat.log
Created June 4, 2025 02:49
updating root viewport logs
(lisien3.13) ~/src/Lisien git:[android] buildozer android deploy run logcat
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /home/sanotehu/.local/share/virtualenv/lisien3.13/bin/cython
@clayote
clayote / kivy_25-05-14_0.txt
Last active May 13, 2025 17:42
More logs of p4a#3153 test code
[INFO ] Logger: Record log in /data/user/0/org.kivy.test/files/app/.kivy/logs/kivy_25-05-14_0.txt
[DEBUG ] Config: Upgrading from 0 to 1
[WARNING] Config: Upgrading configuration in progress.
[WARNING] Config: Older configuration version detected (0 instead of 27)
[ERROR ] Error when copying logo directory
Traceback (most recent call last):
File "/home/sanotehu/src/doublequeue-test/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/test/arm64-v8a/kivy/__init__.py", line 372, in <module>
File "/home/sanotehu/src/doublequeue-test/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/shutil.py", line 561, in copytree
File "/home/sanotehu/src/doublequeue-test/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/shutil.py", line 515, in _copytree
shutil.Error: [('/data/user/0/org.kivy.test/files/app/_python_bundle/site-packages/kivy/data/logo/kivy
@clayote
clayote / main.py
Created May 13, 2025 17:05
Demonstration of a python-for-android bug. This script displays "OK" on desktop, but errors on Android.
import sys
from queue import SimpleQueue
from threading import Thread
from kivy.app import App
from kivy.clock import Clock
from kivy.logger import Logger
from kivy.uix.label import Label
@clayote
clayote / main.py
Last active May 13, 2025 17:09
This program runs OK on desktop, but on Android, data reappears in the queue after it's been removed and processed.
import sys
from queue import SimpleQueue
from threading import Thread
from kivy.app import App
from kivy.clock import Clock
from kivy.logger import Logger
from kivy.uix.label import Label
@clayote
clayote / buildozer.log
Created May 10, 2025 15:00
buildozer log with pinned numpy version gives weird meson fail
This file has been truncated, but you can view the full file.
(buildozer-venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien$ python -m pip freeze
appdirs==1.4.4
build==1.2.2.post1
buildozer @ https://github.com/kivy/buildozer/archive/refs/heads/master.zip#sha256=8440035cc4a48c8968b4ab5f01037d0db5c23760e458119fd87f7cd5858aa25b
colorama==0.4.6
Cython==0.29.34
distlib==0.3.9
filelock==3.18.0
Jinja2==3.1.6
MarkupSafe==3.0.2
@clayote
clayote / buildozer.log
Created May 10, 2025 06:34
Similar numpy buildozer strangeness, but on the scipy_updates branch
This file has been truncated, but you can view the full file.
(buildozer-venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /home/sanotehu/src/lisien/buildozer-venv/bin/cython