Closed BenjaminBo closed 3 years ago
We didn't test our code on Windows platform. But if you can successfully install Pointnet_2, try moving the built _ext.cpython*.so
from Pointnet_2 to pvn3d/lib/pointnet2_utils/
. The python setup.py build_ext
only build that .so
file.
I'm sorry for responding just now. Moving the files that are metioned in the Error resolved the issue.
I'm sorry for responding just now. Moving the files that are metioned in the Error resolved the issue.
1.What files need to be moved?(Like ball_query.h?) 2.Where should I move the file?
So I think I know the answer to your question but let me preface this, since I am unable to test what I am telling you:
It has been a while since I have worked with this repository. I have also switched to Linux to work with it. Meaning I am not sure if this will really be helpful to you in the end. The source for the solutions that I am giving to you is an old email chain in which I wrote to someone more knowledgeable than me to find out what's going on. I am also going to talk about solutions to problems that I faced after solving this one. With that out of the way, I'm going to talk about the way I think I solved this issue:
After getting the error which you can see in the comment that opened the issue, I moved all mentioned .h
files in the ./pvn3d/_ext-src/include
folder, one of which would be ball_query.h
, yes. This solved the issue for me.
I didn't try these approaches, but I think you can also solve this issue by:
setup.py
.PVN3D\build\temp.win-amd64-3.6\Release
directory.Now to the issues that followed:
Getting an error concerning the AT_CHECK
function:
For a solution, see pytorch/pytorch#36581
After this i got an issue concerning the cp
command used in setup.py
:
45 os.system('cp {} {}'.format(src_pth, tg_pth))
To make this line OS independent, see: https://deref-gmx.net/mail/client/mbKzd9DBLtc/dereferrer/?redirectUrl=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fshutil.html
This is not what i did, though. Again I am not sure what I did here.
I was told that most libraries on linux start with lib
, which is why this line exists:
40 if 'lib' in fd:
On windows, though, most libraries end with .dll
. So I think I looked for these files and moved them into the paths mentioned in line 45
above.
I reopened this issue by accident, which is why I closed it again.
Hello,
when running
python setup.py build_ext
i get the following error:I did not find the .obj-files that are mentioned in the "FAILED:" lines above. I did follow all the setup steps for Pointnet_2 ( https://github.com/erikwijmans/Pointnet2_PyTorch ) so I'm not sure what I missed.
I would appreciate if someone could help me.
OS: Windows 10 Python: 3.6.10 Cuda: 10.1