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.

Seemingly correct version and environment not being recognized

See original GitHub issue

Describe the bug A clear and concise description of what the bug is. I have a simple setup python job at the top of my workflow.

      - name: Set up Python 3.7.7
        id: python_setup
        uses: actions/setup-python@v2
        with:
          python-version: '3.7.x'
          architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified

However, when I run it, it doesn’t seem to work. The weird thing is that you can see that the lines appear to pass correctly, but the test still fails.

[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.7.8 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.7.7 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.7.6 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.7.5 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.6.11 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.6.10 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.6.9 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.6.8 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.6.7 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.5.9 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.5.4 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.4.10 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 3.3.7 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 2.7.18 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   💬  ::debug::check 2.7.17 satisfies 3.7.x
[Lint and Test/Lint and Test    ]   ❗  ::error::Version 3.7.x with arch x64 not found%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
[Lint and Test/Lint and Test    ]   ❌  Failure - Set up Python 3.7.7

Which version of the action are you using?

  • v1
  • v2
  • Some other tag (such as v2.0.1 or master)

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac

If applicable, please specify if you’re using a container

Python Versions Please list all of the effected versions of Python (3.8.2, etc.) 3.7.x

To Reproduce Steps to reproduce the behavior:

  1. Set up a VM with the following: Linux cloudVM 5.3.0-1032-azure #33~18.04.1-Ubuntu SMP Fri Jun 26 15:01:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  2. Have a workflow with the job included.
  3. Run the workflow.

Run/Repo Url If applicable, and if your repo/run is public, please include a URL so it is easier for us to investigate.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
RomainMullercommented, Aug 3, 2020

I’m also hitting this with 3.6 (as 3.6.x). Interestingly, it works in “real” GitHub Actions, but it does not work locally using nektos/act.

1reaction
RomainMullercommented, Oct 13, 2020

So - I suspect the culprit is actually different platform versions, which you can see in the manifest: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Those are actually (silently) checked for in @actions/tool-cache: https://github.com/actions/toolkit/blob/af821474235d3c5e1f49cee7c6cf636abb0874c4/packages/tool-cache/src/manifest.ts#L87-L96

When using nektos/act, you’d want to ensure act is using an image that has is based off one supported platform image (per it’s LSB tags). For example, adding -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 to the act invocation or in .actrc (careful - the nektos/act-environments-ubuntu:18.04 image is HUGE).

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Numpy is installed but still getting error - Stack Overflow
I am using Win 7 with anaconda python 3.7. ImportError : Something is wrong with the numpy installation. While importing we detected an...
Read more >
Seemingly correct Graphviz source produces error when ...
I've got into a peculiar situation. I've installed two versions of Graphviz in two environments: 2.44.1 on Windows, and 2.40.1 on Debian.
Read more >
The right and wrong way to set Python 3 as default on a Mac
Moshe recommends using pyenv to manage Python environments (for a deeper dive on configuring pyenv, see this article). This tool manages multiple versions ......
Read more >
Common Build Problems - Travis CI Docs
Restart a build that used to be green, the last known working one, for instance. If that build suddenly fails too, there's a...
Read more >
Chapter 8. Media and Technology – Introduction to Sociology
When all media sources report a simplified version of the environmental impact of hydraulic fracturing, with no effort to convey the hard science...
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