setup-python: setup-python failing due to missing cache directory
Description:
This job on my repo has been failing since #303 was merged in. Only the python 11 alpha variant is failing due to a cache related issue for pip. It fails in the Post Setup Python
stage.
Action version: master
Platform:
- Ubuntu
- macOS
- [ x] Windows
Runner type:
- [x ] Hosted
- Self-hosted
Tools version:
python 3.11.0-alpha
Repro steps:
Run any pipeline with python 3.11.0-alpha on windows.
Expected behavior: The job should succeed.
The job fails on Post Setup Python
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)
Commits related to this issue
- Fix build on Windows Broken with this issue: https://github.com/actions/setup-python/issues/328 — committed to evansd/whitenoise by adamchainz 2 years ago
- Disabled caching in GitHub actions for Windows tests. See https://github.com/actions/setup-python/issues/328. — committed to felixxm/django by felixxm 2 years ago
- Disabled caching in GitHub actions for Windows tests. See https://github.com/actions/setup-python/issues/328. — committed to django/django by felixxm 2 years ago
Hello everyone. We updated v2 tag. Could you please confirm that everything works as expected ?
✅ Confirmed fixed with
actions/setup-python@v2.3.2
:Thank you!
Hello @janosh. For now we have not updated the tag v2. Thank you for your confirmation @jku.
Note that they’ve not updated the v2 tag (forgot?) so you are probably not testing the new version.
My issue was fixed with the Windows workaround, if I modify my workflow to use setup-python@v2.3.2 (instead of v2): https://github.com/theupdateframework/python-tuf/runs/5065875026
Hello @janosh. Yes, It’s related to this issue: https://github.com/actions/toolkit/issues/992 I’m not sure, but it’s also can be related to this issue: https://github.com/pypa/pip/issues/10875
Hello @wmmc88! Thank you for the report! We are investigating the issue. We will come back with investigation results as soon as we have them.