-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
can't install pytorch 2.2 when install.cache is on #2614
Comments
when I view the torch installation directory, there isn't any file here:
There isn't any py file here. As comparasion. Here is my installation by poetry:
|
when I installed without cache. the torch directory is correctly installed.
|
Can't reproduce. Maybe related to nix. Can you look at what the links point to by |
|
so let's look at one link for example, does |
there is no file in this directory. And I also tried poetry:
And I also check disk usage:
|
Clear caches by |
|
there are py files now. But another import problem occurs. |
Change the cache method:
|
And don't compare with poetry, it doesn't support install cache at all. |
|
@frostming I found the file in /home/ubuntu/.cache/pdm link to itself.
|
Is it the only one? Manually fix it yourself and it should work. |
I just check one. and I have clear all cache with pdm cache clear and remove .venv and rerun pdm sync -r. I can see it download packages from internet. This time, it become empty again and don't link to anything.
And I check cached packages. it's also empty(only a file named referrers)
|
It seems like the symlinks are followed when deleting the links from the current project. But unfortunately I still can't reproduce after experimenting with different cache methods. Does it work with other simpler packages? Try |
click is correctly installed with individual_symlink. It's correctedly imported: (testcache-3.9) ubuntu@VM-4-12-ubuntu:/nas/lili/codes/pt/testcache$ python
Python 3.9.18 (main, Feb 2 2024, 13:57:14)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import click
>>> print(click.__file__)
/nas/lili/codes/pt/testcache/.venv/lib/python3.9/site-packages/click/__init__.py And goto the .venv I can see it's linked to global cache:
|
I found the problem. the project is in a nfs, while the cache dir is not. So the system can't create symlink correctly. I have change the config like this:
And it works now. |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Actual behavior
Expected behavior
it works with cache.
Environment Information
I also tried symlink_individual and hardlink. none of them worked. I even tried "pth" in some old issue but still not work.
I search related issue such as #1732 and can't find solution.
When I set install.cache=False, it works. But that's not I wanted.
The text was updated successfully, but these errors were encountered: