Gr1N / setup-poetry

Set up your GitHub Actions workflow with a specific version of Poetry
MIT License
86 stars 14 forks source link

Poetry installation fails on PyPy jobs #41

Open Diapolo10 opened 11 months ago

Diapolo10 commented 11 months ago

I'm no entirely sure what happened, but it seems that about two weeks ago, Gr1N/setup-poetry@v8 stopped working with PyPy installations. It took me a while to notice because apparently I'd gotten it mixed up with another problem and didn't take a closer look until now.

As evidence, here's the GHA unit test runs of one of my projects; you can see that since 11th of October, it's given errors since: https://github.com/Diapolo10/iplib3/actions/workflows/unit_tests.yml

Here's the output from a debug mode run:

##[debug]Evaluating condition for step: 'Install Poetry'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Install Poetry
##[debug]Loading inputs
##[debug]Loading env
Run Gr1N/setup-poetry@v8
  with:
    poetry-preview: false
  env:
    TOXENV: pypy3
    pythonLocation: /opt/hostedtoolcache/PyPy/3.9.18/x64
    Python_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/PyPy/3.9.18/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/PyPy/3.9.18/x64/bin/lib/pkgconfig
##[debug]Downloading https://install.python-poetry.org/
##[debug]Destination /home/runner/work/_temp/0be649b9-1644-4d0e-ad35-a765fe59397a
##[debug]download complete
/opt/hostedtoolcache/PyPy/3.9.18/x64/bin/python /home/runner/work/_temp/0be649b9-1644-4d0e-ad35-a765fe59397a --yes
Retrieving Poetry metadata
/etc/ssl/certs/ca-certificates.crt /etc/ssl/certs

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

/home/runner/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.6.1)
Installing Poetry (1.6.1): Creating environment
Installing Poetry (1.6.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /home/runner/work/iplib3/iplib3/poetry-installer-error-p0nz16b3.log for error logs.
Error: The process '/opt/hostedtoolcache/PyPy/3.9.18/x64/bin/python' failed with exit code 127
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Install Poetry

I haven't been able to replicate this issue locally, and I can't tell what could've changed to result to this. I suppose not many people are using this with PyPy considering nobody else has mentioned similar issues lately.

Could someone else verify if the same happens to them?