question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python Version 2.7 with arch x64 not found

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:12
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
albertzcommented, Nov 18, 2022

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.

4reactions
AdamWillcommented, Dec 2, 2022

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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version of arch x64 not found - continuous integration
Currently, Python 2.7 is set by default on Ubuntu 20.04. Python 2 was sunsetted on Jan 1 2020 and this version is not...
Read more >
Hynek Schlawack: "Oof, so the latest Linux image…" - Mastodon
Python 3.6 x64 on Linux: Error: Version 3.6 with arch x64 not found · Issue #544 · actions/setup-pythonGitHub.
Read more >
@hugovk@mastodon.social on Twitter: "And you can now ...
Is this a common problem? Does the architecture need to be specified to something other than x64? Error: Version 3.10 with arch x64...
Read more >
UsePythonVersion@0 - Use Python version v0 task
Disables downloading missing Python versions from the Github ... Specifies the target architecture ( x86 or x64 ) of the Python interpreter.
Read more >
Configure Your System to Use Python - MATLAB & Simulink
Install Supported Python Implementation ... Click the format you want for the 64-bit version and follow the online instructions. ... To install version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found