Can't convert python code for Barcodescanner to APK using Google Colab (with Kivy and buildozer) - kivy

I want to install a barcode scanner app on my android phone using python, kivy and buildozer.
However when I used the python script from this github page (https://github.com/vijethph/Barcode-Scanner/releases) I was unable to install the APK file on my android phone.
I already tried to:
Converted the python script to an APK file with Kivy and Google Colab (Buildozer)
Allowed install from third parties
Checked module packages versions
I am currently using python 3.10.9

Related

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

is it possible to make a combined installer for an electron app and a python?

I have an electron application.
my app is using python for her living.
by using electron-packager and then electron-installer-windows
by the tutorial in https://github.com/electron-userland/electron-installer-windows
i made .exe(portable version) and .msi(installation version) files out of it.
the thing is, i want to give my clients 1 file (either msi or exe) that will let them use the application. (will install python and then automatically install my electron msi).
any suggestions?

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.

Kivy on Qpython3 (Android)

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.

Resources