pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

ImportError: ... Symbol not found: (__ZN2at4_ops10select_int4callERKNS_6TensorExx)

Open danyow-cheung opened this issue 2 years ago • 5 comments

the Issue:

  1. code
from pytorch3d.io import load_ply 
  1. full logs pytorch3d version = 0.7.4 laptop :macos intel chip
ImportError: dlopen(/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/pytorch3d/_C.cpython-39-darwin.so, 0x0002): Symbol not found: (__ZN2at4_ops10select_int4callERKNS_6TensorExx)
  Referenced from: '/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/pytorch3d/_C.cpython-39-darwin.so'
  Expected in: '/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/torch/lib/libtorch_cpu.dylib'

I install pytorch3d through pip install pytorch3d and i reinstall other version(0.6.1) but still got the error like this

ImportError: dlopen(/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/pytorch3d/_C.cpython-39-darwin.so, 0x0002): Symbol not found: (__Z11_THArgCheckPKciiiS0_z)
  Referenced from: '/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/pytorch3d/_C.cpython-39-darwin.so'
  Expected in: '/Users/danyow/envs/3d_venv/lib/python3.9/site-packages/torch/lib/libtorch_cpu.dylib'

danyow-cheung avatar Jul 19 '23 02:07 danyow-cheung

What version of pytorch do you have? If you install our prebuilt wheels (for intel mac) they will only work with PyTorch 1.13.0. It may help to build from source?

bottler avatar Jul 20 '23 18:07 bottler

What version of pytorch do you have? If you install our prebuilt wheels (for intel mac) they will only work with PyTorch 1.13.0. It may help to build from source?

i reinstall the torch 1.13.0 still got the same error

danyow-cheung avatar Jul 25 '23 09:07 danyow-cheung

Can you share your pip list and conda list. When you say "reinstall", did you try starting again in a new environment? I recommend that.

bottler avatar Aug 09 '23 11:08 bottler

Can you share your pip list and conda list. When you say "reinstall", did you try starting again in a new environment? I recommend that.

Package                   Version
------------------------- ------------------
addict                    2.4.0
ansi2html                 1.8.0
attrs                     23.1.0
certifi                   2023.5.7
charset-normalizer        3.2.0
click                     8.1.6
ConfigArgParse            1.5.5
contourpy                 1.1.0
cycler                    0.11.0
dash                      2.11.1
dash-core-components      2.0.0
dash-html-components      2.0.0
dash-table                5.0.0
fastjsonschema            2.17.1
filelock                  3.12.2
Flask                     2.2.5
fonttools                 4.41.0
fvcore                    0.1.5.post20221221
idna                      3.4
importlib-metadata        6.8.0
importlib-resources       6.0.0
iopath                    0.1.10
itsdangerous              2.1.2
Jinja2                    3.1.2
joblib                    1.3.1
jsonschema                4.18.4
jsonschema-specifications 2023.7.1
jupyter_core              5.3.1
kiwisolver                1.4.4
MarkupSafe                2.1.3
matplotlib                3.7.2
mpmath                    1.3.0
nbformat                  5.5.0
nest-asyncio              1.5.6
networkx                  3.1
numpy                     1.25.1
open3d                    0.14.1
packaging                 23.1
pandas                    2.0.3
Pillow                    10.0.0
pip                       23.2
platformdirs              3.9.1
plotly                    5.15.0
portalocker               2.7.0
pyparsing                 3.0.9
pyquaternion              0.9.9
python-dateutil           2.8.2
pytorch3d                 0.6.1
pytz                      2023.3
PyYAML                    6.0.1
referencing               0.30.0
requests                  2.31.0
retrying                  1.3.4
rpds-py                   0.9.2
scikit-learn              1.3.0
scipy                     1.11.1
setuptools                49.2.1
six                       1.16.0
sympy                     1.12
tabulate                  0.9.0
tenacity                  8.2.2
termcolor                 2.3.0
threadpoolctl             3.2.0
torch                     1.13.0
torchaudio                2.0.2
torchvision               0.15.2
tqdm                      4.65.0
traitlets                 5.9.0
typing_extensions         4.7.1
tzdata                    2023.3
urllib3                   2.0.3
Werkzeug                  2.2.3
wheel                     0.40.0
yacs                      0.1.8
zipp                      3.16.2

danyow-cheung avatar Aug 10 '23 08:08 danyow-cheung

Why are you trying pytorch3d 0.6.1? Main thing is: Does it work in a new environment with torch 1.13.0 and latest pytorch3d?

bottler avatar Aug 10 '23 10:08 bottler