Skip to content

Python 3.7/8/9/10 on Darwin runners fails: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib #875

@arcivanov

Description

@arcivanov

Description:

Builds that used to work started failing with the below message. The failures are for 3.7-3.10. 3.11 and 3.12 work.

Example is here: https://github.com/karellen/wheel-axle/actions/runs/9215648920/job/25354463928

Run actions/setup-python@v5
  with:
    python-version: 3.7
    architecture: x64
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
  env:
    GITHUB_TOKEN: ***
    PYB_EXTRA_ARGS: --no-venvs
    SETUPTOOLS_VER: ~=63.0
    PIP_VER: ~=22.3
    PYTHON: python3
Installed versions
  Version 3.7 was not found in the local cache
  Version 3.7 is available for downloading
  Download from "https://github.com/actions/python-versions/releases/download/3.7.17-5356448435/python-3.7.17-darwin-x64.tar.gz"
  Extract downloaded archive
  /usr/bin/tar xz -C /Users/runner/work/_temp/bfcff778-fb76-4756-abaa-879217f6f46c -f /Users/runner/work/_temp/c5cec3db-4ab0-42f3-a186-7e7d5e0d2bc4
  Execute installation script
  Check if Python hostedtoolcache folder exist...
  Create Python 3.7.17 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[3251]: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
    Referenced from: <FA1C5C30-D202-30DA-B1C2-8EFF35C22F2B> /Users/runner/hostedtoolcache/Python/3.7.17/x64/bin/python3.7
    Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such fi
  Error: le), '/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)
  ./setup.sh: line 52:  3251 Abort trap: 6           ./python -m ensurepip
  Error: The process '/bin/bash' failed with exit code 134

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
N/A

Repro steps:
Simply attempt to install Python and observe the failure.

Expected behavior:
Successful installation

Actual behavior:
Failed installation

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions