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

On GitHub hosted runner: Unable to locate executable file: poetry #765

Closed
mbrancato opened this issue Nov 12, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@mbrancato
Copy link

Description:
Poetry appears to be required prior to running actions/setup-python with cache: 'poetry' set. This is on a GitHub hosted runner. I'm sure to fix this poetry needs to be installed before running this action. That said, I generally prefer to do that after installing Python. Also, actions/cache against .venv works fine without poetry being installed.

Given the "advanced usage" shows installing poetry first, maybe listing that as a dependency is the fix here, however, I don't think poetry is actually needed unless the virtual env is going into a different location.

**Caching poetry dependencies:**
```yaml
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'poetry'
- run: poetry install
- run: poetry run pytest
```

full error:

Unable to locate executable file: poetry. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Action version:
v4

@mbrancato mbrancato added bug Something isn't working needs triage labels Nov 12, 2023
@dmitry-shibanov
Copy link
Contributor

Hello @mbrancato. It is an expected behaviour because the action uses poetry to get configuration. For now I'm going to close the issue.

@dmitry-shibanov dmitry-shibanov closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2023
todofixthis added a commit to todofixthis/class-registry that referenced this issue Nov 27, 2023
ryan-williams added a commit to runsascoded/parquet-tools that referenced this issue Dec 31, 2023
ktrueda pushed a commit to ktrueda/parquet-tools that referenced this issue Jan 2, 2024
…to Python 3.11 (#50)

* fix compression ratio when uncompressed_size == 0

* bump to python 3.11, update GHAs

* GHA: cache poetry

See also: actions/setup-python#765

* test_parquet util

* add empty test0.parquet + `inspect` test

* test name typo fix

* loosen dep version pins
filip-zyzniewski added a commit to house-reliability-engineering/pulumi that referenced this issue Jan 5, 2024
…xplicitly

instead of using the caching feature of action/setup-python, as it
needs to have the poetry binary in place:
actions/setup-python#765
and I do not want to install poetry twice for two
Python versions.

This is to resolve
https://github.com/house-reliability-engineering/pulumi/pull/1/checks#step:3:14 :

```
 Error: Unable to locate executable file: poetry. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
```
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

2 participants