kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.33k stars 1.84k forks source link

Current default Python version (3.8.9) is failing to build on latest macOS releases #2568

Closed misl6 closed 2 years ago

misl6 commented 2 years ago

Checklist

Versions

Description

This is due to a bug that has been fixed on the CPython upstream.

As a temporary workaround, pinning version 3.9.12 for both hostpython3 and python3 should fix the issue.

nkehoe commented 2 years ago

How do you pin the versions? I set python3 and hostpython3 ==3.9.12 in the .spec file but I get the same error

misl6 commented 2 years ago

How do you pin the versions? I set python3 and hostpython3 ==3.9.12 in the .spec file but I get the same error

Have you cleaned your .buildozer folder?

slomeks commented 2 years ago

@nkehoe if you haven't found it so far: assure you have requirements specified as follows in your buildozer.spec file: requirements = python3==3.9.12, hostpython3==3.9.12

whyameye commented 2 years ago

my Mac had Python 3.8.9 so I installed 3.9.13 from brew, made sure all the necessary modules were there, made sure terminal was defaulting to Python 3.9.13, changed the buildozer.spec file : requirements = python3==3.9.13, hostpython3==3.9.13, deleted the .buildozer contents, tried again same error. Asked for help in the support channel on discord but things seem pretty dead there.

misl6 commented 2 years ago

my Mac had Python 3.8.9 so I installed 3.9.13 from brew, made sure all the necessary modules were there, made sure terminal was defaulting to Python 3.9.13, changed the buildozer.spec file : requirements = python3==3.9.13, hostpython3==3.9.13, deleted the .buildozer contents, tried again same error. Asked for help in the support channel on discord but things seem pretty dead there.

Hi @whyameye!

If you still need help, feel free to ping me (m1sl6) on #android-support channel.

misl6 commented 2 years ago

Fixed via #2586 (as the new default is 3.9.9 ), feel free to re-open the issue if you're still encountering it on the develop branch.