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

Error: Cache folder path is retrieved for poetry but doesn't exist on disk #653

Closed
2 of 5 tasks
yuliswe opened this issue Apr 18, 2023 · 9 comments
Closed
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@yuliswe
Copy link

yuliswe commented Apr 18, 2023

Description:
My CI is failing with this error in the Post job cleanup step, I don't know what it means:

Post job cleanup.
Error: Cache folder path is retrieved for poetry but doesn't exist on disk: /home/runner/.cache/pypoetry/virtualenvs, /home/runner/work/FastchargeAPI/FastchargeAPI/.venv

My workflow file is simply:

- uses: actions/setup-python@v3
  with:
    python-version: "3.9"
    cache: "poetry"

Action version:
'actions/setup-python@v3' (SHA:48e4ac706204bab735867521ba54b3276c883d00)

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Python3.9, Python3.10

@yuliswe yuliswe added bug Something isn't working needs triage labels Apr 18, 2023
@yuliswe
Copy link
Author

yuliswe commented Apr 18, 2023

Can someone explain to me why it is trying to look for a cache folder in these locations and why are they missing? This is not coming from my code. I think it's something internal to setup-python. If I remove cache: "poetry" the problem disappears.

@dmitry-shibanov
Copy link
Contributor

Hello @ylilarry. Thank you for your report. Could you please attach a link to public repository to reproduce the issue ? Could you please try to use actions/setup-python@v4 ?

@dmitry-shibanov
Copy link
Contributor

Hello @ylilarry, just a gentle ping.

@yuliswe
Copy link
Author

yuliswe commented Apr 24, 2023

Hi, let me check it tonight. Thanks for the reminder.

@MaksimZhukov
Copy link
Contributor

Hello @ylilarry !
Have you had a chance to prepare a public repository for further investigation?

@yuliswe
Copy link
Author

yuliswe commented May 5, 2023

The problem is sporadic and I can't reproduce it. Will take a look if this happens again.

@yuliswe yuliswe closed this as completed May 5, 2023
@sezanzeb
Copy link

I'm having a similar error message with cache: 'pip': https://github.com/sezanzeb/input-remapper/actions/runs/5365366969/jobs/9734150591#step:9:2

Should I open a separate issue for that? Is something on our side broken?

@dmitry-shibanov
Copy link
Contributor

Hello @sezanzeb. Could you please open a separate issue ?

@devanubis
Copy link

When I came across this problem, it turned out to be because my project was using a local .venv in development (to give the `pyright` pre-commit hook easy access to our dependencies and types)

And in our ci workflow, poetry was then installing to that .venv too, but setup-python was still looking for the poetry virtual environment in /home/runner/.cache/pypoetry/virtualenvs.

I just added a step to our ci workflow to rm -rf .venv since we don't need/want a local venv in ci.

Might help anyone else running into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants