install-poetry: install-poetry breaks with Poetry 1.2.0
Poetry 1.2.0 changes a lot of things about how path and virtualenvs are handled, and it breaks install-poetry:
▶ Run snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
version: latest
virtualenvs-path: {cache-dir}/virtualenvs
env:
DJANGO_ENV: LOCAL
pythonLocation: /opt/hostedtoolcache/Python/3.6.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib
Run $GITHUB_ACTION_PATH/main.sh
$GITHUB_ACTION_PATH/main.sh
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
DJANGO_ENV: LOCAL
pythonLocation: /opt/hostedtoolcache/Python/3.6.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.6.15/x64/lib
VERSION: latest
VIRTUALENVS_CREATE: true
VIRTUALENVS_IN_PROJECT: true
VIRTUALENVS_PATH: {cache-dir}/virtualenvs
INSTALLER_PARALLEL: true
INSTALLATION_ARGUMENTS:
Setting Poetry installation path as /home/runner/.local/
Installing Poetry 👷
Retrieving Poetry metadata
# 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.[2](https://github.com/critizr/critizr-django-1.7/runs/8108219212?check_suite_focus=true#step:7:2).0)
Installing Poetry (1.2.0): Creating environment
Installing Poetry (1.2.0): Installing Poetry
Installing Poetry (1.2.0): Creating script
Installing Poetry (1.2.0): Done
Poetry (1.2.0) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`
/home/runner/work/_actions/snok/install-poetry/v1/main.sh: line [3](https://github.com/critizr/critizr-django-1.7/runs/8108219212?check_suite_focus=true#step:7:3)3: poetry: command not found
/home/runner/work/_actions/snok/install-poetry/v1/main.sh: line 3[4](https://github.com/critizr/critizr-django-1.7/runs/8108219212?check_suite_focus=true#step:7:4): poetry: command not found
/home/runner/work/_actions/snok/install-poetry/v1/main.sh: line 3[5](https://github.com/critizr/critizr-django-1.7/runs/8108219212?check_suite_focus=true#step:7:5): poetry: command not found
/home/runner/work/_actions/snok/install-poetry/v1/main.sh: line 3[7](https://github.com/critizr/critizr-django-1.7/runs/8108219212?check_suite_focus=true#step:7:7): poetry: command not found
Installation completed. Configuring settings 🛠
Done ✅
If you are creating a venv in your project, you can activate it by running 'source .venv/bin/activate'. If you're running this in an OS matrix, you can use 'source $VENV' instead, as an OS agnostic option
▶ Run poetry install --no-interaction --no-root
/home/runner/work/_temp/63f8c552-7bf4-4d02-bd7b-8b02d[9](https://github.com/critizr/critizr-django-1.7/runs/8109330298?check_suite_focus=true#step:9:10)c8b5c0.sh: line 1: poetry: command not found
Error: Process completed with exit code 127.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 29 (6 by maintainers)
Also seeing this issue 👍
No worries. I will make a PR if I manage to find out what broke. Let’s not close this issue as I assume many people will come here to report the issue.
https://endoflife.date/python
Projects are dropping python3.6 because it is no longer considered secure as
end of lifewas 8 months ago and it no longer receives security fixes. Tools and libraries dropping support forces OS distributions to release newer, supported versions of python on their platform. This is a good thing, because it is intended to result in a more secure internet and better safety for users’ machines.@sondrelg no clue, our workflow is pretty standard, my bet is that it’s all related to the dropping of Python 3.6 from Poetry 1.2.0. We will pin the Poetry version and wait until we move to the next python version to see if it reproduces, which I bet it won’t.
In between, thank you very much for your time
fixed it by adding
And replacing
with
Same issue here, but only with
macos-latest❌ On the other hand no problem withwindows-latestandubuntu-latest✅Here is the link to the yml file: https://github.com/Musaefendic/icao-emissions/blob/96d41895570a1aefe21cab13f32f906f44d6f6ab/.github/workflows/tests.yml
did I set up my .yml wrong?