Pytorch3d: _C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_11DispatchKeyE

Created on 6 Dec 2020  ·  2Comments  ·  Source: facebookresearch/pytorch3d

1、python3 -m pip install pytorch3d
image
2、 python3 smal_fitter/optimize_to_joints.py
image
/opt/conda/lib/python3.6/site-packages/pytorch3d/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_11DispatchKeyE

How to solve this problem?

my python is 3.6.

image

from the image we can see that "import pytorch3d" is ok.

installation

Most helpful comment

The prebuilt wheels on PyPI for pytorch3d are only for a particular version of pytorch, specifically pytorch 1.6.0 at the moment. I suspect you have a different version of pytorch - maybe the latest, 1.7.0. Getting this wrong is likely to produce and error like the one you see. Additionally, if you want pytorch3d to work with your GPU, you also have to have the right cuda version. The details are given here. If you can use conda to install everything then there is full flexibility on these versions and it is automatic to get everything right. Alternatively building pytorch3d from source also gives you full flexibility.

If you want more advice on what is wrong here, please paste the output of pip list.

All 2 comments

The prebuilt wheels on PyPI for pytorch3d are only for a particular version of pytorch, specifically pytorch 1.6.0 at the moment. I suspect you have a different version of pytorch - maybe the latest, 1.7.0. Getting this wrong is likely to produce and error like the one you see. Additionally, if you want pytorch3d to work with your GPU, you also have to have the right cuda version. The details are given here. If you can use conda to install everything then there is full flexibility on these versions and it is automatic to get everything right. Alternatively building pytorch3d from source also gives you full flexibility.

If you want more advice on what is wrong here, please paste the output of pip list.

@sunbin1357 were you able to resolve this issue using the suggestions from @bottler? If you don't have any further questions please close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shersoni610 picture shersoni610  ·  3Comments

OOF-dura picture OOF-dura  ·  3Comments

zhjscut picture zhjscut  ·  3Comments

unlugi picture unlugi  ·  3Comments

ruslanvasylev picture ruslanvasylev  ·  3Comments