KivyMD

305 views
Skip to first unread message

VannTile Ianito

unread,
Feb 22, 2016, 1:10:10 PM2/22/16
to Kivy users support
Hi,

Sorry for the short introduction, but what I need is to find out how to fix the following error.


# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd /home/ubuntu/workspace/appMD/.buildozer
 
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 
Dload  Upload   Total   Spent    Left  Speed
 
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
# Install requirement git+https://github.com/kivymd/KivyMD.git in virtualenv
# Run 'pip install --download-cache=/home/ubuntu/.buildozer/cache --target=/home/ubuntu/workspace/appMD/.buildozer/applibs git+https://github.com/kivymd/KivyMD.git'
# Cwd /home/ubuntu/workspace/appMD/.buildozer

Usage:  
  pip install
[options] <requirement specifier> [package-index-options] ...
  pip install
[options] -r <requirements file> [package-index-options] ...
  pip install
[options] [-e] <vcs project url> ...
  pip install
[options] [-e] <local project path> ...
  pip install
[options] <archive url/path> ...

no such option: --download-cache
# Command failed: pip install --download-cache=/home/ubuntu/.buildozer/cache --target=/home/ubuntu/workspace/appMD/.buildozer/applibs git+https://github.com/kivymd/KivyMD.git


It shows off because of the KivyMD requirements in the buildozer.spec I followed the instruction from the Gitlab link

Thank you very much.

Alexander Taylor

unread,
Feb 22, 2016, 7:10:27 PM2/22/16
to Kivy users support
I think this is due to a bug in python-for-android. You can try modifying its source to remove the --download-cache argument, wait for a fix to the old toolchain branch, or try the new toolchain in which this issue has already been fixed.

VannTile Ianito

unread,
Feb 22, 2016, 10:54:15 PM2/22/16
to Kivy users support



I found that the issue was that the pip changed its automated download cache and buildozer just has to remove it from __init__.py. I'll post the solution when I'll solve it

VannTile Ianito

unread,
Feb 23, 2016, 10:19:26 AM2/23/16
to Kivy users support
I have solved it by changing the lines in __init__.py
from
self.cmd('pip install --target={} {}'.format( #self.global_cache_dir, self.applibs_dir, module), self.applibs_dir, module


to

self.cmd('pip install --target={} {}'.format( self.applibs_dir, module), env=self.env_venv, cwd=self.buildozer_dir)



with the command


sudo pico /usr/local/lib/python2.7/dist-packages/buildozer/init.py


Reply all
Reply to author
Forward
0 new messages