GithubHelp home page GithubHelp logo

Comments (5)

aparnajyothi-y avatar aparnajyothi-y commented on June 22, 2024 1

Hello @abravalheri, Thank you for creating this issue and we will look into it :)

from setup-python.

ReenigneArcher avatar ReenigneArcher commented on June 22, 2024 1

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.

abravalheri avatar abravalheri commented on June 22, 2024

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.

ReenigneArcher avatar ReenigneArcher commented on June 22, 2024

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.

abravalheri avatar abravalheri commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.