Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 302 recipe download file #573

Closed
brussee opened this issue Jan 11, 2016 · 1 comment · Fixed by #575
Closed

HTTP 302 recipe download file #573

brussee opened this issue Jan 11, 2016 · 1 comment · Fixed by #575

Comments

@brussee
Copy link
Contributor

brussee commented Jan 11, 2016

Downloading from sourceforge autoselecting an mirror results in a HTTP 302 instead of a direct download.
Trying to build this clean recipe below results in:

RAN: '/bin/tar xzf ~/.local/share/python-for-android/packages/boost/boost_1_58_0.tar.gz'
  STDOUT:
  STDERR:
gzip: stdin: not in gzip format
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now

Because this .tar.gz file is in reality the 302 HTML (ASCII) page.

from pythonforandroid.toolchain import Recipe, shprint, shutil, current_directory
from os.path import exists, join

class BoostRecipe(Recipe):
    version = '1.58.0'
    url = 'http://downloads.sourceforge.net/project/boost/boost/{version}/boost_1_58_0.tar.gz'

recipe = BoostRecipe()
@brussee
Copy link
Contributor Author

brussee commented Jan 11, 2016

wget is able to download from the given url so perhaps the ChromeDowloader can be replaced with this:?
https://pypi.python.org/pypi/wget

brussee added a commit to brussee/python-for-android that referenced this issue Jan 11, 2016
brussee added a commit to brussee/python-for-android that referenced this issue Jan 11, 2016
brussee added a commit to brussee/python-for-android that referenced this issue Jan 12, 2016
brussee added a commit to brussee/python-for-android that referenced this issue Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant