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

ERROR: Failed building wheel for pointnet2 #31

Open
integralSF opened this issue Jul 7, 2023 · 3 comments
Open

ERROR: Failed building wheel for pointnet2 #31

integralSF opened this issue Jul 7, 2023 · 3 comments

Comments

@integralSF
Copy link

After entering the directory .\utils\Pointnet2. PyTorch\pointnet2, I executed the build command pip install ., There were many errors in the middle, and I have been solving them until now. I'm not sure if it's because my Python version doesn't match or doesn't adapt to Windows 10. I have just come into contact with this issue, and if you are willing to point out my issue, I would greatly appreciate it.
The error is as follows:

Processing d:\project\vrcnet-main\utils\pointnet2.pytorch\pointnet2
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pointnet2
  Building wheel for pointnet2 (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'pointnet2_cuda' extension
      creating D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build
      creating D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38
      creating D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release
      creating D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src
      Emitting ninja build file D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      1.11.1.git.kitware.jobserver-1
      creating D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\lib.win-amd64-cpython-38
      "D:\software\Microsoft Visual Studio\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Anaconda3\envs\GAN\lib\site-packages\torch\lib "/LIBPATH:D:\NVIDA GPU Computing Toolkit\lib\x64" /LIBPATH:D:\Anaconda3\envs\GAN\libs /LIBPATH:D:\Anaconda3\envs\GAN /LIBPATH:D:\Anaconda3\envs\GAN\PCbuild\amd64 "/LIBPATH:D:\software\Microsoft Visual Studio\VC\Tools\MSVC\14.36.32532\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.18362.0\\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib cudart.lib c10_cuda.lib torch_cuda_cu.lib torch_cuda_cpp.lib /EXPORT:PyInit_pointnet2_cuda D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/ball_query.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/ball_query_gpu.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/group_points.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/group_points_gpu.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/interpolate.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/interpolate_gpu.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/pointnet2_api.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/sampling.obj D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src/sampling_gpu.obj /OUT:build\lib.win-amd64-cpython-38\pointnet2_cuda.cp38-win_amd64.pyd /IMPLIB:D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src\pointnet2_cuda.cp38-win_amd64.lib
      LINK : fatal error LNK1181: 无法打开输入文件“D:\project\VRCNet-main\utils\Pointnet2.PyTorch\pointnet2\build\temp.win-amd64-cpython-38\Release\src\ball_query.obj”
      error: command 'D:\\software\\Microsoft Visual Studio\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pointnet2
  Running setup.py clean for pointnet2
Failed to build pointnet2
ERROR: Could not build wheels for pointnet2, which is required to install pyproject.toml-based projects

thanks a lot😭

@integralSF
Copy link
Author

Now, I successfully ran it under Linux

@litleWY
Copy link

litleWY commented Oct 26, 2023

Now, I successfully ran it under Linux

can you tell me how you sovled the problem,thanks

@integralSF
Copy link
Author

Now, I successfully ran it under Linux

can you tell me how you sovled the problem,thanks

Just change the operating system to Ubuntu 20.04 on liunx, and follow the author's requirements for other configurations

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

2 participants