Kivy on Qpython3 (Android) - kivy

How I can use the Kivy framework in Qpython3 (Python 3.2 for android) app?
I know that Qpython (Python 2.7 for android) app support this framework.
pip_console don't install kivy. I have an error, when I try to install it. Please help me.

Edit: Kivy now supports python3 on Android, though qpython would still have to include this (or a similar build process) to have kivy work in qpython3.
You can't right now, as kivy does not have a python3-supporting backend on android.
We're working towards adding one, at which point I quess qpython may look at adding support in qpython3.

From kivy documentation http://kivy.org/docs/installation/installation.html
NOTE: Currently, packaging only works with Python 2.7. We are working on Python 3.3+ support, but for now if you plan to distribute your package on any platform you should use Python 2.7.

Related

How to Enable NEON in OpenCV by using ndk-build on Android Platform?

I am new to Android platform. I have already included openCV library in my c++ code and successfully built an .so file by using ndk-build command. The app has already successfully run on my android phone. My question is how to enable NEON for a better performance? I have already included "LOCAL_ARM_NEON := true" in my .mk file but it did not seem to work. I will really appreciate your help!

I am trying to install Kivy again it is shows this warning

this error and warning is showing when I tried to install Kivy
As Python 3.10 is still currently relatively new and library developers need to recompile their package to the newest version, there is currently no way to install Kivy and its dependencies on Python 3.10 . I suggest you downgrade to Python 3.9 or even 3.8 for the installation to succeed.

Buildozer not using correct kivy version when packaging for android

I am having a couple of problems packaging my Kivy app for android which may, or may not be related:
The only packages my app imports other than Kivy, are the time, and math modules. When I add either or both of them to the requirements in the buildozer spec file, I get a "pip._internal.exceptions.DistributionNotFound: No matching distribution for time." error. When I don't include them in my requirements, the build is successful, but crashes upon open with the error:
"Exception: The version of Kivy installed on this system is too old. (You have 1.11.1, but the application requires 2.0.0)"
I am doing the install in a VirutalBox on Ubuntu, and have followed the installation procedure outlined in the Kivy, and Buildozer documentation, as well as following a tutorial by Eric Sandberg on YouTube. I have set the Kivy version in the buildozer spec file, and installed Kivy 2.0.0 on the VM using pip. When I pip freeze, it shows the correct version of Kivy. One thing I have noticed is the when I try and install it with "apt-get install python3-kivy", it says kivy 1.10 is installed and that this is the most up to date version.
This seems like an easy problem to address but I have cannot figure out why it is trying to use this version of Kivy! Please let me know if any other information is required to debug. The spec file is hardly changed, other then specifying Kivy=2.0.0 in requirements.
Here are the logs:
Here are the requirements:
You don't have to add math and time in requirements of your buildozer.spec file as they are inbuild modules in python. So, they will automatically get added when you add python3 in your requirements.
To use a newer versio version of kivy you have to specify it in your requirements. In requirements you have to add like requirements=python3,kivy==2.0.0rc4 or any other version you want to use. Also, after changing requirements you might have to rebuild you package. You have to delete .buildozer directory and again run the buildozer using buildozer android debug deploy run

how to import kivy using IDE

What is the best way to install kivy in pycharm. I am faced with number of errors in trying to install this library. Not sure if this is common .Can someone advise?
Follow the installation instructions on kivy.org, within the pycharm python environment.
If you have a specific issue with this, ask about the issue, not about the general concept.

converting OpenCV not working with Python-for-android

I have a pretty solidly-functioning Kivy app, written in python and using the OpenCV2 library. having gotten it working on my laptop (windows) I then tried to convert it into an android APK using the python-for-android VM. after some issues (including adding more space to the VM and installing OpenCV on it) I managed to compile the APK successfully.
however, when running the app on android, the opencv part doesn't seem to be working. the kivy menus and such work fine, but loading the video - the job that opencv handles - simply doesn't happen. I'm going to try and connect the android device to the VM directly in order to try and get some debug information, but for now, can anyone think of any reasons why I might be having these issues?
thanks.

Resources