Skip to content

Python Version 2.7 with arch x64 not found #543

Closed

Description

@albertz

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.

Activity

  1. albertz commented on Nov 18, 2022

    @albertz
    Author

    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
    
  2. albertz commented on Nov 18, 2022

    @albertz
    Author

    Also when I use setup-python@v4, I get the same error.

  3. albertz commented on Nov 18, 2022

    @albertz
    Author

    With Python 3.7, it seems to be fine.

  4. albertz commented on Nov 18, 2022

    @albertz
    Author

    This is with Ubuntu 22.04 in GitHub Actions.

  5. dmitry-shibanov commented on Nov 18, 2022

    @dmitry-shibanov
    Contributor

    Hello @albertz. I think it's an expected behaviour because the action does not provide python 2.7 for Ubuntu 22.04. You can try to specify a previous version of Ubuntu to set up python 2.7.

  6. albertz commented on Nov 18, 2022

    @albertz
    Author

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

  7. albertz commented on Nov 18, 2022

    @albertz
    Author

    According to https://github.com/actions/runner-images, ubuntu-latest should be Ubuntu 20.04? So why do we get Ubuntu 22.04?

  8. dmitry-shibanov commented on Nov 18, 2022

    @dmitry-shibanov
    Contributor

    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: actions/runner-images#6399

  9. albertz commented on Nov 18, 2022

    @albertz
    Author

    I see.

    Is there any plan to include Python 2.7 and Python 3.6 also for Ubuntu 22.04?

  10. dmitry-shibanov commented on Nov 18, 2022

    @dmitry-shibanov
    Contributor

    For now we do not have any plans to include it.

  11. albertz commented on Nov 18, 2022

    @albertz
    Author

    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.

  12. 17 remaining items

  13. added 2 commits that reference this issue on Dec 6, 2022
  14. dmitry-shibanov commented on Dec 6, 2022

    @dmitry-shibanov
    Contributor

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

  15. AdamWill commented on Dec 6, 2022

    @AdamWill

    @dmitry-shibanov 3.6 seems to be quite commonly requested as well - it's the system Python version in several long-term support Linux distros. Can that be added too?

  16. rouilj commented on Dec 6, 2022

    @rouilj

    @AdamWill I opened #561 for that.

  17. added a commit that references this issue on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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