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

Pypy versions need a dash in the name (Error: Version pypy3.x with arch x64 not found) #419

Closed
4 of 5 tasks
pirgeo opened this issue Jun 7, 2022 · 7 comments
Closed
4 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@pirgeo
Copy link

pirgeo commented Jun 7, 2022

Description:
When trying to install Pypy versions with this action, I repeatedly got the error

Error: Version pypy3.7 with arch x64 not found

Action version:
actions/setup-python@v3 (I assume it uses latest, which is 3.1.2 at the time of writing)

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Pypy3.7, Pypy3.8, Pypy3.9

Repro steps:
I used the example from the readme, and got that error (I removed two more pypy versions, just wanted to get it running with one)

  build:
      runs-on: ubuntu-latest
      strategy:
        matrix:
          python-version:
          - 'pypy3.7' # the latest available version of PyPy that supports Python 3.7

Expected behavior:
Install Pypy3.7.

Actual behavior:
Action shows an error:

build (pypy3.7)
Version pypy3.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

Solution:
Use pypy-3.7 instead of pypy3.7 to get it working. Seems like something changed in code that doesn't allow the versions without the - anymore. If that is the case, updating the examples would be very helpful

@pirgeo pirgeo added bug Something isn't working needs triage labels Jun 7, 2022
@dmitry-shibanov
Copy link
Contributor

Hello @pirgeo. Thank you for your report. For now we've not released a new version of the setup-python action. We added changes to parse both pypy-3.7 and pypy3.7. Could you please try to specify the main branch to confirm that everything works as expected ?

@pirgeo
Copy link
Author

pirgeo commented Jun 7, 2022

That seems to work! Sorry for the duplicate. Is there an issue I can link to?

image

@dmitry-shibanov
Copy link
Contributor

@pirgeo I think related issue is #346.

@dmitry-shibanov dmitry-shibanov self-assigned this Jun 7, 2022
@pirgeo
Copy link
Author

pirgeo commented Jun 7, 2022

Perfect, thanks! Is there a timeline when there will be a new tagged release that includes this feature?

@Kami
Copy link

Kami commented Jun 7, 2022

We encountered same thing after upgrading from @v2 to @V3 version of the action. Can confirm that the notation with dash (-) works fine.

@dmitry-shibanov
Copy link
Contributor

Hello everyone. The new major tag was released with support of both pypy3.7 and pypy-3.7. Could you please confirm that everything works as expected ?

@pirgeo
Copy link
Author

pirgeo commented Jun 9, 2022

@dmitry-shibanov, it works with and without the dash! Thanks a lot :)

@pirgeo pirgeo closed this as completed Jun 9, 2022
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

3 participants