setup-python: Python Version 2.7 with arch x64 not found

Description: I get the error:

Run actions/setup-python@v2
  with:
    python-version: 2.7
    token: ***
Version 2.7 was not found in the local cache
Error: Version 2.7 with arch x64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

I get this for the first time now, and have not changed any code. It has worked since a long time before.

Action version: v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Python 2.7

Repro steps:
In my GitHub workflows file, I have:

    - uses: actions/setup-python@v2
      with:
        python-version: 2.7

Expected behavior: It should work, just like it has in the last year.

Actual behavior: The error above.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 14
  • Comments: 18 (4 by maintainers)

Commits related to this issue

Most upvoted comments

You can see this issue as a feature request then. 😃 Because ideally I would like to run all my other tests on ubuntu-latest, and I have some Python 2.7 and 3.6 tests in there.

For other folks running into this, one of the contributors to my project found a pretty elegant way to deal with it using matrix, see https://github.com/os-autoinst/openQA-python-client/pull/40 :

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 4
      fail-fast: false
      matrix:
        python-version:
          - "3.6"
          - "3.7"
          - "3.8"
          - "3.9"
          - "3.10"
          - "3.11"
          - "3.12.0-alpha - 3.12.0"
        include:
          - os: "ubuntu-latest"
          - os: "ubuntu-20.04"
            python-version: "3.6"

nice job @kalikiana !

Hello everyone. We’ve added python 2.7.18 for Ubuntu 22.04. For now I’m going to close the issue.

Workarounds - I changed:

    strategy:
      matrix:
        os:
-        - ubuntu-latest
+        - ubuntu-20.04
        - macos-latest
        - windows-latest

Ah, has that changed? We use runs-on: ubuntu-latest in GitHub.

Ubuntu latest tag is changing from ubuntu-20.04 to ubuntu-22.04: https://github.com/actions/runner-images/issues/6399

I noticed, similarly I also get:

Version 3.6 was not found in the local cache
Error: Version 3.6 with arch x64 not found