13,725 questions
0
votes
2
answers
39
views
kivy widget draws on root instead of widget place
as my first kivy adventures i try to print a data-graph.
my main.py looks like this.
I have to add some more details until stackoverflow lets me ask. But i think the code speaks for itself.
from kivy....
0
votes
0
answers
23
views
How to add an Expansion Panel within an Expansion Panel in kivymd?
For some time, I have tried to make "Nested Expansion Panels" in kivymd, meaning an Expansion Panel within an Expansion Panel, and for the love of it, I can't make the layout work.
Should be ...
3
votes
0
answers
136
views
Kivy RecycleView generates more and more objects that are not collected by Garbage Collector
I used the example from https://github.com/kivy/kivy/blob/master/examples/widgets/recycleview/basic_data.py and modified it only to provide some garbage collector stats. What I see is that objects are ...
0
votes
1
answer
107
views
Android autorestart service after app Cleaner
I have an app (graphics + service), and they work perfectly. When the app starts, the service and graphics start. After a phone reboot, the service starts again. However, there's one problem: if I run ...
1
vote
0
answers
98
views
How to include a .aar file in a Kivy/Buildozer Android project
I would like to add a .aar file (onnxruntime.aar) to my Kivy project. My project structure is:
├── buildozer.spec
├── dress.jpg
├── libs
│ └── onnxruntime.aar
├── log.txt
├── main.py
├── __pycache__
...
0
votes
0
answers
47
views
Buildozer giving build failed error message mentioning gradle
I am trying to build my kivy app with buildozer. I successfully installed everything it required, including lld from warning message, but it still gives me this error message:
[DEBUG]: -> running ...
1
vote
1
answer
35
views
Kivy - kv layout doesn't update widgets injected into MainApp
I have a Kivy app where I am injecting a widget as a dependency to the main app. The injected widget has the wrong layout (that was defined in the .kv file). Here are the following files:
Layout is ...
2
votes
1
answer
56
views
Can't set .text to label with id in BoxLayout from .kv file on VSCode
I'm developing an android app which shows schedule. I followed some tutorials and eventually made these pieces of code:
ui.py
import kivy
from kivy.app import App
from kivy.uix.boxlayout import ...
1
vote
1
answer
78
views
We could not find a project publisher for the project at {DIR}
I'm trying to configure an application (Kivy framework, Python language, https://github.com/lyskouski/app-language) distribution via
msstore reconfigure --tenantId *** --clientId *** --clientSecret ***...
1
vote
1
answer
142
views
Dismiss a kivy popup thats created outside the function thats dismissing it
Im creating a kivy popup with all available drives. The idea is to click a drive button and than have that directory open in filechooser widget. The only issue is I need to dismiss the drive popup ...
2
votes
2
answers
150
views
Collision Changed in Kivy Due to Using ScreenManager
I am attempting to use Kivy to modify the example Pong game to have a main menu. It took me ages, but I finally got the menu system to work and start the game object itself in a new screen. However, ...
0
votes
0
answers
40
views
Buildozer Android toolchain error WSL VSCode
Needing some assistance with getting toolchain.py: error: unrecognized arguments: --feature android.hardware.location.gps
Building in WSL extension remote connection in VSCode. It seems to be freaking ...
3
votes
2
answers
1k
views
Kivy: App must support 16 KB memory page sizes
I have a basic Kivy app that I have published in the Google Play Store.
Today I got a warning message in Policy Status:
Your app is affected by Google Play's 16 KB page size requirements To
ensure ...
0
votes
1
answer
56
views
Placing a child widget on top to drag (kivy)
In the following code, I have a parent GridLayout (called grd here) with two children widgets (flt and slt). Each child widget has further children widgets, one of which is a drag_behavior widget, ...
0
votes
1
answer
54
views
Getting kivy / python-for-android to ship an Android Archive (aar) in the projecto to be used by jnius
I have a kivy project where I specified:
android.add_aars = hands/hands.aar
The file and folder do exist and sit next to buidozer.spec.
I can also see them in the grade project copied to libs/hands....
1
vote
0
answers
58
views
Black screen instead of rendering 3D model
I have been trying to use kivy to render a 3D model for an interactive app in a website but I am yet to achieve this. At first it was crashing and I have done a few changes to solve those issues up to ...
1
vote
1
answer
50
views
Kivy Button with on_touch_up defined calls the connected method twice
I defined a Kivy Button and associated a method with on_touch_up. However, when I click the button, the method is called twice. This issue stops occurring if I also define on_touch_down and return ...
12
votes
8
answers
30k
views
App must target Android 15 (API level 35) or higher
I have an kivy app and i compile it via Buildozer.
My settings are:
# (int) Target Android API, should be as high as possible.
android.api = 34
# (int) Minimum API your APK / AAB will support.
...
0
votes
0
answers
41
views
Kivy converted Android App enabling remote control
I am having a real mare trying to get a remote control or dpad to work to scroll menus in my Kivy app converted to Android APK, No matter what I try I just can't seem to be able to get a remote ...
0
votes
0
answers
28
views
Need help getting Kivy Image mod to load in Xcode
I'm working on a Kivy App that's almost working, but Xcode is giving an error about one of the modules. Any advice on how to get it to properly load would be appreciated.
Available orientation: ...
0
votes
0
answers
39
views
How to convert python bytes into java byte[] in kivy android app?
In my kivy 2.3.1 app, pyjnius 1.6.1 and python-for-android 2024.02.21, python 3.11.16 on MacOS, the app needs to generate a random 12 byte initialization vector (iv) and pass it to java function ...
0
votes
1
answer
141
views
cipher.init() with a valid key from android KeyStore throws error of key incompatibility
In my kivy 2.3.1, buildozer 1.5.0, p4a 2024.01.21, python 3.11.16 on MacOS, there is a piece of code for secure save locally. The cipher.init() keeps throws the following error:
06-18 15:49:56.872 ...
1
vote
1
answer
58
views
Kivy Video Player not displaying in full screen
So I seem to be having an issue with Kivy , I have a video player added into one of my screens. I have setup the video player in the KV file with the code below
Screen:
name: "VideoPlayer&...
0
votes
0
answers
25
views
Kivy app quit launch in android emulator with error pointing to jnius.so
My first kivy app is developed with kivy 2.3.1, python-for-android 2024.01.21, buildozer 1.5.0, android api 33, andoird idk 25b, python 3.11.12 virtual env on MacOS. The android emulator is running ...
0
votes
1
answer
27
views
Kivy Layout problems with gridview and scrolllayout
I am trying to figure out Kivy's layout system. And can't get the results I want.
I am creating a single column grid of widgets. Each row is a single box layout with a image thumbnail on the right and ...
0
votes
0
answers
58
views
Can't set font_size for MDTextFieldHintText inside MDTextField
I'm using MDTextFieldHintText inside an MDTextField, but I can't change the MDTextFieldHintText font_size when it's nested. When I use MDTextFieldHintText outside of MDTextField, the font_size works ...
1
vote
0
answers
45
views
Scroll and Scatter scale
My problem:
In this script the do_translation is working.
The do_scale does not work. The scrolling and scale interfere with each other.
If I change the ‘do_scroll_y’ to False the do_scale works fine, ...
0
votes
0
answers
44
views
I'm trying to build an app in xcode that I've created with kivy and python. I keep getting this error when the simulator is trying to install app
Please try again later. invalid symlink at /Users/joshrhodes/Library/Developer/CoreSimulator/Devices/B0959E1D-029A-4A3D-B696-2ECFDAE92E3B/data/Library/Caches/com.apple.mobile.installd.staging/temp....
1
vote
0
answers
23
views
buildozer build error : configure: error: C compiler cannot create executables
My kivy 2.3.1, buildozer 1.5.0, python-for-android 2024.01.21 in python virtualenv 3.11, on MacOS app throws error when buildozer android debug:
[DEBUG]: configure: error: in `/Users/macbook/...
0
votes
0
answers
99
views
In python 3.12 virtualenv the buildozer android debug keeps using python 3.11 to compile instead of python 3.12
My kivy app is being developed in python 3.12.7 venv, kivy 2.3.1, python-for-android 2024.01.21, openssl 3.0.6 & buildozer 1.5.0. Here is the requirements in buildozer.spec:
requirements = python3=...
0
votes
0
answers
33
views
downloading openssl for python 3.10/kivy 2.3.1 throws http 404 error on MacOS
when doing buildozer android debug in python 3.10.16/kivy 2.3.1/buildozer 1.5.0/pyjnius 1.6.1 on MacOS, it keeps throw http 404 when downloading openssl as python 3.10 still tried to download the ...
0
votes
1
answer
46
views
Kivy - filtering log levels in stream output
I'm having trouble configuring my logger.
My app uses libraries which use the standard python logging library. I cannot configure the Kivy Logger object to filter different log levels or modules. ...
1
vote
1
answer
750
views
long used in pyjnius_utils.pxi cause error in buildozer android debug in python 3.10 on MacOS
The python version is 3.10.17, buildozer 1.5.0, kivy 2.3.1. Here is the requirements in buildozer.spec:
requirements = python3=3.10,kivy,openssl=3.0.16,cryptography==42.0.5,pyjnius @ git+https://...
0
votes
0
answers
52
views
MDDataTable not displaying new Row after adding to it
Good day there!
I am currently working on a school proyect in a MVC arquitecture where I am communicating my app with a Firestore database and, among other things, displaying the data I get from the ...
0
votes
0
answers
71
views
creating Docker image for Buildozer on WSL (Ubuntu 22.04) fail
I am trying to build Docker image for Buildozer as explained here: https://github.com/kivy/buildozer/tree/master?tab=readme-ov-file
but I am getting this error:
sudo docker build --tag=kivy/buildozer ....
0
votes
0
answers
62
views
Crash of the android app on Kivy, which pulls up a lot of data from the site
I compiled the Android app using Kivy, and in the end it still wouldn't start. I tried many ways, but in the end I got one error after another, and in the end I came to nothing.
I attach the code ...
0
votes
1
answer
45
views
Image not reloading - kivy python
So I'm very new to Kivy, and the point here is to have a random integer cycle through 3 random integers and change images corresponding to the integers, with a clock checking this every second.
It ...
0
votes
0
answers
46
views
Kivy Ios Xcode Project Crashes with Error module 'subprocess' has no attribute 'popen'
I have an app I'm trying to make. I've successfully created an Xcode project from my Kivy project, but when it launches on a simulator device, it immediately crashes with the error:
module 'subprocess'...
0
votes
1
answer
52
views
How to use plyer without Kivy App in Pydroid?
I'm trying to get my GPS location on pydroid.
I can get my location using the kivy app in this link. https://github.com/kivy/plyer/blob/master/examples/gps/main.py
But when I try this code found in ...
0
votes
0
answers
44
views
The compiled Kivy+Buildozer application does not start
I have written code for an application that pulls data from a website and inserts it into a table in the application. The code itself ran on the computer for 45 seconds. I compiled the application, it ...
0
votes
1
answer
97
views
Pathfinding with OSMNX with Python not working
I've been trying to create an app that uses driving navigation, but when trying to find how to get from one point to another (defined with latitude and longitude) using osmnx pathfinding, it looks ...
0
votes
0
answers
77
views
Segmentation fault (core dumped) with kivy python
I'm currently working on a kivy application and im using the WSL(windows subsystem for Linux) with the Ubuntu distribution. When i try running a basic kivy app with python, i keep getting this error
&...
2
votes
1
answer
47
views
Can a button formation in Kivy be simplified?
I am building an app with numerous screens, each of which may have many buttons.
I know how to build the app out screen by screen but was wondering if I create a parent screen class with a ...
0
votes
0
answers
29
views
How do include Android headers in pyrebase4 method auth.sign_in_with_email_and_password()
In order to restrict the usage of the Firebase API token I want to add Android restrictions on the API key.
However, in order for Firebase to accept the requests I need to pass the headers X-Android-...
0
votes
0
answers
36
views
Create an .aab file from a kivy project
I am tryng to create an .aab from a python kivy project, but nothing works. This is my first time making a .aab file from kivy.
I am using a virtual machine Lubuntu, python 3.10, buildozer. I have ...
0
votes
0
answers
26
views
Using Buildozer, get message "Couldn't find meta-data for provider with authority"
Snippet of kivy code:
from jnius import autoclass
from jnius import cast
from android import activity
Activity = autoclass('android.app.Activity')
PythonActivity = autoclass("org.kivy.android....
0
votes
0
answers
69
views
Kivy app with tensorflow lite does not work
I am trying to build an app with Kivy which takes an image and returns the super-resolved version of it. In order to do so, I am using a pre-trained super-resolution model. It is working well on my ...
1
vote
1
answer
47
views
Unloading Kivy builder rules more than once, in order to re-import GUI elements from files
I would like to import optional GUI elements defined in separate Mod1.py/Mod2.py/etc files and add/remove these dynamically from the main GUI. The separate files that define these optional GUI ...
0
votes
0
answers
68
views
buildozer kivy adding resource file for fileprovider is not found
I am using buildozer to compile a kivy script for android. The script requires access to external folders and so I need to use the fileprovider. I have added the appropriate information to a manifest ...
0
votes
1
answer
55
views
Importing multiple modules containing identically named class in python
I would like to import optional GUI elements defined in separate .py files and add/remove these dynamically from the main GUI. The optional elements are defined in a text configuration file and thus ...