avatarify-python icon indicating copy to clipboard operation
avatarify-python copied to clipboard

caffe2_nvrtc.dll not found

Open odrapj opened this issue 5 years ago • 12 comments

Hi in step run_windows.bat there is a error;

FileNotFoundError: Could not find module 'C:\Users\junpa.conda\envs\avatarify\lib\site-packages\torch\lib\caffe2_nvrtc.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Error Run_Windows

odrapj avatar Apr 22 '20 21:04 odrapj

related with https://github.com/pytorch/pytorch/issues/37022 , related topic closed without good solution

neoandrevictor avatar Apr 23 '20 01:04 neoandrevictor

I moved cuda dlls to system32 wich i picked in the link above and reimported pytorch and worked.

neoandrevictor avatar Apr 25 '20 14:04 neoandrevictor

@neoandrevictor Could you describe the solution in more detail, i.e. which files exactly you moved and where?

alievk avatar Apr 25 '20 14:04 alievk

Possibly see #103

nt314p avatar May 01 '20 17:05 nt314p

I

I moved cuda dlls to system32 wich i picked in the link above and reimported pytorch and worked.

Yes, moving the dlls cuda into system32 folder, it works for me

osguald avatar Jun 02 '20 00:06 osguald

https://github.com/pytorch/pytorch/issues/37022 worked for me as well

Coooorinne avatar Aug 24 '20 07:08 Coooorinne

Anyone still having this issue?

JohanAR avatar Jan 23 '21 11:01 JohanAR

Anyone still having this issue?

i have the same issue

MarouaneZ1 avatar Sep 24 '22 16:09 MarouaneZ1

@MarouaneZ1 You mean you have exactly the same issue, where it can't find the file "caffe2_nvrtc.dll"?

JohanAR avatar Sep 25 '22 09:09 JohanAR

@MarouaneZ1 You mean you have exactly the same issue, where it can't find the file "caffe2_nvrtc.dll"?

Could not find module 'C:\Users.........\anaconda3\lib\site-packages\torch\lib\caffe2_nvrtc.dll' here it is

MarouaneZ1 avatar Sep 25 '22 13:09 MarouaneZ1

@MarouaneZ1 You mean you have exactly the same issue, where it can't find the file "caffe2_nvrtc.dll"?

Could not find module 'C:\Users.........\anaconda3\lib\site-packages\torch\lib\caffe2_nvrtc.dll' here it is

i got a new issue::: ImportError: DLL load failed while importing _C (i got this issue while trying to use Detectron2LayoutModel )

MarouaneZ1 avatar Sep 25 '22 13:09 MarouaneZ1

Ok, leaving this issue open then, in case someone who runs Windows comes by with some information of what might be causing it.

JohanAR avatar Sep 25 '22 14:09 JohanAR

Hey guys, what solved the issue for me is to install cudatoolkit, turns out GPU diver installation is not enough.

You can download the CudaToolKit just like this: https://anaconda.org/anaconda/cudatoolkit

hope this helps

wowords avatar Nov 29 '22 23:11 wowords

Hey guys, what solved the issue for me is to install cudatoolkit, turns out GPU diver installation is not enough.

You can download the CudaToolKit just like this: https://anaconda.org/anaconda/cudatoolkit

hope this helps

worked for me

casras111 avatar Dec 07 '22 19:12 casras111

Had the exact same issue. Installing CudaToolKit fixed it.

DamienLea1 avatar Dec 09 '22 10:12 DamienLea1