pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

ImportError: libc10.so: cannot open shared object file: No such file or directory

Open Fwngry opened this issue 2 years ago • 2 comments

I'm so tired of "ImportError: libc10.so: cannot open shared object file: No such file or directory" when I use" from pytorch3d import _C"........can anybody help me?? I tried to install pytorch3d 30 times following the issues suggestions and install readme and it never work!!!

Fwngry avatar Aug 31 '22 04:08 Fwngry

libc10.so is part of PyTorch. There is something "wrong" with the PyTorch installation e.g. there is a mismatch between the pytorch at run time or the pytorch when pytorch3d was built.

How did you install pytorch? How did you build pytorch3d? Could you use our conda builds?

One thing to try is import torch before you try to import any of PyTorch3D.

bottler avatar Aug 31 '22 13:08 bottler

I also had such an error, please try to import torchvision to see if an error is reported, I think it is caused by the mismatch between torch and torchvision versions, you can try to reinstall

JSHZT avatar Sep 09 '22 15:09 JSHZT

No error on importing torchvision for me, but still facing same issue as @Fwngry

sidsingla avatar Jan 10 '23 17:01 sidsingla

Running import torch before from pytorch3d import _C works for me!

Thanks to this comment (https://github.com/facebookresearch/pytorch3d/issues/1531#issuecomment-1538198217) by @bottler

Samir55 avatar Aug 15 '23 01:08 Samir55