Repository navigation
Closed as duplicate
Description
Checklist
- the issue is indeed a bug and not a support request
- issue doesn't already exist: https://github.com/kivy/python-for-android/issues
- I have a short, runnable example that reproduces the issue
- I reproduced the problem with the latest development version (
p4a.branch = develop) - I used the grave accent (aka backticks) to format code or logs when appropriated
Versions
- Python: 3.9.20
- OS: macOS(15.1.1 (24B2091))
- Kivy: 2.3.1
- Cython:
- OpenJDK:
Description
when I call:
p4a recipes
in my terminal, it first ask me to install a openssl the info like this: (BTW, my python-for-android==2024.1.21)
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Prerequisite homebrew is met
[INFO]: Prerequisite autoconf is met
[INFO]: Prerequisite automake is met
[INFO]: Prerequisite libtool is met
[INFO]: Prerequisite pkg-config is met
[INFO]: Prerequisite cmake is met
[ERROR]: Error: The following formulae are not installed:
openssl@1.1
[ERROR]: Prerequisite openssl is not met
[INFO]: Found JAVA_HOME environment variable, using it
[INFO]: Found a valid JDK at /System/Volumes/Data/Users/xxxxx/Library/Java/JavaVirtualMachines/jdk-17.0.2+8/Contents/Home
[INFO]: Prerequisite JDK is met
[INFO]: No helper available for prerequisite: openssl on macOS
[INFO]: python-for-android can automatically install prerequisite: openssl
Do you want automatically install prerequisite openssl? [y/N] y
when I input y to install the openssl, get error:
[INFO]: Installing OpenSSL ...
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 "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/bin/p4a", line 8, in <module>
sys.exit(main())
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/entrypoints.py", line 17, in main
from pythonforandroid.toolchain import ToolchainCL
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/toolchain.py", line 25, in <module>
check()
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/checkdependencies.py", line 69, in check
check_and_install_default_prerequisites()
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/prerequisites.py", line 404, in check_and_install_default_prerequisites
prerequisite.install()
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/prerequisites.py", line 60, in install
self.darwin_installer()
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/site-packages/pythonforandroid/prerequisites.py", line 285, in darwin_installer
subprocess.check_output(["brew", "install", self.homebrew_formula_name])
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/xxxxx/xxxxx/mambaforge/envs/ai-3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['brew', 'install', 'openssl@1.1']' returned non-zero exit status 1.
Metadata
Metadata
Assignees
Labels
No labels
Activity
coki230 commentedon Jan 20, 2025
I have checked this issue in the code, the issue caused by the file of
prerequisites.py, in the code there have a code ofhomebrew_formula_name = "openssl@1.1". but this have changed in the new code of the branch ofdevlop. so if you have this issue same as me, you can install the package by new code. not the new version now.