-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Pytorch missing DLLs when installed into an environment on Windows, but not on linux #354
Comments
Thanks for the report. We're testing the import (and much more) here, so it's surprising that this would fail. We didn't successfully populate I suggest we wait for the |
Also happens with just torch import:
|
We do test this here pytorch-cpu-feedstock/recipe/meta.yaml Lines 401 to 405 in be20390
but it appears that a whole bunch of pytorch-dependent packages (including torchvision ) have their own $SP_DIR/<pgk>/_C.so .
So I guess we need to keep that one in |
Well, I just noticed that the following chunk of pytorch-cpu-feedstock/recipe/bld.bat Lines 229 to 232 in be20390
because pytorch on windows contains
rather than having the |
In roughly 14-15h, you should be able to test the builds from #356 (look for build string ending in `_314), which fix this. |
Builds are online now - could you try again please? |
Unfortunately still not working as expected. Error message:
Installed pytorch package version is conda list belowClick to expand |
Environment is still grabbing both |
Yes, this is the one from #356 that should have the fix. 🥲 Can you try to build up the environment more iteratively? E.g. from a fresh environment
|
Pytorch only - Worksconda list - Click to expand pytorch + torchvision - Worksconda list - Click to expand pytorch + torchvision + roboticstoolbox-python - Doesn't Work - Same errorconda list - Click to expand roboticstoolbox-python installs |
If this is indeed due to |
Thanks @h-vetinari, some further testing that does point towards openmp conflicts... Starting in the pytorch + torchvision + roboticstoolbox-python broken environment
Results in a working environment: (rvss) C:\Users\Ted>python -c "import torch; print(torch.__version__)"
2.5.1 |
Solution to issue cannot be found in the documentation.
Issue
See rvss-australia/RVSS_Need4Speed#6, and rvss-australia/RVSS_Need4Speed#7.
When installing Pytorch alongside a long list of other packages for the above repo, it fails to import and instead displays the below error:
The environment was created with the following command:
The issue is NOT present when installing just Pytorch and torchvision using:
Linux/WSL conda list shown in the linked issue. Long paths has been enabled for windows.
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: