GAP-LAB-CUHK-SZ / Total3DUnderstanding

Implementation of CVPR'20 Oral: Total3DUnderstanding: Joint Layout, Object Pose and Mesh Reconstruction for Indoor Scenes from a Single Image
MIT License
415 stars 50 forks source link

ImportError:undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs #49

Closed Jingjingya852 closed 1 year ago

Jingjingya852 commented 1 year ago

Thank you very much for sharing. May I ask what kind of error this is and what the situation with the SO file is?

My code is developed under Ubuntu 22.04, and the file "build.ninja" was modified with my envs path, but I got the following errors:

Traceback (most recent call last): File "main.py", line 21, in from net_utils.utils import initiate_environment File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/net_utils/utils.py", line 12, in from models.registers import METHODS File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/models/init.py", line 1, in from . import total3d, mgnet File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/models/mgnet/init.py", line 1, in
from . import modules, training, config, dataloader File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/models/mgnet/config.py", line 5, in
from .testing import Tester File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/models/mgnet/testing.py", line 8, in
from external.pyTorchChamferDistance.chamfer_distance import ChamferDistance File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/external/pyTorchChamferDistance/chamfer_distance/init.py", line 1, in from .chamfer_distance import ChamferDistance File "/mnt/d/soft/Pycharm/result/paper_code/Total3DUnderstanding-master/external/pyTorchChamferDistance/chamfer_distance/chamfer_distance.py", line 8, in build_directory="external/pyTorchChamferDistance/build") File "/home/sjj/anaconda3/envs/Total3D/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 644, in load
is_python_module) File "/home/sjj/anaconda3/envs/Total3D/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 824, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/home/sjj/anaconda3/envs/Total3D/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 971, in _import_module_from_library return imp.load_module(module_name, file, path, description) File "/home/sjj/anaconda3/envs/Total3D/lib/python3.6/imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "/home/sjj/anaconda3/envs/Total3D/lib/python3.6/imp.py", line 343, in load_dynamic return _load(spec) ImportError: external/pyTorchChamferDistance/build/build.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKSs