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

How can i fix the error clamed "ModuleNotFoundError: No module named 'chamfer'"? #35

Closed
Jimmybear-123 opened this issue Mar 13, 2022 · 9 comments

Comments

@Jimmybear-123
Copy link

HI! Thank you for your open source! I am trying to run examples you written in your document, but after input the code, it remind me an error named "ModuleNotFoundError: No module named 'chamfer'". How can I fix it? Looking for your help.

@yuxumin
Copy link
Owner

yuxumin commented Mar 13, 2022

Hi,

This issue can be solved by installing extensions again, details can be found in #6

@Jimmybear-123
Copy link
Author

Thank you for your reply! I have tried #6, run "python setup.py install --user" in /extensions/chamfer_dist/. I back to the /PoinTr-master/ and run the terminal. I input "bash install.sh", and I try run"bash ./scripts/test.sh 0
--ckpts ./pretrained/PoinTr_ShapeNet55.pth
--config ./cfgs/ShapeNet55_models/PoinTr.yaml
--mode easy
--exp_name example"
But the prompt is still the same. No module named 'chamfer'
I am confused, and Looking for your help.
Thank you.

@yuxumin
Copy link
Owner

yuxumin commented Mar 13, 2022

This is weird, the same problem can be solved with this situation before.
Could you create a new virtual env and try it again?

@Jimmybear-123
Copy link
Author

Thank you for your reply! I solved this error. I delete whole project, and do it again, this error was gone. But There's another error. Nijia is required to load C++ extensions. And I am working on it.

@Jimmybear-123
Copy link
Author

Oh, thank you! I run "sudo apt install ninja-build", and the problem has been solved!

@JiangZhenW
Copy link

hi, your work is very wonderful, and i an really interested in it. but i meet a problem: no module named 'pointnet2_ops',how can i solve it? thanks a lot!

@yuxumin
Copy link
Owner

yuxumin commented Mar 22, 2022

@JiangZhenW Have your installed the dependency of pointnet?

pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"

@JiangZhenW
Copy link

JiangZhenW commented Mar 23, 2022 via email

@yuxumin
Copy link
Owner

yuxumin commented Mar 23, 2022

Hi, could you try to build it from source and see if it will work for you (ref: https://github.com/erikwijmans/Pointnet2_PyTorch)

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