KPConv-PyTorch icon indicating copy to clipboard operation
KPConv-PyTorch copied to clipboard

Compile the C++ extension modules for python

Open ghasemadi opened this issue 3 years ago • 2 comments

Hi Thomas,

Thank you for sharing the code. I tried to install the package but I have had a problem compiling the C++ extension modules for python. Once I click on the *.bat files I have the following message (FYI, I installed visual studio build tools 2017/2019 as well) and then, it continues to make the *.pyd files. "No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'radius_neighbors' extension"

Finally, I run the code based on the above pyd files and before training the model, I receive another error showing "AttributeError: 'list' object has no attribute 'neighbours'".

Could you please advise, Thanks in advance,

ghasemadi avatar Mar 13 '21 10:03 ghasemadi

Hi @ghasemadi,

I need more than that to be able to help you with your problem. What version of python are you using? What version of Numpy?

You might need to downgrade to previous versions (python <= 3.7), I read somewhere the 3.8 version has some issues.

Another thing you might need is the Visual C++ Redistributable for Visual Studio, but I am not sure of that.

Best, Hugues

HuguesTHOMAS avatar Mar 15 '21 16:03 HuguesTHOMAS

Hi @HuguesTHOMAS, Thank you for your response. FYI, I am using python 3.7.10 and numpy 1.19.2. Also, I already installed Microsoft Visual C++ 13, 15, 17, and 19 Redistributable as well as Microsoft Visual C++ Compiler Package for Python. Please advise.

If there is no specific response to this problem, I would appreciate compiling those for Python 3.7 and upload in GitHub. Thanks in advance, Ghasem

ghasemadi avatar Mar 15 '21 16:03 ghasemadi