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

pointnet_ops install problem #16

Open
Chopper-233 opened this issue Aug 24, 2023 · 9 comments
Open

pointnet_ops install problem #16

Chopper-233 opened this issue Aug 24, 2023 · 9 comments

Comments

@Chopper-233
Copy link

os:python3.8 cuda 11.3 pytorch 1.10.1
while i'm running the command pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib", i meet the issue following,and i try many solutions found on the internet but no one worked,i hope you can help me solve it nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 1723, in _run_ninja_build
env=env)
File "D:\Anaconda\envs\ulip\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 36, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\李文峤\AppData\Local\Temp\pip-install-kwvdlqzz\pointnet2-ops_fc850762ca7249e1bbcb92749807b38c\pointnet2_ops_lib\setup.py", line 38, in <module>
      include_package_data=True,
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\command\install.py", line 68, in run
      return orig.install.run(self)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
      self.run_command('build')
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
      self.run_command(cmd_name)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\dist.py", line 1208, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
      self.build_extensions()
    File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 735, in build_extensions
      build_ext.build_extensions(self)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 468, in build_extensions
      self._build_extensions_serial()
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 494, in _build_extensions_serial
      self.build_extension(ext)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\Anaconda\envs\ulip\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 556, in build_extension
      depends=ext.depends,
    File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 717, in win_wrap_ninja_compile
      with_cuda=with_cuda)
    File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
      error_prefix='Error compiling objects for extension')
    File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 1733, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pointnet2_ops

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@ChenXQ8979
Copy link

hi,I have met the same trouble,have you sloved it?

@jinghuihe
Copy link

I have met the same problem for a week . Has anyone solved the installation problem of pointnet2_ops? Thanks.

@nomewang
Copy link
Owner

nomewang commented Sep 8, 2023

pointnet2_ops has compatibility issues on Windows, and we recommend using Linux to run this repository.

@jinghuihe
Copy link

Thank you for your reply,I have solved he problem.Ithink it is necessary to consider the version of g++(my cuda is 11.3,g++ is 7.5)

pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
Collecting pointnet2_ops
Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e
Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e
Resolved https://github.com/erikwijmans/Pointnet2_PyTorch.git to commit b5ceb6d9ca0467ea34beb81023f96ee82228f626
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4 in /home/jinghui/.local/lib/python3.10/site-packages (from pointnet2_ops) (1.12.0+cu113)
Requirement already satisfied: typing-extensions in /home/jinghui/.local/lib/python3.10/site-packages (from torch>=1.4->pointnet2_ops) (4.7.1)
Building wheels for collected packages: pointnet2_ops
Building wheel for pointnet2_ops (setup.py) ... done
Created wheel for pointnet2_ops: filename=pointnet2_ops-3.0.0-cp310-cp310-linux_x86_64.whl size=188847 sha256=e1f0b8da761bee6c07b75c4ec3e3acdd837e0c51d09e4e30d7fd98f1c35fdcd5
Stored in directory: /tmp/pip-ephem-wheel-cache-y92ebytj/wheels/07/66/b7/b315cc8e7c28337b475a9cf6297780271555eda9b504de5f05
Successfully built pointnet2_ops
Installing collected packages: pointnet2_ops
Successfully installed pointnet2_ops-3.0.0

@limaodaxia
Copy link

limaodaxia commented Sep 20, 2023

Thank you for your reply,I have solved he problem.Ithink it is necessary to consider the version of g++(my cuda is 11.3,g++ is 7.5)

pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" Collecting pointnet2_ops Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-e2e3kqj1/pointnet2-ops_ce2d904eae3f499eb388d326b47d5c7e Resolved https://github.com/erikwijmans/Pointnet2_PyTorch.git to commit b5ceb6d9ca0467ea34beb81023f96ee82228f626 Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in /home/jinghui/.local/lib/python3.10/site-packages (from pointnet2_ops) (1.12.0+cu113) Requirement already satisfied: typing-extensions in /home/jinghui/.local/lib/python3.10/site-packages (from torch>=1.4->pointnet2_ops) (4.7.1) Building wheels for collected packages: pointnet2_ops Building wheel for pointnet2_ops (setup.py) ... done Created wheel for pointnet2_ops: filename=pointnet2_ops-3.0.0-cp310-cp310-linux_x86_64.whl size=188847 sha256=e1f0b8da761bee6c07b75c4ec3e3acdd837e0c51d09e4e30d7fd98f1c35fdcd5 Stored in directory: /tmp/pip-ephem-wheel-cache-y92ebytj/wheels/07/66/b7/b315cc8e7c28337b475a9cf6297780271555eda9b504de5f05 Successfully built pointnet2_ops Installing collected packages: pointnet2_ops Successfully installed pointnet2_ops-3.0.0

hello, how did you fix it?what is the correct version of cuda and g++?

@jinghuihe
Copy link

cuda is 11.3 and g++ is 7.5 ,I also implement it use cuda 11.7 and 11.1.,but the g++ version is 7.5 all the time .

@zhiqing0205
Copy link

手动克隆并安装

git clone https://github.com/erikwijmans/Pointnet2_PyTorch.git
cd Pointnet2_PyTorch/pointnet2_ops_lib
pip install .

亲测有效

@heidapao2b
Copy link

手动克隆并安装

git clone https://github.com/erikwijmans/Pointnet2_PyTorch.git
cd Pointnet2_PyTorch/pointnet2_ops_lib
pip install .

亲测有效
(M3DM) flk@lab-3090-ubuntu:~/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib$ pip install .
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4 in /home/flk/miniconda3/envs/M3DM/lib/python3.8/site-packages (from pointnet2_ops==3.0.0) (1.9.0)
Requirement already satisfied: typing-extensions in /home/flk/.local/lib/python3.8/site-packages (from torch>=1.4->pointnet2_ops==3.0.0) (4.10.0)
Building wheels for collected packages: pointnet2_ops
Building wheel for pointnet2_ops (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
running bdist_wheel
running build
running build_py
copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops
copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops
copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops
copying pointnet2_ops/init.py -> build/lib.linux-x86_64-cpython-38/pointnet2_ops
running egg_info
writing pointnet2_ops.egg-info/PKG-INFO
writing dependency_links to pointnet2_ops.egg-info/dependency_links.txt
writing requirements to pointnet2_ops.egg-info/requires.txt
writing top-level names to pointnet2_ops.egg-info/top_level.txt
reading manifest file 'pointnet2_ops.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pointnet2_ops.egg-info/SOURCES.txt'
copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/sampling.cpp -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src
running build_ext
building 'pointnet2_ops._ext' extension
Emitting ninja build file /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/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
g++ -pthread -B /home/flk/miniconda3/envs/M3DM/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/flk/miniconda3/envs/M3DM/compiler_compat -L/home/flk/miniconda3/envs/M3DM/lib -Wl,-rpath=/home/flk/miniconda3/envs/M3DM/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/bindings.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate_gpu.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling.o /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling_gpu.o -L/home/flk/miniconda3/envs/M3DM/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-38/pointnet2_ops/_ext.cpython-38-x86_64-linux-gnu.so
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/ball_query_gpu.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/bindings.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/group_points_gpu.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/interpolate_gpu.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling.o: 没有那个文件或目录
g++: error: /home/flk/Workspace/M3DM/Pointnet2_PyTorch/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-38/pointnet2_ops/_ext-src/src/sampling_gpu.o: 没有那个文件或目录
error: command '/usr/bin/g++' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pointnet2_ops
Running setup.py clean for pointnet2_ops
Failed to build pointnet2_ops
ERROR: Could not build wheels for pointnet2_ops, which is required to install pyproject.toml-based projects
但是我会报这个错误怎么办

@wangwei83
Copy link

pip install ninja

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

8 participants