Skip to content

Instantly share code, notes, and snippets.

View clayote's full-sized avatar

clayote

View GitHub Profile
@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
@clayote
clayote / buildozer.log
Created May 10, 2025 05:04
mystifying buildozer debug build failure. it was working yesterday
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==1.5.0
colorama==0.4.6
Cython==0.29.33
distlib==0.3.9
filelock==3.18.0
Jinja2==3.1.6
MarkupSafe==3.0.2
@clayote
clayote / buildozer3.log
Last active April 30, 2025 03:03
Clean run of `buildozer update` failing
This file has been truncated, but you can view the full file.
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ rm -rf .buildozer
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ rm -rf ~/.buildozer
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ export JAVA_HOME=/usr/lib/
Display all 192 possibilities? (y or n)
(.venv) sanotehu@sanotehu-Lenovo-YOGA-730-15IWL:~/src/lisien/buildozer$ export JAVA_HOME=/usr/lib/jvm/
default-java/ java-1.21.0-openjdk-amd64/
java-1.11.0-openjdk-amd64/ .java-1.21.0-openjdk-amd64.jinfo
.java-1.11.0-openjdk-amd64.jinfo java-17-openjdk-amd64/
java-1.17.0-openjdk-amd64/ java-21-openjdk-amd64/
.java-1.17.0-openjdk-amd64.jinfo openjdk-17/