Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error: Chamfer 3D undefined symbol #9

Open
matthiasjaeger95 opened this issue Aug 4, 2022 · 4 comments
Open

Import Error: Chamfer 3D undefined symbol #9

matthiasjaeger95 opened this issue Aug 4, 2022 · 4 comments

Comments

@matthiasjaeger95
Copy link

When testing the pretrained model with the pcn dataset, the following error code occurred:

INFO - 2022-08-04 11:52:32,038 - test_pcn - Length of test dataset:0 Traceback (most recent call last): File "test_pcn.py", line 108, in <module> test() File "test_pcn.py", line 34, in test model_module = importlib.import_module('.%s' % args.model_name, 'models') File "/home/matthias/anaconda3/envs/AttN/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 843, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/matthias/Netzwerke/PointAttN/models/PointAttN.py", line 8, in <module> from utils.model_utils import * File "/home/matthias/Netzwerke/PointAttN/utils/model_utils.py", line 13, in <module> from utils.ChamferDistancePytorch.chamfer3D import dist_chamfer_3D File "/home/matthias/Netzwerke/PointAttN/utils/ChamferDistancePytorch/chamfer3D/dist_chamfer_3D.py", line 20, in <module> import chamfer_3D ImportError: /home/matthias/anaconda3/envs/AttN/lib/python3.8/site-packages/chamfer_3D-0.0.0-py3.8-linux-x86_64.egg/chamfer_3D.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106IValue23reportToTensorTypeErrorEv
I'm using torch 1.8.2, cue 11.4 and tensorflow 2.8.2.

Any ideas what the error could be?

Thanks in advance.

@WangJun-ZJUT
Copy link
Collaborator

Hi! It seems you have not compile the 3rd-party modules [ChamferDistancePytorch]successfully. Please compile Pytorch 3rd-party modules ChamferDistancePytorch before test the project. A simple way is provied in README.md.

@matthiasjaeger95
Copy link
Author

Hello, thank you for the fast answer! When I compile ChamferDistancePytorch again I get the following message in the end. I have assumed that this is correct.

Installed /home/matthias/anaconda3/envs/AttN/lib/python3.8/site-packages/chamfer_3D-0.0.0-py3.8-linux-x86_64.egg Processing dependencies for chamfer-3D==0.0.0 Finished processing dependencies for chamfer-3D==0.0.0

@WangJun-ZJUT
Copy link
Collaborator

Yes,It seems you have compile the modules successfully. If you still can't complete the test, we are sorry that we have not meet the same problem. However, we find a similar situation in the official project. We hope it will be helpful to you.

@Feng881107
Copy link

When testing the pretrained model with the pcn dataset, the following error code occurred:

INFO - 2022-08-04 11:52:32,038 - test_pcn - Length of test dataset:0 Traceback (most recent call last): File "test_pcn.py", line 108, in <module> test() File "test_pcn.py", line 34, in test model_module = importlib.import_module('.%s' % args.model_name, 'models') File "/home/matthias/anaconda3/envs/AttN/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 843, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/matthias/Netzwerke/PointAttN/models/PointAttN.py", line 8, in <module> from utils.model_utils import * File "/home/matthias/Netzwerke/PointAttN/utils/model_utils.py", line 13, in <module> from utils.ChamferDistancePytorch.chamfer3D import dist_chamfer_3D File "/home/matthias/Netzwerke/PointAttN/utils/ChamferDistancePytorch/chamfer3D/dist_chamfer_3D.py", line 20, in <module> import chamfer_3D ImportError: /home/matthias/anaconda3/envs/AttN/lib/python3.8/site-packages/chamfer_3D-0.0.0-py3.8-linux-x86_64.egg/chamfer_3D.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZNK3c106IValue23reportToTensorTypeErrorEv I'm using torch 1.8.2, cue 11.4 and tensorflow 2.8.2.

Any ideas what the error could be?

Thanks in advance.

Hello, I meet the same problem, do you solve this undefined symbol ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants