kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.75k stars 504 forks source link

Buildozer attempts to download kivy from invalid url #1320

Open nusli opened 3 years ago

nusli commented 3 years ago

Versions

Description

I tried to run buildozer to package my app. However i noticed that inside the osx.py file it tries to download kivy if there is no Kivy.app present. For me the url from line 49 evaluated to "https://kivy.org/downloads/2.0.0/Kivy-2.0.0-osx-python3.dmg". Pasted into the browser i got a 404 error.

buildozer.spec

Command:

buildozer osx debug

Spec file:


[app]

# (str) Title of your application
title = Parcoursplaner

# (str) Package name
package.name = Parcoursplaner

# (str) Package domain (needed for android/ios packaging)
package.domain = parcoursplaner

# (str) Source code where the main.py live
source.dir = ./parcoursplaner

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

# (str) Application versioning (method 1)
version = 0.0.1

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = landscape

#
# OSX Specific

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 2.0.0

[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1
tshirtman commented 3 years ago

indeed, seems like it is https://kivy.org/downloads/2.0.0/Kivy.dmg instead

drernie commented 1 year ago

A possibly related issue, where it seems to be downloading an invalid Kivy.app disk image

% poetry run buildozer --version
# Check configuration tokens
Buildozer 1.4.0
# check if Kivy.app exists in local dir
# Extracting and installing Kivy...
hdiutil: attach failed - image not recognized

I can reproduce it with % hdiutil attach ./.buildozer/osx/platform/kivy-sdk-packager-master/osx/Kivy3.dmg

This is on macOS 13.1 (22C65 Darwin redemption.lan 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64