buildozer

x11 - ImportError: No module named 'kivy.core.window.window_x11

☆樱花仙子☆ 提交于 2020-01-15 07:11:28
问题 Currently I am trying to build an App that I wrote in Python and Kivy via buildozer. Whatever I am doing, I am running into problems with window_x11. Even if I comment all the windows related things out in the code or doing all the things described in this post. Here is a part of the error generated: x11 - ImportError: No module named 'kivy.core.window.window_x11' Another strange aspect is that I am using Python-3.x, but it keeps on saying about python-2.7. running cython ./kivy/core/window

Kivy + Numpy @ Android error

倾然丶 夕夏残阳落幕 提交于 2020-01-07 05:47:07
问题 When I try to include numpy on the requirements of buildozer I get this message on logcat: I/python (26117): ImportError: cannot import name scimath And the apps crashes. Is there a way to fix this? 回答1: Solved with updated recipe.sh on python-for-android for numpy. http://pastebin.com/fB3BtRCn Get the latest patches from: https://github.com/kivy/python-for-android/tree/master/pythonforandroid/recipes/numpy 来源: https://stackoverflow.com/questions/33398723/kivy-numpy-android-error

How to get plyer camera to save images?

独自空忆成欢 提交于 2020-01-06 14:33:26
问题 When I run my app on my Huawei Android phone, and the plyer camera opens the camera app, after taking the photo, the image is not in its directory, even after the phone being restarted. When I use Image.open("/storage/emulated/0/Download/....png"), it works, but when setting that as the filename in camera._take_picture(), the file isn't saved successfully. I tried editing the uri to start with 'content://' and then with nothing, but in the end nothing works. Is there a way to fix this? def on

Android kivy where to put application files (ini, images db etc)

夙愿已清 提交于 2020-01-03 16:41:19
问题 I've created a prototype application for Android using kivy. It has compiled in buildozer and I've uploaded in to an Android device. But I'm nor sure where to put app dependent files like the ini file, images database etc. Any help greatly appreciated 回答1: You can arrange them to taste - as long as you tell buildozer to include them apk (i.e. by setting the file types, directories etc to be included) and access them with relative paths in your code, they will work the same way on the device.

Aidl not found error while using buildozer android -v debug

狂风中的少年 提交于 2019-12-25 02:57:19
问题 I'm trying to create an android apk file that I can run on my phone using buildozer and kivy. Unfortunately, whenever I run the command buildozer -v android debug , the command prompt returns the error Aidl not found, please install it . I've already tried to simply do sudo apt-get aidl followed by sudo apt-get update , but that still results in the same error. Also, I'm not sure if this is relevant to the issue, but when I open up the file explorer on the ubuntu 16.04 virtual machine, there

python kivy with plyer app crashes on android (camera)

岁酱吖の 提交于 2019-12-23 18:35:32
问题 I develop kivy application using plyer. Build by buildozer and starting app on android succeeded, but application crashes when I push the button starting a camera, and nothing is output in logcat. I work without a problem when I carry out the same code in kivylauncher. It was similar even if I tested it with an accelerometer. I think that necessary setting may be short when I build application using plyer. --- source code --- from kivy.app import App from kivy.uix.floatlayout import

use opencv, cv2.videocapture in kivy with android - python for android

我是研究僧i 提交于 2019-12-23 13:13:03
问题 I have been working for few days, for trying to use cv2.VideoCapture() in python-for-android. I'm using kivy with buildozer to build apk for android. Here is my code from kivy.app import App from kivy.uix.image import Image from kivy.clock import Clock from kivy.graphics.texture import Texture import cv2 class KivyCamera(Image): def __init__(self, capture, fps, **kwargs): super(KivyCamera, self).__init__(**kwargs) self.capture = capture Clock.schedule_interval(self.update, 1.0 / fps) def

How to fix Buildozer build fails with cmake error

谁说胖子不能爱 提交于 2019-12-20 06:27:03
问题 I am trying to build a Kivy app with buildozer. I have upgraded to buildozer 0.39. The build fails with: File "~/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /bin/rm -f CMakeCache.txt CMakeFiles/ STDOUT: /bin/rm: cannot remove 'CMakeFiles/': Is a directory I have installed cmake version 3.5.1 Edit 18 Apr 2019 cython version 0.21 installed. I have uninstalled cmake and reinstalled version 3.14.2 using the instructions

SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure [Kivy]

旧城冷巷雨未停 提交于 2019-12-14 02:38:46
问题 In my app I am fetching JSON from various sites but I get handshake failure on a particular site. My app works fine on windows but fails on android. here is log snipet which I have doubt on. I guess there is some certificate issue. I/python (16801): /data/data/org.test.coinswatch/files/app/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this

Kivy App build with Buildozer. APK crash

一个人想着一个人 提交于 2019-12-13 09:55:56
问题 I am using Oracle VirtualBox running Ubuntu 16. I have been able to build apk files for a while until my latest build. My program will run and keep its functionality when run with python 2.7 on the same Virtual machine. When i install the .apk file on my Samsung S3 it shows the standard kivy loading screen then crashes after around 20 seconds. PLEASE HELP I ran the latest build with verabose below is the log file. https://drive.google.com/open?id=0B1XW1ekAndYiT2NrUTRNeHZhVGc EDIT After