kivy

kivy with error 'unable to get a window'

可紊 提交于 2020-01-16 05:00:25
问题 Anyone know how to use kivy? I installed it on my window7, python2.7. When I run following code: import kivy from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): return Label(text='Hello World!') if __name__ == '__main__': MyApp().run() it gives following error: Unable to get a Window, abort. I tried on python3.4, same error. Anyone know how to solve this problem? Please. 回答1: There is an option that sdl2 can't find dlls needed to load *.png Try to find

Python Kivy - Why is Buildozer failing to push program to my phone?

↘锁芯ラ 提交于 2020-01-16 03:37:06
问题 I'm trying to run a simple Kivy testapp on Android, but I'm having problems getting Buildozer to build and push the APK to my phone. I'm running it inside a Linux (Ubuntu 64-bit) virtual machine; my host machine runs Windows 10. I have installed all prerequisites that I know of: zlib1g-dev, cython, openjdk-8-jdk, git, pip. I'm trying to run "buildozer android debug deploy run" as per the Kivy documentation's instructions and it seems like Buildozer gets pretty far into the process, but

Kivy: Starting and Stopping Threads When Button is Clicked

风格不统一 提交于 2020-01-15 15:43:09
问题 I'm having trouble with the threading in Python and Kivy. I'm trying to implement threading in my kivy app. Basically, when I click a button and the screen switches to the next one, I want to launch a thread, and when I click the 'back' button, the thread should stop. It's a pretty simple task, but my current code doesn't end the thread once I pressed 'back'. Here is my code. I'm only including the necessary parts: KV: <MenuScreen>: canvas.before: Rectangle: pos: self.pos size: self.size

Kivy app on android only loads (3 seconds) and then closes itself

不打扰是莪最后的温柔 提交于 2020-01-15 12:13:21
问题 SOLVED PROBLEM : I would like to ask about a Kivy-Python app just built using buildozer on the Oracle virtual machine. The app is written in Windows, python 3 using kivy and depends on numpy , and some .png file. Building the apk file : On the virtual machine Linux terminal, I have set the project folder that contains the main file main.py , and then run: buildozer android debug the process by this line took quite some time. The apk file has size of 11MB. After I plug in the phone, I ran (on

Standalone kivy application fail to run on a different machine

懵懂的女人 提交于 2020-01-15 09:34:28
问题 I am new to kivy and I was able to finally finish my project and compile it into a single executable using pyinstaller and its spec file. If I try to launch it on a machine with no kivy or python installation it always fails with this error (Below). I have looked and researched amny articles but most of them assume that kivy or the path of the missing png or gstreamer to be in the PATH but my machines where I am trying to launch does not have python or kivy. Can someone please help me here?

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

别等时光非礼了梦想. 提交于 2020-01-15 07:13:20
问题 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

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

How to build kivy with sublime text mac OSX

青春壹個敷衍的年華 提交于 2020-01-15 03:55:06
问题 I want to be able to build kivy programs from sublimetext2 by pressing cmd+B I have added a kivy build as { "cmd": ["kivy", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)" } but each time the error is Errno 2] No such file or directory [cmd: [u'kivy', u'-u', u'/Python_code/Test.py']] [dir: /Python_code] [path: /usr/bin:/bin:/usr/sbin:/sbin] [Finished] What is that i am missing in making build setting? 回答1: Unless your kivy executable is in one of the directories listed in

Kivy - windows - Unable to find any valuable Window provider at all

匆匆过客 提交于 2020-01-15 02:46:52
问题 I am starting with kivy. here is the sample code I am running. import kivy from kivy.app import App from kivy.uix.button import Label kivy.require('1.9.0') class HelloApp(App): def build(self): return Label(text='Hello World!') if __name__ == "__main__": HelloApp().run() and here is the traceback I am getting: [INFO ] [Logger ] Record log in C:\Users\monac\.kivy\logs\kivy_16-11-23_9.txt [INFO ] [Kivy ] v1.9.1 [INFO ] [Python ] v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64

Kivy - windows - Unable to find any valuable Window provider at all

試著忘記壹切 提交于 2020-01-15 02:46:25
问题 I am starting with kivy. here is the sample code I am running. import kivy from kivy.app import App from kivy.uix.button import Label kivy.require('1.9.0') class HelloApp(App): def build(self): return Label(text='Hello World!') if __name__ == "__main__": HelloApp().run() and here is the traceback I am getting: [INFO ] [Logger ] Record log in C:\Users\monac\.kivy\logs\kivy_16-11-23_9.txt [INFO ] [Kivy ] v1.9.1 [INFO ] [Python ] v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64