-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
FileNotFoundError: [Errno 2] No such file or directory #3345
Comments
I don't know how to reproduce it because I can't (on MacOS) |
It seems that PDM uses some mechanism to cache downloaded packages. From the error message, it can be seen that PDM tried to use the cached package, but did not find it in the corresponding location. This may be due to some reasons, such as version update causing caching. The folder has changed, for example I accidentally deleted the cache folder. So one of the solutions I can think of, is to clear the cached mapping of the pdm record. But no matter if I try to reinstall pdm or something else, I can't do it to refresh the record. (I use PIPX). If I could know, Where does PDM read cache records and clear it, maybe the problem will be solved |
There is no such mapping, we just map the cache key to the file path under cache folder |
Does the path look right? double pdm? I do not own a Windows machine so cannot verify. ~\AppData\Local\pdm\pdm\Cache\wheels\ On linux this is just $ ls -l ~/.cache/pdm/
total 4
drwxr-xr-x. 1 klmcw klmcw 896 Dec 30 19:23 hashes
drwxr-xr-x. 1 klmcw klmcw 31700 Jan 2 21:39 http
drwxr-xr-x. 1 klmcw klmcw 580 Jan 2 17:21 metadata
drwxr-xr-x. 1 klmcw klmcw 112 Dec 28 05:31 self-check
-rw-r--r--. 1 klmcw klmcw 205 Dec 30 13:09 use_cache.json
drwxr-xr-x. 1 klmcw klmcw 16 Dec 30 19:23 wheels |
Describe the bug
Hi,
When I try to use the command "pdm update".
I received a error :
And I try to use the "pdm chache clear" to fix it, and it didn't work.
And I found, there is no dictionary named "pdm" under "Local".
To reproduce
Expected Behavior
use "pdm update"
Environment Information
Verbose Command Output
Additional Context
No response
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: