Kivy Complete VM

1,297 views
Skip to first unread message

ZenCODE

unread,
Aug 13, 2017, 9:42:01 AM8/13/17
to kivy-...@googlegroups.com

Greetings


This post serves to announce the impending upload of the Kivy Complete VM. The goals of this VM is provide a complete, flexible and fully functional run and build environment for Android. The idea is to remove any technical frustrations setting up Kivy or Buildozer, and have a VM that 'just works'. In my books, the technical barriers to building APK's is way too high. I want lower that.


Similarly to the official Kivy VM, this will be provided as a VirtualBox appliance. Main features include:


* Kivy 1.10.0 installed and running in Python 2.7.12

* Kivy 1.10.0 installed and running in Python 3.5.2

* buildozer 0.33 installed and out-of-the-box support for:
    * Android SDK 23
    * Android API 19
    * buildozer support for building both Python2 (hostpython2) and Python3 (hostpython3) APKs

The Kivy and Buildozer installations are built from source (github checkouts) into separate folders, so that master branch can be checked out and built/installed without complication. The VM in based on Xubuntu 16.04 LTS and includes a ReadMe.txt on the desktop explaining where things are and how to do stuff.


So, the question is where do I put this? Should it be uploaded to the kivy website? It's too large for my google drive and I have no personal hosting space. At over 10GB, it's not small and it contains many things you won't use. But you should be able to build and run kivy apps without issue (that is the goal, not minimalism). If you would find this VM useful, please also make a post here so we can gauge the need for such a VM.


Thanks and peace out


Zen-CODE

Dave McCormick

unread,
Aug 13, 2017, 2:00:29 PM8/13/17
to kivy-...@googlegroups.com
I would find it useful.   Getting Kivy to work on a Redhat machine is seemingly impossible.  So I use a VM myself for Kivy.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ViT Kol

unread,
Aug 13, 2017, 5:26:27 PM8/13/17
to Kivy users support
Upload to mega.nz

воскресенье, 13 августа 2017 г., 16:42:01 UTC+3 пользователь ZenCODE написал:

Stephen Brown

unread,
Aug 13, 2017, 11:09:18 PM8/13/17
to Kivy users support
I'm a Fedora KVM virtual machine user. So while I understand the math behind the Oracle VM plus Ubuntu work station implementation decision, I am not willing or able to make the leap to this cirtualization toolchain.

My enterprise deployments revolve around Redhat's eco system. That means a heavy investment in KVM and or Docker techology plus Flatpacks, RPM's and the like.

Whatever deployment strategy is picked, if it can support the uoloading of additional VM's (aka KVM) this would be most appreciated. Not asking that you do the development by the way. I'd be willing to take a crack at converting the VM. The more difficult part would be in recreating this on another Linux desktop.

yoav glazner

unread,
Aug 14, 2017, 2:12:53 AM8/14/17
to Kivy users support
I find it **very** useful! if you can find a place to store it would be great!

Samuel Loury

unread,
Aug 14, 2017, 3:57:52 AM8/14/17
to ZenCODE, Kivy users support
ZenCODE <zenkey....@gmail.com> writes:
Hi,

> This post serves to announce the impending upload of the Kivy Complete VM.
> The goals of this VM is provide a complete, flexible and fully functional
> run and build environment for Android. The idea is to remove any technical
> frustrations setting up Kivy or Buildozer, and have a VM that 'just works'.
> In my books, the technical barriers to building APK's is way too high. I
> want lower that.

That's very nice and appreciated. In case the VM build process
involved only calling command line tools and not GUI interaction, could
you share those commands so that one can create a Dockerfile or a
Vagrantfile out of it?

--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A

Karla Muguerza

unread,
Aug 15, 2017, 12:13:22 PM8/15/17
to Kivy users support
Please that'll be awesome! Hope you can find where to store it

ZenCODE

unread,
Aug 15, 2017, 12:33:57 PM8/15/17
to Kivy users support
Hi all

Thanks for the feedback. The VM is ready but I am really struggling to upload it. I'm trying mega.nz but just hangs on the upload. I'll try a different browser tomorrow, but also, living in Africa, we have pretty flaky connections. The image is 6.5gb and any break means you have to start from the beginning.

@Samuel Loury. The build command would be the standard bulldozer commands, so no should be GUI required.

Peace out

Matthew Einhorn

unread,
Aug 15, 2017, 3:36:01 PM8/15/17
to Kivy users support
I'm not sure how much server space we have, dessant would know. But we can try kivy org google drive. Although that also has limited space. Is it compressible?

Torrent is also a good choice. I think tshirtman seeded it for previous VM versions.

Also, didn't Tito recently update the android VM? How is this different?

--

ZenCODE

unread,
Aug 15, 2017, 5:12:52 PM8/15/17
to Kivy users support
@matham. It's already compressed during the 'Export appliance' process in VBox, so I doubt i will get much smaller. Yes, there is a new buildozer VM, but all of our devs (including myself) encountered multiple issues when trying to build as the VM still has to download the Android SDK and NDK and compile requirements. This seems quite fragile currently. Plus it cannot run a Kivy app.

This VM runs Kivy apps in Py2 and Py3 and has the SDK 23 / API 19 pre-installed with compiling an APK using these specs tested and functional.

Let me try mega.nz again with a different browser. If that does not work, I'll ask at the Python User Group meeting tomorrow if anyone can let me use their fibre connection for the task. And that gives me another chance to mention Kivy to them... :-)

st...@btp.nl

unread,
Aug 16, 2017, 12:07:19 AM8/16/17
to Kivy users support
@zencode, can we at braintrainerplus help you?

qua non

unread,
Aug 16, 2017, 1:51:24 AM8/16/17
to kivy-...@googlegroups.com
Hi Zencode,

Most of the sms provided by kivy.org were able to run kivy directly, if the current one does not, then it's just a matter of installing the dependencies onto it.

My point is the vm on kivy.org is 1.2Gb compressed, adding kivy would at most add another 100 mb when compiled from source. 

I am confused on why your VM takes so much more,  perhaps you did not run zero free on it ?

Regards
Akkshay

On Wed, Aug 16, 2017 at 9:37 AM, <st...@btp.nl> wrote:
@zencode, can we at braintrainerplus help you?

ZenCODE

unread,
Aug 16, 2017, 3:40:34 AM8/16/17
to kivy-...@googlegroups.com
@Stas. Thanks for the offer. The uploading seems to work much better using Vivaldi (was using FireFox), so hopefully that works.

@qua-non. It was 9gb before zero-ing it. Keep in mind, it contains all the build tools (for Py2 + Py3), all dependencies, full checkouts of Kivy + Buildozer, the SDK, the NDK etc. My goal was not a small machine, but a complete one. With today's connectivity I don't think people will mind a few extra GB to avoid the complexities and installing and configuring Kivy/Buildozer. If size is an issue, they don't have to use this. Once it's available, it's post more details on what's inside it...

Dave McCormick

unread,
Aug 16, 2017, 6:26:22 AM8/16/17
to kivy-...@googlegroups.com
I am looking forward to a complete solution.  

The size does not matter as long as it works.  

On Aug 16, 2017 12:40 AM, "ZenCODE" <zenkey....@gmail.com> wrote:
@Stas. Thanks for the offer. The uploading seems to work much better using Vivaldi (was using FireFox), so hopefully that works.

@Askhay. It was 9gb before zero-ing it. Keep in mind, it contains all the build tools (for Py2 + Py3), all dependencies, full checkouts of Kivy + Buildozer, the SDK, the NDK etc. My goal was not a small machine, but a complete one. With today's connectivity I don't think people will mind a few extra GB to avoid the complexities and installing and configuring Kivy/Buildozer. If size is an issue, they don't have to use this. Once it's available, it's post more details on what's inside it...

Geekademy

unread,
Aug 16, 2017, 11:34:52 PM8/16/17
to kivy-...@googlegroups.com, ZenCODE
Just a random guy's opinion here so take with a grain of salt, but I'd drop the
Python 2.X support. It just doubles+ the complexity of everything.

Not to mention, no *new* projects should be started in Python 2. The EOL date
is now just over two years away. Supporting it means new projects will be
tasked with a potentially big porting (and kivy toolchain) upgrade shortly.

Not to mention your own time, which could be put to better use making the Python
3 support better.


On 2017-08-16 00:40, ZenCODE wrote:

ZenCODE

unread,
Aug 17, 2017, 1:58:25 AM8/17/17
to Kivy users support, zenkey....@gmail.com
Hi all

I'm happy to say the VM is now available.

user: kivy
pwd: kivy


@Geekademy: It would be nice to go Python3 only, but that is not a deployment reality e.g. kivy-ios currently only supports python 2, so it's an unrealistic option for anyone wanting iOS deployment. But the VM supports both, so you are free to choose :-)

Dave McCormick

unread,
Aug 17, 2017, 5:11:32 PM8/17/17
to kivy-...@googlegroups.com, zenkey....@gmail.com
Thank you ZenCODE!!!!!  

I have it downloaded and it works!!

Just curious... which IDE or editor do you recommend / use when working with python / kivy ?

--

Karla Muguerza

unread,
Aug 17, 2017, 8:16:32 PM8/17/17
to Kivy users support, zenkey....@gmail.com
You are a charm! Thanks a lot for this!

ZenCODE

unread,
Aug 18, 2017, 1:58:04 AM8/18/17
to kivy-...@googlegroups.com, zenkey....@gmail.com
@Dave McCormick. Definitely PyCharm, although it is rather heavyweight and slow to load. It's debugging and feature set is outstanding though. As a matter of interest, I also have a file with adds syntax highlighting to kv files...

https://github.com/Zen-CODE/kivybits/tree/master/IDE

@Karla Muguerza. :-)

Geekademy

unread,
Aug 24, 2017, 1:06:54 PM8/24/17
to kivy-...@googlegroups.com

On 2017-08-16 22:58, ZenCODE wrote:
> @Geekademy: It would be nice to go Python3 only, but that is not a deployment
> reality e.g. kivy-ios currently only supports python 2, so it's an unrealistic
> option for anyone wanting iOS deployment.

Hi,

As someone who is writing a new app in Python3 and hoping to port it eventually
to iOS this is going to be a problem for me, and perhaps others. Previously it
was mentioned that the countdown clock on Python2 is already ticking and will be
here before we know it.

Is there a technical roadblock to Python3 on iOS, or just needs some time spent
on it?

I could fund some time on the project. Are there any others that want to join
and contribute either cash or effort to get Python3 working on iOS?

The savings in time from having to support Python 2 might help pay for itself as
well.

Matthew Einhorn

unread,
Aug 24, 2017, 6:08:23 PM8/24/17
to Kivy users support

Dave McCormick

unread,
Aug 26, 2017, 6:46:48 PM8/26/17
to Kivy users support
Is there a solution for SSL with Python 3 yet?
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

panisset...@gmail.com

unread,
Oct 10, 2017, 5:52:22 PM10/10/17
to Kivy users support
I want this VM.

Rogério
Message has been deleted

panisset...@gmail.com

unread,
Oct 11, 2017, 10:01:56 AM10/11/17
to Kivy users support
I can not download the VM, it gives out timeout. Do you have another option?
Rogério

Dave McCormick

unread,
Oct 11, 2017, 10:52:41 AM10/11/17
to kivy-...@googlegroups.com
I am uploading the VM to a DigitalOcean droplet.  My current upload speed is slow, 15 hours...

Will post back when it is ready.

Dave

--

ViT Kol

unread,
Oct 11, 2017, 11:18:52 AM10/11/17
to kivy-...@googlegroups.com
I can upload splited archives to another cloud

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/oXCz2kgD-Eg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.

ViT Kol

unread,
Oct 11, 2017, 2:16:22 PM10/11/17
to Kivy users support
https://cloud.mail.ru/public/4dQL/eTmk8AahA

среда, 11 октября 2017 г., 18:18:52 UTC+3 пользователь ViT Kol написал:

ZenCODE

unread,
Oct 12, 2017, 2:31:55 PM10/12/17
to Kivy users support
Hi all

I have been advised (by trusted parties), that hosting this on a trusted server is the only option. The VM could easily be modified, malware inserted, and offered as an alternative download location. Mega seems to be a dubious host...:-(

The most sensible option seems to have it hosted on an official Kivy server, and offered as an alternative to the official KivyVM. I am in the process of adding PyJnius support for Version 0.2 (amongst other improvements) and will explore this option when uploading. Other dev's would need to sanction and approve this for it to happen, but I doubt that will be a problem....

Peace out
Zen-CODE

Dave McCormick

unread,
Oct 13, 2017, 4:20:26 PM10/13/17
to kivy-...@googlegroups.com
If anyone wants the 0.1 version that Zen-CODE gave us I have a copy of it available.  Unmodified from when I downloaded it.

Once this is on an official Kivy server or when Zen-CODE makes version 0.2 available I will take this down.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.

ViT Kol

unread,
Oct 13, 2017, 11:39:39 PM10/13/17
to kivy-...@googlegroups.com
use checksum.

четверг, 12 октября 2017 г., 21:31:55 UTC+3 пользователь ZenCODE написал:

Pedro Sams

unread,
Nov 14, 2017, 2:16:50 PM11/14/17
to Kivy users support
Hi.
I do not understand a single thing in the Zen tutorial. When I want to generate the APK with Python 3 I must execute:

git checkout 1.10.0

And how much I want to generate the APK with Python 2 should I run:

git checkout master

Is this what the tutorial is saying?

Thank you very much !!

ZenCODE

unread,
Nov 14, 2017, 8:42:40 PM11/14/17
to Kivy users support
No need for that. Everything is installed and funtional. You only need to use git if you want to update and build any of the kivy projects. But it is already installed and working for python 2 and 3.

sac

unread,
Nov 14, 2017, 8:56:12 PM11/14/17
to Kivy users support
That would be awesome if you add Pyjnius with new version of Buildozer VM, thats solves most..

ZenCODE

unread,
Nov 15, 2017, 1:08:28 AM11/15/17
to Kivy users support
@sac. It is :-) It's just taking me a while to get around to the Python3 Android deployment using Crystax. One's that's working, I'll upload a 0.2 version with a checksum (there was concern over 'rogue' versions).

In time, another interesting suggestion is to investigate building for Windows using Wine? @KeyWeeUsr? Not sure if that is feasible or legal, but it's worth asking the question I think....

Pedro Sams

unread,
Nov 15, 2017, 1:40:53 AM11/15/17
to Kivy users support
I can not understand how I switch between the py2 and py3 versions without using virtualenv.

ZenCODE

unread,
Nov 15, 2017, 8:12:15 AM11/15/17
to Kivy users support
python main.py
python2 main.py
python3 main.py

ZenCODE

unread,
Nov 20, 2017, 1:48:43 AM11/20/17
to Kivy users support
md5 checksum added below the link. Thanks

sac

unread,
Nov 21, 2017, 12:57:59 AM11/21/17
to Kivy users support
Looks really interesting :)

sac

unread,
Nov 21, 2017, 9:54:19 PM11/21/17
to Kivy users support
Hi ZenCODE, It could be a silly question, but like to know if Kivy has any option to support Firefox OS phones, like we have for Android and IOS?

ZenCODE

unread,
Nov 22, 2017, 1:24:05 AM11/22/17
to Kivy users support
I very much doubt it as FireFox OS has been discontinued.


It's theoretically possible, but I doubt it's worth spending that amount of time on an Operating System that has no future.

sac

unread,
Nov 22, 2017, 1:54:58 AM11/22/17
to Kivy users support
I agree,  below is the reason I thought about it :) 

******************************
A fork called KaiOS have been used on a few feature phones, including Alcatel's OneTouch Go Flip[63] (known as Cingular Flip 2 on AT&T[64]), Reliance Jio's JioPhone(LYF F30C),[65][66] and Intex's Turbo+ 4G.[67] Primary features of the system is to bring support of 4G LTE, Wi-Fi, GPS and Wi-Fi with HTML5-based apps and longer battery life onto non-touch devices with optimized user interface, less memory and energy.[68] They are launched by the company known as "KaiOS Technologies Inc." in the US[69], with the company's president also being the president of the US branch of TCL Mobile.[70] T2 Mobile, a branch of TCL Corporation, is also responsible for maintaining modules in the KaiOS.[71]

*******************************

ZenCODE

unread,
Nov 24, 2017, 11:49:06 AM11/24/17
to Kivy users support
@sac. Thanks for that. Very interesting. We should keep an eye on this to see what level of adoption occurs. Kivy is, by design, very portable. The real question  is: is it worth the effort? Let's see where this goes. If KiaOS proves popular, it may be worth supporting..,

sac

unread,
Nov 24, 2017, 11:18:56 PM11/24/17
to Kivy users support
Hi ZenCODE,

Happy thanks giving :), just had a quick question with this VM, does it has hostpython2?

Thanks,
Sac


On Thursday, August 17, 2017 at 1:58:25 PM UTC+8, ZenCODE wrote:
Hi all

sac

unread,
Nov 25, 2017, 5:24:08 AM11/25/17
to Kivy users support
Right, lets see how it trends :)

ZenCODE

unread,
Nov 25, 2017, 1:40:31 PM11/25/17
to kivy-...@googlegroups.com
Yes, it supports hostpython2. It's done. I'm just trying to upload it now, but that is difficult in a 3rd world African country with small data caps and unstable connections....

Will post again when all is ready.

Thanks

Zen-CODE

sac

unread,
Nov 25, 2017, 10:03:19 PM11/25/17
to Kivy users support
How are you ZenCODE?

I tried to use the new VM, but I got distribution error, it says my build is in ../platform/ path, but i dont see the platform folder created.

Cython==0.26 for py3 which is by default with this VM, not sure if i have to downgrade this. Please advise :)

Download: https://mega.nz/#!YuIymALI!AT7scnLjlX9uqjhHEQc49TwVTyYnbB0IFPPCEFU2kOs

Thanks as always for your help..

sac

unread,
Nov 25, 2017, 10:29:39 PM11/25/17
to Kivy users support
Thank you so much ZenCODE, as the distribution error which got pasted below. It says Dist can be found in that location, but looks like platform folder is not created..Anyways will wait for the VM you are uploading :), thanks again

ster
[INFO]:    # Your distribution was created successfully, exiting.
[INFO]:    Dist can be found at (for now) /home/kivy/myappsrep/.buildozer/android/platform/build/dists/newtest
# Build the application #1                                                                          
# Copy application source from /home/kivy/myappsrep
# Create directory /home/kivy/myappsrep/.buildozer/android/app
# Copy /home/kivy/myappsrep/main.py
# Package the application
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer', 'console_scripts', 'buildozer')()
  File "/home/kivy/Repos/buildozer/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/kivy/Repos/buildozer/buildozer/__init__.py", line 1058, in run_command
    self.target.run_commands(args)
  File "/home/kivy/Repos/buildozer/buildozer/target.py", line 91, in run_commands
    func(args)
  File "/home/kivy/Repos/buildozer/buildozer/target.py", line 103, in cmd_debug
    self.buildozer.build()
  File "/home/kivy/Repos/buildozer/buildozer/__init__.py", line 212, in build
    self.target.build_package()
  File "/home/kivy/Repos/buildozer/buildozer/targets/android.py", line 642, in build_package
    version = self.buildozer.get_version()
  File "/home/kivy/Repos/buildozer/buildozer/__init__.py", line 717, in get_version
    ' (looking for `{1}`)'.format(fn, regex))
Exception: Unable to find capture version in ./main.py
 (looking for `__version__ = '(.*)'`)

sac

unread,
Nov 29, 2017, 2:58:12 AM11/29/17
to Kivy users support
Hi ZenCODE, I finally got sometime to look at this error and this was really easy to fix. 

Fingers crossed for the Ver2 of the VM :)

ViT Kol

unread,
Nov 29, 2017, 7:52:48 PM11/29/17
to Kivy users support
Size of file 452Mb

понедельник, 20 ноября 2017 г., 9:48:43 UTC+3 пользователь ZenCODE написал:

ZenCODE

unread,
Nov 30, 2017, 1:10:33 AM11/30/17
to kivy-...@googlegroups.com
Yes, it keeps breaking on the upload. I'll announce it when it's ready....

Dave McCormick

unread,
Dec 4, 2017, 9:11:53 AM12/4/17
to Kivy users support
Hi ZenCODE,

Have you had any luck uploading the new version?

ZenCODE

unread,
Dec 4, 2017, 11:26:47 AM12/4/17
to Kivy users support
Not yet. I've luckily managed to reduce the size to around 3.4GB but our connection is so dodgy it keeps breaking somewhere. I'll try again tomorrow and keep you posted..

Dave McCormick

unread,
Dec 4, 2017, 11:30:54 AM12/4/17
to kivy-...@googlegroups.com
Well thank you for trying!  

On Dec 4, 2017 9:26 AM, "ZenCODE" <zenkey....@gmail.com> wrote:
Not yet. I've luckily managed to reduce the size to around 3.4GB but our connection is so dodgy it keeps breaking somewhere. I'll try again tomorrow and keep you posted..

--

Geekademy

unread,
Dec 4, 2017, 3:06:51 PM12/4/17
to kivy-...@googlegroups.com
An option, split it with a split command and send the chunks.

Or a split zip file for newbies.

ZenCODE

unread,
Dec 6, 2017, 6:59:59 AM12/6/17
to Kivy users support

Dave McCormick

unread,
Dec 6, 2017, 1:32:42 PM12/6/17
to kivy-...@googlegroups.com
Downloaded and running !!

Thank you!!!!

--

sac

unread,
Dec 7, 2017, 2:00:23 AM12/7/17
to Kivy users support
Awesome ZenCODE, thanks for uploading..

Chung-Long Chen

unread,
Dec 7, 2017, 10:01:23 PM12/7/17
to Kivy users support
Downloaded VM and tried to build "zeroconf" and "netifaces" in requirements but it failed.



ZenCODE於 2017年8月13日星期日 UTC+8下午9時42分01秒寫道:

Greetings


This post serves to announce the impending upload of the Kivy Complete VM. The goals of this VM is provide a complete, flexible and fully functional run and build environment for Android. The idea is to remove any technical frustrations setting up Kivy or Buildozer, and have a VM that 'just works'. In my books, the technical barriers to building APK's is way too high. I want lower that.


Similarly to the official Kivy VM, this will be provided as a VirtualBox appliance. Main features include:


* Kivy 1.10.0 installed and running in Python 2.7.12

* Kivy 1.10.0 installed and running in Python 3.5.2

* buildozer 0.33 installed and out-of-the-box support for:
    * Android SDK 23
    * Android API 19
    * buildozer support for building both Python2 (hostpython2) and Python3 (hostpython3) APKs

The Kivy and Buildozer installations are built from source (github checkouts) into separate folders, so that master branch can be checked out and built/installed without complication. The VM in based on Xubuntu 16.04 LTS and includes a ReadMe.txt on the desktop explaining where things are and how to do stuff.


So, the question is where do I put this? Should it be uploaded to the kivy website? It's too large for my google drive and I have no personal hosting space. At over 10GB, it's not small and it contains many things you won't use. But you should be able to build and run kivy apps without issue (that is the goal, not minimalism). If you would find this VM useful, please also make a post here so we can gauge the need for such a VM.


Thanks and peace out


Zen-CODE

netifaces

ZenCODE

unread,
Dec 8, 2017, 1:07:25 AM12/8/17
to Kivy users support
@Chung-Long Chen

Yes, I cannot really test all requirements. Please make a new post with the full error log as these issues are not really related to the VM but (probably) the recipes themselves.
Reply all
Reply to author
Forward
0 new messages