Skip to content
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

x64 python fails on arm64 images #855

Open
2 of 5 tasks
jvesely opened this issue Apr 26, 2024 · 4 comments
Open
2 of 5 tasks

x64 python fails on arm64 images #855

jvesely opened this issue Apr 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jvesely
Copy link

jvesely commented Apr 26, 2024

Description:
Trying to use Python-x64 on macos-14-arm64 fails

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
python 3.7, 3.8, .3.9, 3.10

Repro steps:
setup-python

Expected behavior:
python is set up and works

Actual behavior:

Current runner version: '2.316.0'
Operating System
  macOS
  14.4.1
  23E224
Runner Image
  Image: macos-14-arm64
  Version: 20240422.3
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240422.3/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240422.3

and

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-8361245787/python-3.10.14-darwin-x64.tar.gz"
  Extract downloaded archive
  /usr/bin/tar xz -C /Users/runner/work/_temp/a4bfbe34-2a7f-425d-9983-683cbdac49dd -f /Users/runner/work/_temp/310a98f7-3b6c-4601-95d9-d7ac120f1dac
  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[3755]: 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 52:  3755 Abort trap: 6           ./python -m ensurepip
  Error: The process '/bin/bash' failed with exit code 134
@jvesely jvesely added bug Something isn't working needs triage labels Apr 26, 2024
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
Running Python-x64 on macops-arm64 is broken on GA [0]
[0] actions/setup-python#855

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
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>
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
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>
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
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>
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
…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>
jvesely added a commit to jvesely/PsyNeuLink that referenced this issue Apr 26, 2024
x64 python is broken on arm64 images [0]
[0] actions/setup-python#855

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
@HarithaVattikuti
Copy link
Contributor

Hello @jvesely
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@PinkYuDeer
Copy link

same issue at @v4 py:3.9 3.10 os:macos-latest

@adam2392
Copy link

I confirm I am seeing the same issue: https://github.com/neurodata/scikit-tree/actions/runs/8895864721/job/24427188361?pr=264

Is there any temporary fix? Does downgrading to v4 work?

@amotl
Copy link

amotl commented May 6, 2024

Hi. @aparnajyothi-y reported at #825 (comment) (thanks!):

We have reproduced the error in our local and found that the error is due to python<3.10 versions are not added to macos-14 runner image.

macos-14 aka. macos-latest has switched to being an ARM runner, only supporting newer versions of Python. If you need to support older versions, you may want to switch to macos-13.

HorlogeSkynet added a commit to HorlogeSkynet/archey4 that referenced this issue May 8, 2024
This patch is now required as macOS runners switched to ARM (see
actions/setup-python#855).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants