-
Notifications
You must be signed in to change notification settings - Fork 553
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
Python <3.10 not available on new macOS M1 runners #808
Comments
Hello @agriyakhetarpal |
actions/python-versions#214 enabled 3.8 & 3.9 for macOS arm64. It's probably a matter of starting the builds there ? |
Some versions of Python do not currently have builds available via actions/setup-python for the Apple Silicon M1 (64-bit ARM) runner used for macos-14. This excludes those. - Python 3.7 is EoL and builds for it are no likely to be provided for newly available platforms on GitHub Actions. - Python 3.8 and 3.9 are still supported by the Python Software Foundation. Builds for them are not currently avaialable on the GHA M1 runners, but it appears this may not be intentional. See actions/setup-python#808. If those versions become available, then they can be reenabled. - Later versions of Python are available.
This is a follow up commit to my previous commit [1], which upgraded GitHub Actions runner for macOS builds to 'macos-14' (#868). While we still support Python 3.9 to build Mozc on macOS environment, currently we cannot use 'setup-python' to set up Python 3.9 in 'macos-14' runner [2]. Also we don't use 'setup-python' in other platforms such as Windows build. For simplicity, let's just use the default python in the runner [3], which is Python 3.11 as of writing. Then we should no longer see errors from 'setup-python' in the build summary [4]. #codehealth [1]: 4af1a44 [2]: actions/setup-python#808 [3]: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md [4]: actions/setup-python#809 PiperOrigin-RevId: 604223079
The build for 3.8 & 3.9 was broken by actions/python-versions#223 |
This is blocking me. thanks @mayeut ! Can someone go review the PR please? It's only two lines but would make a difference in my workflows! |
I'll also note that |
related issue: actions/setup-python#808
I see that new releases are out with Python 3.8 and Python 3.9 on arm64 macOS, thanks to @mayeut for the fix! I just tested and they still don't work, but it should be a matter of time before this can be closed – all that should be left is that the |
Hello @agriyakhetarpal We are supporting python 3.8 and 3.9 versions for macos 14 now. Please test your workflows. Feel Free to reach out to us in case of any issues. |
Working as intended, now. Thank you, @HarithaVattikuti! |
Hi, I still have issues with python 3.8, 3.9 and 3.10: Does not happen on 3.11. Looks like the libintl is missing. Is this automatically running on M1 ? Then why does it work for 3.11? I did not adjust the yml , which uses macos-latest .
|
To answer my own question, the reason for this is that it downloads the wrong package (python-3.8.18-darwin-x64.tar.gz) because I had explicitly requested the X64 architecture in my workflow:
Commenting it out, fixed that. I guess many people have this in their workflows and it is easy to overlook. |
…hon#808), re-include python 3.8 & 3.9.
…thon#808), no longer exclude python 3.8 & 3.9.
These were excluded in 9ad28c3 (gitpython-developers#1817) due to actions/setup-python#808, which was later fixed by actions/python-versions#259. Because Python 3.7 has been end-of-life for a while, it is very unlikely to have AArch64 builds added in python-versions for use on GitHub Actions CI runners (preinstalled or via setup-python).
Description:
Hello, we are trying to use
setup-python
with 3.8 and 3.9 on the new GitHub Actions macOS M1 runners (i.e.,runs on: macos-14
). It does not appear to have Python 3.8 and 3.9 and the oldest darwin-arm64 Python version available in the manifest is Python 3.10.11.Justification:
Python 3.8 will not be EOLed until September/October this year, and Python 3.9 will be EOLed in 2025 therefore it should be a good idea to support these older Python versions, considering that they are supported on the darwin-x86_64 runner currently.
Are you willing to submit a PR?
I can try, thanks!
Edit, 24/04/2024: at the time of writing,
macos-latest
now points to M1 arm64 runners (the architecture has changed) and this is being rolled out to GitHub Actions users.macos-13
andmacos-12
still use amd64 (Intel).For those looking for a quick workaround at this time, just exclude these from your matrices:
The text was updated successfully, but these errors were encountered: