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: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects #71

Open
Shell0222 opened this issue Dec 16, 2024 · 0 comments

Comments

@Shell0222
Copy link

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\torch\utils\cpp_extension.py", line 2104, in _run_ninja_build
subprocess.run(
File "D:\Anaconda\envs\gaussiancube\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
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 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "E:\HUST\pg1\GaussianCube\diff-gaussian-rasterization\setup.py", line 17, in <module>
      setup(
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\dist.py", line 989, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\wheel\bdist_wheel.py", line 364, in run
      self.run_command("build")
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\dist.py", line 989, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
      self.run_command(cmd_name)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\dist.py", line 989, in run_command
      super().run_command(command)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run
      _build_ext.run(self)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
      self.build_extensions()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\torch\utils\cpp_extension.py", line 868, in build_extensions
      build_ext.build_extensions(self)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\command\build_ext.py", line 249, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 548, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\torch\utils\cpp_extension.py", line 840, in win_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\torch\utils\cpp_extension.py", line 1784, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "D:\Anaconda\envs\gaussiancube\Lib\site-packages\torch\utils\cpp_extension.py", line 2120, 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: Failed building wheel for diff-gaussian-rasterization
Running setup.py clean for diff-gaussian-rasterization
Failed to build diff-gaussian-rasterization
ERROR: Could not build wheels for diff-gaussian-rasterization, which is required to install pyproject.toml-based projects
(gaussiancube) PS E:\HUST\pg1\GaussianCube>

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

1 participant