weify627 / 4D-Rotor-Gaussians

Apache License 2.0
79 stars 5 forks source link

Installation of diff-gaussian-rasterization-confidence #4

Closed liyw420 closed 3 months ago

liyw420 commented 3 months ago

When run

cd libs/diff-gaussian-rasterization-confidence; pip install .

Error:

  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/vincent/Research/code/4D-Rotor-Gaussians/libs/diff-gaussian-rasterization-confidence/setup.py", line 13, in <module>
          from torch.utils.cpp_extension import CUDAExtension, BuildExtension
        File "/home/vincent/ProgramFiles/miniconda3/envs/4drotorgs/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 28, in <module>
          from pkg_resources import packaging  # type: ignore[attr-defined]
      ImportError: cannot import name 'packaging' from 'pkg_resources' (/home/vincent/ProgramFiles/miniconda3/envs/4drotorgs/lib/python3.8/site-packages/pkg_resources/__init__.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

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

Solution:

pip install setuptools==69.5.1

before the Installation of diff-gaussian-rasterization-confidence. See aws-neuron/aws-neuron-sdk#893