torch-points3d / torch-points-kernels

Pytorch kernels for spatial operations on point clouds
MIT License
96 stars 24 forks source link

ModuleNotFoundError: No module named 'torch_points_kernels.points_cuda' #62

Closed devskroy1 closed 3 years ago

devskroy1 commented 3 years ago

Hi,

I am using your torch-points-kernels repo for a project I am working on. The torchpoints.py file imports 'torch_points_kernels.points_cuda', however I get a ModuleNotFoundError as the points_cuda.py file doesn't exist. I checked the repo too but I couldn't find it. Do you know how I can resolve this error?

Thanks in advance.

nicolas-chaulet commented 3 years ago

You need to compile the project for that. python setup.py build_ext --inplace

devskroy1 commented 3 years ago

Thanks for your answer. When I run that command from the root directory, I get the following error:

error: could not create 'torch_points_kernels/points_cpu.so': No such file or directory.

The full trace looks like this:

running build_ext copying build/lib.linux-x86_64-3.8/torch_points_kernels/points_cpu.so -> torch_points_kernels error: could not create 'torch_points_kernels/points_cpu.so': No such file or directory

Do you know how I can resolve this?

Thanks.

nicolas-chaulet commented 3 years ago

Closing as duplicate