Comments (12)
GitHub Actions blog:
Over the next 12 weeks, jobs using the
macos-latest
runner label will migrate from macOS 12 (Monterey) to macOS 14 (Sonoma).
See workaround: actions/runner-images#9770 (comment)
from setup-python.
This is causing downstream breakage in some core Python dependencies: psf/cachecontrol#333
3.7 is technically EOL, but many core Python tools (like pip
itself) have an compatibility policy that includes 3.7. As such, this should probably be supported on arm64 macOS runners until 3.7 is widely dropped (or at least from pip
and its dependencies, like cachecontrol
).
from setup-python.
(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 architecture: x64
to use x64 python on aarch64 runners. I'd be nice if that was the default for setup-python
but you'll probably hit #855
from setup-python.
I'm also seeing this (with python-version: 3.7
):
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
from setup-python.
Hello @jvesely, Thank you for creating this issue and we will get back to you once we have some feedback on this :)
from setup-python.
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).
It might be simpler to stick to macos-11/12/13 label if you want to test python<3.8
xref actions/runner-images#9770
from setup-python.
For me this looks like it's probably that the macos-latest
Github action runner appears to have switched to an M1 ARM mac, where at least last week macos-latest
was an x86 mac.
from setup-python.
For me this looks like it's probably that the
macos-latest
Github action runner appears to have switched to an M1 ARM mac, where at least last weekmacos-latest
was an x86 mac.
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.)
from setup-python.
Does the CPython Core Team support Python 3.6 or 3.7 running on macOS ARM? I thought that they did not.
- https://docs.python.org/3.9/whatsnew/3.9.html#macos-11-0-big-sur-and-apple-silicon-mac-support
- python/cpython#85272
- python/cpython#25806
- python/cpython#85272 (comment) No on Py37
- python/cpython#85272 (comment) Again no on Py37
This is why I created the workaround:
from setup-python.
Related Issues (20)
- Wrong python version installed HOT 8
- J HOT 1
- Slow download HOT 4
- Caching conflicts when using `extra` dependencies HOT 2
- Unable to build requirement with pip HOT 4
- bad setuptools installation in actions/setup-python@v5 HOT 3
- my_script.py HOT 2
- Recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install HOT 10
- Allow passing installer args to the Windows MSI HOT 1
- Importing psycopg2 (installed via pip) reports: ImportError: /opt/hostedtoolcache/.../3.13.0-alpha.6/.../psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get HOT 1
- macos-14-arm64 with provisionner 2.0.361.1+33a726b54233caea13315dba3887b0e7c5a1d482 can no longer load Python extension HOT 6
- Python 3.8 and 3.9 not found on macOS HOT 11
- Python Path is always first HOT 1
- no such option: --root-user-action HOT 23
- Failing with current ubuntu:latest container HOT 7
- x64 python fails on arm64 images HOT 5
- Intermittent failures during Post Setup Python step for MacOS HOT 4
- Unable to locate 'pip' when using cache HOT 7
- python-3.7.17-darwin-x64 has broken readline module due missing libncurses HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-python.