-
Notifications
You must be signed in to change notification settings - Fork 551
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
python3.7-arm64 is not available #856
Comments
Except for python3.7 on macos. x64 builds are broken on macos-14 images[0], but python3.7 does not provide arm64 image[1] [0] actions/setup-python#855 [1] actions/setup-python#856 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Restrict python3.7 macos jobs to macos-13. x64 builds are broken on macos-14 images[0], but python3.7 does not provide arm64 image[1] [0] actions/setup-python#855 [1] actions/setup-python#856 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
In practise it means x64 for linux and windows and arm64 for macos. Restrict python3.7 macos jobs to macos-13. x64 builds are broken on macos-14 images[0], but python3.7 does not provide arm64 image[1] [0] actions/setup-python#855 [1] actions/setup-python#856 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
…d docs In practise it means x64 for linux and windows and arm64 for macos. Restrict python3.7 macos jobs to macos-13. x64 builds are broken on macos-14 images[0], but python3.7 does not provide arm64 image[1] [0] actions/setup-python#855 [1] actions/setup-python#856 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
I'm also seeing this (with Run actions/setup-python@v5
with:
python-version: 3.7
cache: pip
check-latest: false
token: ***
update-environment: true
allow-prereleases: false
Installed versions
Version 3.7 was not found in the local cache
Error: The version '3.7' with architecture 'arm64' was not found for macOS 14.4.1.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json |
This is causing downstream breakage in some core Python dependencies: psf/cachecontrol#333 3.7 is technically EOL, but many core Python tools (like |
Hello @jvesely, Thank you for creating this issue and we will get back to you once we have some feedback on this :) |
If I'm not mistaken, Python 3.7 has never been supported on macOS arm64 and upstream support in CPython has only been added for 3.8+ (in 3.8.10 for the 3.8 branch). |
For me this looks like it's probably that the |
This is the source of my observed breakage as well. It's perfectly fine for there to never be an arm64 build of Python 3.7, but it would be nice to have a clearer message to the effect of "this is happening because the runner is now an ARM runner, not because 3.7 has disappeared from x86 runners" 🙂 (Or potentially: could the ARM macOS runner use the x86 build? ARM macs have mature emulation support via Rosetta, so running the x86 3.7 build should work.) |
You can set |
GitHub Actions blog:
See workaround: actions/runner-images#9770 (comment) |
Does the CPython Core Team support Python 3.6 or 3.7 running on macOS ARM? I thought that they did not.
This is why I created the workaround: |
No, the first version of Python to support Apple Silicon was 3.8. That just barely supported ARM, as it was hitting the 1.5 year support window for new features as Apple Silicon came out (which is also when official binaries stop being built). 3.9 has much better support. Older versions do not support Apple Silicon1.
The next release of pip (24.1b1) drops support for 3.7. Most other PyPA packages have dropped support for running on 3.7 (build, packaging, hatch, flit, setuptools, twine, wheel, pipx, setuptools_scm, cibuildwheel, installer, auditwheel, distutils). The only PyPA tools I'm aware of that still support running on 3.7 are pyproject-metadata (because I haven't dropped it yet 😳) and virtualenv.
I would never want the default for Apple Silicon to be Intel emulation! It's nice if we have it as an option (if it worked), but trying to use it by default would cause issues (including potentially miscomputed binaries) as well as would be a terrible default in the future when Intel Apple machines are a memory. Footnotes
|
@jvesely I think this issue can be closed as |
agreed. Thanks everyone! |
Description:
Using default python-architecture for python 3.7
Action version:
v5
Platform:
Runner type:
Tools version:
python 3.7
Repro steps:
setup-python python-version: 3.7
Expected behavior:
python 3.7 installs and works
Actual behavior:
The text was updated successfully, but these errors were encountered: