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

When running Python setup in Windows VM fails with pip #333

Closed
2 of 5 tasks
aaltat opened this issue Feb 4, 2022 · 5 comments
Closed
2 of 5 tasks

When running Python setup in Windows VM fails with pip #333

aaltat opened this issue Feb 4, 2022 · 5 comments
Labels
bug Something isn't working needs triage

Comments

@aaltat
Copy link

aaltat commented Feb 4, 2022

Description:
We have matrix job which setups Python. For Linux and Mac that Python setup works fine, but for Windows host, there is error like this:

Successfully setup CPython (3.7.9)
C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe cache dir
Error: The process 'C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe' failed with exit code 3221225477

Action version:
actions/setup-python@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
3.7, 3.8, 3.9

Repro steps:
Link to yaml definition and here is link to execution

Expected behavior:
Python would be setup would have been completed without errors.

Actual behavior:
There is error:

Successfully setup CPython (3.7.9)
C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe cache dir
Error: The process 'C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe' failed with exit code 3221225477
@aaltat aaltat added bug Something isn't working needs triage labels Feb 4, 2022
@hugovk
Copy link
Contributor

hugovk commented Feb 4, 2022

Duplicate of #328?

Does actions/setup-python@v2.3.2 work?

@aaltat
Copy link
Author

aaltat commented Feb 4, 2022

Well, could be duplicate. Although my problems happens in setup phase.

But using actions/setup-python@v2.3.2 fixes the problem, thank you.

@aaltat
Copy link
Author

aaltat commented Feb 4, 2022

Do I need to always keep updating the version? Because I tough that using actions/setup-python@v2 would always give me latest and greatest version.

@dmitry-shibanov
Copy link
Contributor

Hello @aaltat. The tag v2 should be updated. Could you please confirm, that everything works as expected ?

@aaltat
Copy link
Author

aaltat commented Feb 4, 2022

Yes, now it works. Thank you.

@aaltat aaltat closed this as completed Feb 4, 2022
ginolatorilla added a commit to ginolatorilla/python3-template that referenced this issue Feb 22, 2022
ginolatorilla added a commit to ginolatorilla/python3-template that referenced this issue Feb 22, 2022
* pycodestyle -> flake8; + pytest-cov,mock,mypy

* mypy needs Py3.6 (PEP526+484)

* Config flake8, yapf, mypy

* Config pytest and coverage

* Settings for VSCode

* Full compliance with flake8 and mypy

* Document changes for mypy, flake8, pytest-mock/cov

* Replace pycodestyle with flake8 in GH actions

* Drop 3.6 in Windows GH Actions

* Update actions/setup-python to v2

See actions/setup-python#333

* Install pipenv manually (no more actions)

* Run flake8 and mypy in GH actions

* Check current dir with mypy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants