buildozer repeated downloads

353 views
Skip to first unread message

Anuradha Laxminarayan

unread,
Jan 27, 2015, 6:44:18 AM1/27/15
to kivy-...@googlegroups.com
I built my first kivy hello world app on ubuntu 14.10 (utopic) and downloaded to my phone.
Worked like a charm!

But on a second call to "buildozer -v android debug" , it seems to download "Android SDK Tools, revision 24.0.2" and other tools all over again.
Why should there be more downloads for a re-build?

More generally, my system is already setup with python2.7, kivy, pygame etc and kivy-example apps running fine.  Building
it for android installation with buildozer, seems to be downloading the whole gamut of tools each time repeatedly.

Is there another way or am I missing something?

Thanks
Anuradha

Alexander Taylor

unread,
Jan 27, 2015, 10:18:39 AM1/27/15
to kivy-...@googlegroups.com
I don't know what it's doing, but could you make sure you're using the latest buildozer from github?

Anuradha Laxminarayan

unread,
Jan 27, 2015, 11:21:03 AM1/27/15
to kivy-...@googlegroups.com
Thanks, I can get the github (0.23). Mine is from pip (0.21)
 I really need to not have these downloads repeat else this is unusable.

-Anuradha

Alexander Taylor

unread,
Jan 27, 2015, 11:23:07 AM1/27/15
to kivy-...@googlegroups.com
Try getting the one from github, or I think tito has just pushed a new
one to pip which should be up to date (not sure how long this takes to
appear).
> --
> 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/PfYtHaAWB4g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kivy-users+...@googlegroups.com
> <mailto:kivy-users+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


signature.asc

Anuradha Laxminarayan

unread,
Jan 27, 2015, 11:53:42 AM1/27/15
to kivy-...@googlegroups.com
 installed. version up from 0.21 to 0.24
ran buildozer -v android debug again and once again it is downloading SDK-tools etc promising 1/2 hour.

Just can't understand why buildozer is downloading kivy python2.7 etc when they are clearly running.
Also wonder if I need to need to git clone python-for-android?

Alexander Taylor

unread,
Jan 27, 2015, 11:55:08 AM1/27/15
to kivy-...@googlegroups.com
Buildozer is downloading these things so that it can compile them for
arm/android. This is necessary. However, it should not need to do so
repeatedly for the same project - have you previously let it finish, and
not changed any of the buildozer.spec since then?

On 27/01/15 16:53, Anuradha Laxminarayan wrote:
> installed. version up from 0.21 to 0.24
> ran /buildozer -v android debug/ again and once again it is downloading
> SDK-tools etc promising 1/2 hour.
>
> Just can't understand why buildozer is downloading kivy python2.7 etc
> when they are clearly running.
> Also wonder if I need to need to /git clone python-for-android/?
signature.asc

Anuradha Laxminarayan

unread,
Jan 28, 2015, 6:42:46 AM1/28/15
to kivy-...@googlegroups.com
On Tuesday, 27 January 2015 22:25:08 UTC+5:30, Alexander Taylor wrote:
Buildozer is downloading these things so that it can compile them for
arm/android. This is necessary. However, it should not need to do so
repeatedly for the same project - have you previously let it finish, and
not changed any of the buildozer.spec since then?


After upgrading from buildozer from 0.21 to 0.24, I ran it again. Now the bin directory does not have any generated application file.
Instead it ended with this backtrace below.

[If I remember right, earlier with 0.21 there were some errors regarding tar-files
However I did not save those logs]


Ending of buildozer build logs

License stuff... elided
=======================================
June 2014.
   
Do you accept the license 'android-sdk-license-5be876d5' [y/n]: y

Installing Archives:
  Preparing to install archives
  Downloading Android SDK Build-tools, revision 21.1.2
  Installing Android SDK Build-tools, revision 21.1.2
    Installed Android SDK Build-tools, revision 21.1.2
  Done. 1 package installed.
# Android packages installation done.
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/anu/python-vit/androidHack/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream c_igraph cprotobuf cymunk django docutils ffmpeg gevent greenlet hostpython igraph jpeg kivent kivy libevent libpq libswift libxml2 libxslt libyaml lxml m2crypto msgpack mysql_connector netifaces numpy openssl paramiko pil plyer png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools sqlalchemy sqlite3 storm swift twisted txws wokkel zope
# Application requirements already installed, pass
# Check garden requirements
# Compile platform
# Run './distribute.sh -l'
# Cwd /home/anu/python-vit/androidHack/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream c_igraph cprotobuf cymunk django docutils ffmpeg gevent greenlet hostpython igraph jpeg kivent kivy libevent libpq libswift libxml2 libxslt libyaml lxml m2crypto msgpack mysql_connector netifaces numpy openssl paramiko pil plyer png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools sqlalchemy sqlite3 storm swift twisted txws wokkel zope
# Distribution already compiled, pass.
# Build the application #2
# Copy application source from /home/anu/python-vit/androidHack
# Create directory /home/anu/python-vit/androidHack/.buildozer/android/app
# Copy /home/anu/python-vit/androidHack/main.py
# Package the application
# Captured version: 1.0
# project.properties updated
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.24', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 967, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 85, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 97, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 194, in build
    self.target.build_package()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 535, in build_package
    self._generate_whitelist(dist_dir)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 500, in _generate_whitelist
    for wl in p4a_whitelist:
TypeError: 'NoneType' object is not iterable
~/python-vit/androidHack $

Alexander Taylor

unread,
Jan 28, 2015, 7:01:40 AM1/28/15
to kivy-...@googlegroups.com
This bug was introduced very recently and unfortunately made it into a
pip release. You can fix by downloading buildozer from the master
branch, or by setting something like 'android.p4a_whitelist = dummy' to
whitelist a module that doesn't exist.
signature.asc

Rupesh Pradhan

unread,
Oct 29, 2017, 9:41:34 AM10/29/17
to Kivy users support
Hi!,
This is 2017 and the problem still exists and its driving me crazy.

Can you please spell out step by step instruction with regards to your post so that I can try out your solution.

Regards

Rupesh
Reply all
Reply to author
Forward
0 new messages