kivy / buildozer

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

Cannot build android on mac due to openssl #1872

Open hemna opened 2 days ago

hemna commented 2 days ago

Trying to run

buildozer -v android release

...

Error: openssl@1.1 has been disabled because it is not supported upstream! It was disabled on 2024-10-24.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1245, in <module>
    main()
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 17, in main
    from pythonforandroid.toolchain import ToolchainCL
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 25, in <module>
    check()
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/checkdependencies.py", line 69, in check
    check_and_install_default_prerequisites()
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/prerequisites.py", line 404, in check_and_install_default_prerequisites
    prerequisite.install()
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/prerequisites.py", line 60, in install
    self.darwin_installer()
  File "/Users/I530566/devel/mine/hamradio/kivy/AprsChat/.buildozer/android/platform/python-for-android/pythonforandroid/prerequisites.py", line 285, in darwin_installer
    subprocess.check_output(["brew", "install", self.homebrew_formula_name])
  File "/Users/I530566/.pyenv/versions/3.12.7/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/I530566/.pyenv/versions/3.12.7/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['brew', 'install', 'openssl@1.1']' returned non-zero exit status 1.
# This buildozer version requires a python-for-android version with AAB (Android App Bundle) support. Please update your pinned version accordingly.
# Check configuration tokens
hemna commented 1 day ago
❯ brew install -f openssl@1.1
Error: openssl@1.1 has been disabled because it is not supported upstream! It was disabled on 2024-10-24.