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

Most upvoted comments

Hello everyone. We updated v2 tag. Could you please confirm that everything works as expected ?

Hello @janosh. For now we have not updated the tag v2. Thank you for your confirmation @jku.

Thanks +1 Unfortunately, it still crashes for us cry .

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.