Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Version 2.7 with arch x64 not found #543

Closed
2 of 5 tasks
albertz opened this issue Nov 18, 2022 · 18 comments
Closed
2 of 5 tasks

Python Version 2.7 with arch x64 not found #543

albertz opened this issue Nov 18, 2022 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@albertz
Copy link

albertz commented Nov 18, 2022

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.

@albertz
Copy link
Author

albertz commented Nov 18, 2022

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

@albertz
Copy link
Author

albertz commented Nov 18, 2022

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

@albertz
Copy link
Author

albertz commented Nov 18, 2022

With Python 3.7, it seems to be fine.

@albertz
Copy link
Author

albertz commented Nov 18, 2022

This is with Ubuntu 22.04 in GitHub Actions.

@dmitry-shibanov
Copy link
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.

@albertz
Copy link
Author

albertz commented Nov 18, 2022

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

@albertz
Copy link
Author

albertz commented Nov 18, 2022

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

@dmitry-shibanov
Copy link
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

@albertz
Copy link
Author

albertz commented Nov 18, 2022

I see.

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

@dmitry-shibanov
Copy link
Contributor

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

@albertz
Copy link
Author

albertz commented 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.

jadolg added a commit to jadolg/rocketchat_API that referenced this issue Nov 20, 2022
looks like the setup action does not work correctly with the latest ubuntu runner. See actions/setup-python#543 for more information.
thetic added a commit to thetic/cpputest that referenced this issue Dec 5, 2022
thetic added a commit to thetic/cpputest that referenced this issue Dec 6, 2022
See actions/setup-python#543.

Supported versions of GTest depends on Python 2 which went end-of-life
in January 2020.
thetic added a commit to thetic/cpputest that referenced this issue Dec 6, 2022
See actions/setup-python#543.

Supported versions of GTest depends on Python 2 which went end-of-life
in January 2020.
@dmitry-shibanov
Copy link
Contributor

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

@AdamWill
Copy link

AdamWill commented Dec 6, 2022

@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?

@rouilj
Copy link

rouilj commented Dec 6, 2022

@AdamWill I opened #561 for that.

knatten added a commit to knatten/cppquiz that referenced this issue Dec 10, 2022
Python 3.6 is not supported on ubuntu-latest, and we need to keep
supporting it. See more info at actions/setup-python#543
anjakefala added a commit to saulpw/visidata that referenced this issue Dec 30, 2022
fangebee pushed a commit to fangebee/rocketchat_API that referenced this issue Jan 18, 2023
looks like the setup action does not work correctly with the latest ubuntu runner. See actions/setup-python#543 for more information.
MontyCarter added a commit to MontyCarter/appengine that referenced this issue Feb 28, 2023
It seems like github actions switched to python3 because devappserver.py
no longer runs, and complains with python2 not found.

https://github.blog/changelog/2020-02-27-github-actions-breaking-change-python-2-being-removed-from-all-virtual-environments/

actions/setup-python#543 (comment)

python2 support will not be added to ubuntu 22.04, it seems.
masklinn added a commit to masklinn/uap-python that referenced this issue Apr 5, 2023
ubuntu-latest was switched over to ubuntu-22.04, because 3.6 is long
EOLd actions/setup-python#544 opted not to build
that (actions/setup-python#544 (comment)),
therefore extract a sub-matrix to run 3.6 on 20.04.

For now, 2.7 is still available on
ubuntu-latest (actions/setup-python#543) so that should be fine yet.
masklinn added a commit to masklinn/uap-python that referenced this issue Apr 5, 2023
ubuntu-latest was switched over to ubuntu-22.04, because 3.6 is long
EOLd actions/setup-python#544 opted not to build
that (actions/setup-python#544 (comment)),
therefore extract a sub-matrix to run 3.6 on 20.04.

For now, 2.7 is still available on
ubuntu-latest (actions/setup-python#543) so that should be fine yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants