install-poetry: Windows Latest on Python 3.8 Constantly Fails
For some reason, Windows-2022 is now failing for me on Python 3.8 only:
Run snok/install-poetry@v[1](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:1).3.2
Run $GITHUB_ACTION_PATH/main.sh
Setting Poetry installation path as C:/Users/runneradmin/AppData/Roaming/Python/Scripts
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:
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\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.1)
Installing Poetry (1.2.1): Creating environment
Installing Poetry (1.2.1): An error occurred. Removing partial environment.
Traceback (most recent call last):
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 9[40](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:42), in <module>
sys.exit(main())
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 919, in main
return installer.run()
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 550, in run
self.install(version)
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 571, in install
with self.make_env(version) as env:
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 643, in make_env
raise e
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 629, in make_env
yield VirtualEnvironment.make(env_path)
File "C:/Users/RUNNER~1/AppData/Local/Temp/tmp.0IGyZ1qQC7", line 319, in make
builder.create(target)
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\venv\__init__.py", line 68, in create
self._setup_pip(context)
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\venv\__init__.py", line 289, in _setup_pip
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\subprocess.py", line [41](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:43)5, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\subprocess.py", line [49](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:51)3, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\subprocess.py", line 8[58](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:60), in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\hostedtoolcache\windows\Python\3.8.10\x[64](https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946943#step:6:66)\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error: Process completed with exit code 1.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (10 by maintainers)
Commits related to this issue
- Pinned snok/install-poetry to 1.3.1 for Windows test to address snok/install-poetry#94. Also cleaned up poetry version pinning in release.yml — committed to abey79/vpype by abey79 2 years ago
- Fixed Windows tests and update dependencies (#549) * Updated svgelements to 1.8.4 (fixes #537) * Updated other deps * Pinned snok/install-poetry to 1.3.1 for Windows test to address snok/install-po... — committed to abey79/vpype by abey79 2 years ago
- chore: Add failing tests to reproduce #94 — committed to snok/install-poetry by sondrelg 2 years ago
- chore: Add failing tests to reproduce #94 — committed to snok/install-poetry by sondrelg 2 years ago
- chore: Add failing tests to reproduce #94 — committed to snok/install-poetry by sondrelg 2 years ago
- chore: Add failing tests to reproduce #94 — committed to snok/install-poetry by sondrelg 2 years ago
@miigotu: It worked on the
windows-latestrunner with the action version1.3.1, but not with the version1.3.2, using poetry version1.1.14in both scenarios.EDIT: Idem with poetry version
1.2.1(therefore the problem seems related to the latest action tag: 1.3.2).In the latest push to #95 I’ve added the
--ssl-no-revokecommand to main.sh.@adam-grant-hendry, would you mind testing with
@94instead ofv1.3.1to see if that works for you?Having had time to look at https://github.com/python-poetry/install.python-poetry.org/issues/46 @miigotu, I think they’re saying git bash on windows runners are affected, so I think this is an upstream bug. The script target for this github action was changed a while back, but I hadn’t released a new version until v1.3.2, so that’s why this is happening.
Perhaps we should do a simple
What do you think?
https://askubuntu.com/questions/1044280/set-eo-pipefail-not-working-in-windows-subsystem-for-linux-ubuntu-16-04
So far I’ve tried:
SHELLOPTSto envbut so far nothing reproduces
Here it is: https://github.com/python-poetry/install.python-poetry.org/issues/46
@adam-grant-hendry If you remove the shell default it will work: https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/workflow#L41
We mostly just quoted env vars in the latest release. I’ll add a test case for Windows later to see if I can reproduce.
Would you be able to share the relevant parts of your workflow to make that easier?
@sondrelg How strange. Yes! That completely fixed it!
…What’s happened from v1.3.1 to v1.3.2?