ohhhyeahhh / PointAttN

Code for the paper "PointAttN: You Only Need Attention for Point Cloud Completion"
https://ojs.aaai.org/index.php/AAAI/article/view/28356
89 stars 13 forks source link

Compile error #3

Closed zztzzt200 closed 2 years ago

zztzzt200 commented 2 years ago

Hi, when I tried to compile the 'ChamferDistancePytorch/chamfer3D' , it returned an error shows below, Have you ever met this problem? I am using CUDA 11.0, PyTorch 1.7.0 ,Windows10 Thank you!

Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    setup(
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
    return run_commands(dist)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
    dist.run_commands()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
    self.run_command(cmd)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\dist.py", line 1214, in run_command
    super().run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
    cmd_obj.run()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\install.py", line 74, in run
    self.do_egg_install()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\install.py", line 123, in do_egg_install
    self.run_command('bdist_egg')
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\dist.py", line 1214, in run_command
    super().run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
    cmd_obj.run()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\bdist_egg.py", line 165, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\bdist_egg.py", line 151, in call_command
    self.run_command(cmdname)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\dist.py", line 1214, in run_command
    super().run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
    cmd_obj.run()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\dist.py", line 1214, in run_command
    super().run_command(command)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
    cmd_obj.run()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
    _build_ext.run(self)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "D:\anaconda\envs\py38\lib\site-packages\torch\utils\cpp_extension.py", line 653, in build_extensions
    build_ext.build_extensions(self)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "D:\anaconda\envs\py38\lib\site-packages\torch\utils\cpp_extension.py", line 619, in win_wrap_ninja_compile
    from distutils.spawn import _nt_quote_args  # type: ignore
ImportError: cannot import name '_nt_quote_args' from 'distutils.spawn' (D:\anaconda\envs\py38\lib\site-packages\setuptools\_distutils\spawn.py)

But I didn't see nt_quote_args in spawn.

Random-junhao commented 1 year ago

I have the same problem as you, may I ask if you solved it? Can you tell me how you solved it