Comments (5)
Hello @abravalheri, Thank you for creating this issue and we will look into it :)
from setup-python.
I don't think I am.
Sorry, I didn't mean "you"... I meant the code within the action.
I'm also experiencing the same issue as you, but wanted to share some information based other issues I've noticed with the new arm64 runners. I don't think github vetted the change to macos-14 (arm64) very well before making it the latest
. Ideally all the actions they maintain should have been compatible with new architecture out of the box.
from setup-python.
Update: even if I invert the order between checkout
and setup-python
so that setup-python
is the very first action to run, it still fails: pypa/setuptools#4343.
from setup-python.
macos-latest was recently changed from macos-13 to macos-14. macos-13 was x86_64, while macos-14 is arm64.
This action fails on macos-latest from python 3.8, 3.9, and 3.10... but seems to be okay with python 3.11.
Run actions/setup-python@v5
with:
python-version: 3.10
architecture: x64
check-latest: false
token: ***
update-environment: true
allow-prereleases: false
Installed versions
Version 3.10 was not found in the local cache
Version 3.10 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.10.14-9004012336/python-3.10.14-darwin-x64.tar.gz"
Extract downloaded archive
/usr/bin/tar xz -C /Users/runner/work/_temp/d6bc2d46-6597-4924-9815-3d930552f60f -f /Users/runner/work/_temp/dae42830-86a3-4ec2-a5a4-02a135b36224
Execute installation script
Check if Python hostedtoolcache folder exist...
Create Python 3.10.14 folder
Copy Python binaries to hostedtoolcache folder
Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
Upgrading pip...
Error: dyld[8401]: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
Referenced from: <09857011-94D0-3FBA-9F9D-9FCE0E7366FF> /Users/runner/hostedtoolcache/Python/3.
Error: 10.14/x64/bin/python3.10
Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)
Error: ./setup.sh: line 53: 8401 Abort trap: 6 ./python -m ensurepip
Error: The process '/bin/bash' failed with exit code 134
If you're relying on packages installed by homebrew or pre-installed to the runners, then the homebrew path is different on arm64 macs, verus the x86_64. The new path is /opt/homebrew
instead of /usr/local
.
from setup-python.
Hi @ReenigneArcher, thank you very much for having a look on this.
Yeah, I need this specifically on Python 3.8 (I did notice it work fine on 3.11).
If you're relying on packages installed by homebrew or pre-installed to the runners, then the homebrew path is different on arm64 macs, verus the x86_64. The new path is /opt/homebrew instead of /usr/local.
I don't think I am. Even when actions/setup-python@v5
is the very first step to be executed in the job, with no custom code before, it fails. I never get past actions/setup-python@v5
to have the chance to use pre-installed packages or packages installed by homebrew...
You can see more details and the workflow file in pypa/setuptools#4343.
from setup-python.
Related Issues (20)
- Non Portable binary, doesn't work with sudo or without LD_LIBRARY_PATH HOT 3
- Custom setuptools version HOT 12
- Cannot load Python modules if they are in a directory named "test" HOT 3
- Python 3.7/8/9/10 on Darwin runners fails: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib HOT 5
- Setups HOT 1
- My pro HOT 1
- Missing support for Python 3.8 on Ubuntu 24.04 runner HOT 1
- Caching doesn't seem to save that much time HOT 5
- Version not found when using new arm-based linux runners (ubuntu 22.04) HOT 3
- Add Python 3.12.4 (released 2 days ago) HOT 5
- [Feature Request] Add Python debug builds with `Py_DEBUG` flag HOT 1
- Python 3.12.4: Extract downloaded archive; gzip: stdin: not in gzip format HOT 22
- is python 3.12.4 download assets broken HOT 6
- Python 3.13 fails to install on windows: Offset to Central Directory cannot be held in an Int64. HOT 4
- Verify checksum of downloaded version archive HOT 1
- Support os-release standard HOT 1
- setup-python CI workflows have been broken for more than 2 months HOT 1
- Sporadically missing patch versions on python-versions for arm64 HOT 1
- `python-version-file` does not support multiple versions HOT 1
- Cannot parse version number from TOML 1.0.0 pyproject.toml file HOT 3
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.