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

Github Action ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.github/workflows/constraints.txt' #1383

Open
man-chi opened this issue Apr 20, 2024 · 2 comments

Comments

@man-chi
Copy link

man-chi commented Apr 20, 2024

thanks for the great open-source project.
I have set up all my tokens for pypi, testpypi, and my personal GitHub token in the project repo setting.

the codebases is purely created by cookie-cutter template, nothing has changed, however, after push to github, the github action failed at the step of "Install Poetry"

ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.github/workflows/constraints.txt'

I have checked that constraints.txt indeed exists, I have attempted in the last few weeks without success. please kindly help.

Screen Shot 2024-04-20 at 11 41 05 PM
@gadams999
Copy link

Similar issue here. Appears to be pipx related, see this issue.

@gadams999
Copy link

To follow up, a workaround until pipx sorts itself out is to update the pipx install or pipx inject commands as follows:

pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt nox

The ${{ github.workspace }}/. will provide the absolute path for the particular runner (ubuntu, macOS, Windows).

roar-skinderviken added a commit to statisticsnorway/ssb-eimerdb that referenced this issue Apr 27, 2024
roar-skinderviken added a commit to statisticsnorway/ssb-eimerdb that referenced this issue Apr 27, 2024
* Bump idna from 3.6 to 3.7

Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](kjd/idna@v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bumping versions in constraints.txt

* Fixed path issue:
cjolowicz/cookiecutter-hypermodern-python#1383

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roar Skinderviken <roar.skinderviken@gmail.com>
roar-skinderviken added a commit to statisticsnorway/ssb-eimerdb that referenced this issue Apr 27, 2024
* Bump aiohttp from 3.9.3 to 3.9.5

Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.9.3...v3.9.5)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bumping versions in constraints.txt

* Fixed path issue:
cjolowicz/cookiecutter-hypermodern-python#1383

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roar Skinderviken <roar.skinderviken@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants