Skip to content

Instantly share code, notes, and snippets.

View clayote's full-sized avatar

clayote

View GitHub Profile
@clayote
clayote / betterfollowing.py
Created May 18, 2021 17:03
My effort to get useful data out of Twitter profiles
from requests_html import HTMLSession, HTML
from lxml.etree import ParserError
import json
import time
import random
with open('following.json', 'rt') as inf:
useless = json.load(inf)
session = HTMLSession()
@clayote
clayote / texture_stack_plane_bug_demo.py
Last active December 2, 2024 09:57
Demonstration of a condition where a Fbo can draw outside the StencilView it's in
from kivy.core.image import Image
from kivy.graphics.fbo import Fbo
from kivy.properties import ObjectProperty, BooleanProperty, ListProperty
from kivy.graphics import (
InstructionGroup,
Translate,
Rectangle,
)
from kivy.clock import Clock, mainthread
from kivy.uix.widget import Widget
@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/
@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 / 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 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 / 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 / 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 / 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 / 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