buildozer

How can I import an package into a Kivy app using buildozer

廉价感情. 提交于 2019-12-13 04:26:36
问题 I have created a kivy app in package using the structure: . ├── bin │ └── myapp-0.1-debug.apk ├── buildozer.spec └── kivy_app ├── __init__.py ├── __main__.py ├── main.py └── source └── kivy_app.py I wish to use some features contained in another package that I have written: . └── python_pkg ├── __init__.py └── source └── version.py The module version.py contains: VERSION = '0.0.1' When I insert the line: from python_pkg import VERSION into kivy_app.py, it works perfectly in kivy on the PC. I

Buildozer compilation failed: Could not find application project directory?

情到浓时终转凉″ 提交于 2019-12-13 03:23:15
问题 I'm new to kivy and when i try to compile buildozer i am getting an error. The first error was about downloading recipes . I downloaded the packages manually, also i defined their path in buildozer.spec file: # (list) Application requirements # comma seperated e.g. requirements = sqlite3,kivy requirements = kivy,hostpython2,python2,six,pyjnius,kivy,sdl2_image # (str) Custom source folders for requirements # Sets custom source for any requirements with recipes # requirements.source.kivy = ../.

Buildozer 0.32 fails to build

风格不统一 提交于 2019-12-12 20:37:14
问题 After downloading the official Buildozer VM from the kivy project (https://kivy.org/#download)and updating it like in the README of the VM suggested (https://kivy.org/docs/guide/packaging-android-vm.html#kivy-android-vm). I tried to build with buildozer android_new debug After fixing several missing dependencies, I'm running in to an unintelligible error: [INFO]: Unpacking sdl2_image for armeabi-v7a [INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1

Buildozer Numpy RuntimeError: Broken toolchain: cannot link a simple C program

我的未来我决定 提交于 2019-12-12 14:28:59
问题 Writing my first Android app in Python and using Buildozer to package it. Because I will need to use numpy later on in the project, I tried packaging the following test code: import numpy import kivy kivy.require('1.0.6') from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World') TestApp().run() However, I got the following error: Traceback (most recent call last): File "setup.py", line 251, in <module> setup_package()

Buildozer build fails at NDK build giving SDL_JAVA_PACKAGE_PATH error

僤鯓⒐⒋嵵緔 提交于 2019-12-12 12:22:37
问题 Buildozer (0.34) fails with this error when set up using Kivy's VM (2.0). I was able to replicate it in an unrelated environment (no VM) in Ubuntu 16.04 and the same spec file. Log output: [INFO]: STDOUT: /build/app-name/android/platform/build/build/bootstrap_builds/sdl2_gradle-python2/jni/sdl/Android.mk:8: *** Please define SDL_JAVA_PACKAGE_PATH to the path of your Java package with dots replaced with underscores, for example "com_example_SanAngeles". Stop. This happened right after it

Buildozer gives error upon building Pong app of Kivy framework for android publishing

て烟熏妆下的殇ゞ 提交于 2019-12-12 01:09:49
问题 I am trying to make an apk file using buildozer of the Pong App (https://kivy.org/doc/stable/tutorials/pong.html) However I am getting the following error on running the buildozer final step. Traceback (most recent call last): File "/usr/local/bin/buildozer", line 11, in <module> load_entry_point('buildozer==0.38.dev0', 'console_scripts', 'buildozer')() File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main Buildozer().run_command(sys.argv[1:]) File "/usr

Kivy--Export Window as png on Android

五迷三道 提交于 2019-12-11 23:34:18
问题 I am trying to create a app on android with wich you fill in a few TextInputs and then give your signature on a marked space left for that, I have 2 buttons, one for clearing and one for exporting the window as a png, however when I buildozer this as a .apk and then run it on my Tablet everything still looks fine, and pressing the exporting button dont give a error, but I cant find a image for the life of me, someone said to look in the directory the code is in, but in my case its a app (.apk

Buildozer: manually include an external API

℡╲_俬逩灬. 提交于 2019-12-11 20:33:32
问题 I'd like to include an SDK library into the build that does not exist in PIP, or any public place on the Internet. I've read that this can be done manually. I put the SDK library in the root of my Kivy project. The development console finds this import just fine. The problem is with the deployment. Looking at the buildozer.spec file I came across this: # (str) Custom source folders for requirements # Sets custom source for any requirements with recipes # requirements.source.kivy = ../../kivy

How do you create a kivy apk from a package?

北城以北 提交于 2019-12-11 16:32:38
问题 I have a simple python/kivy package from which I wish to create an android APK using Buildozer. The package from the root is organised as: . ├── bin │ ├── kivy_test-0.1-debug.apk │ └── myapp-0.1-debug.apk ├── buildozer.spec ├── __init__.py └── kivy_app ├── __init__.py ├── __main__.py └── source ├── main.py └── version.py The module main.py is: from kivy.app import App from kivy.uix.screenmanager import Screen from kivy.uix.button import Label from kivy.lang import Builder from version import

IOError: [Errno 2] No such file or directory: …/build/outputs/apk/yolo-debug.apk'

我与影子孤独终老i 提交于 2019-12-11 15:26:28
问题 I am trying to create an APK file using Buildozer and I'm getting this error. Full error log is: Traceback (most recent call last): File "/usr/local/bin/buildozer", line 11, in <module> load_entry_point('buildozer==0.33', 'console_scripts', 'buildozer')() File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main Buildozer().run_command(sys.argv[1:]) File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1058, in run_command self.target.run