FruitNeRF icon indicating copy to clipboard operation
FruitNeRF copied to clipboard

ERROR: Failed building editable for groundingdino

Open 00mmw opened this issue 11 months ago • 0 comments

I have successfully run "python -m pip install -e ." under FruitNeRF file, but I cannot install Grounding DINO successfully. The error is ... self.build_extensions() File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 900, in build_extensions build_ext.build_extensions(self) File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 481, in build_extensions self._build_extensions_serial() File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 507, in _build_extensions_serial self.build_extension(ext) File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 264, in build_extension _build_ext.build_extension(self, ext) File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 562, in build_extension objects = self.compiler.compile( File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 713, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1869, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2225, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension /home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/dist.py:1002: _DebuggingTips: Problem in editable installation. !!

          ********************************************************************************
          An error happened while installing `groundingdino` in editable mode.
  
          The following steps are recommended to help debug this problem:
  
          - Try to install the project normally, without using the editable mode.
            Does the error still persist?
            (If it does, try fixing the problem before attempting the editable mode).
          - If you are using binary extensions, make sure you have all OS-level
            dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
          - Try the latest version of setuptools (maybe the error was already fixed).
          - If you (or your project dependencies) are using any setuptools extension
            or customization, make sure they support the editable mode.
  
          After following the steps above, if the problem still persists and
          you think this is related to how setuptools handles editable installations,
          please submit a reproducible example
          (see https://stackoverflow.com/help/minimal-reproducible-example) to:
  
              https://github.com/pypa/setuptools/issues
  
          See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
          ********************************************************************************
  
  !!
    cmd_obj.run()
  Traceback (most recent call last):
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2209, in _run_ninja_build
      subprocess.run(
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/subprocess.py", line 526, 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 "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 303, in build_editable
      return hook(wheel_directory, config_settings, metadata_directory)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/build_meta.py", line 476, in build_editable
      return self._build_with_temp_dir(
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
      self.run_setup()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 200, in <module>
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
      return run_commands(dist)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
      dist.run_commands()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
      self.run_command(cmd)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
      cmd_obj.run()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 139, in run
      self._create_wheel_file(bdist_wheel)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
      files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
      self._run_build_subcommands()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
      self.run_command(name)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
      self.distribution.run_command(command)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
      cmd_obj.run()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 99, in run
      _build_ext.run(self)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
      self.build_extensions()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 900, in build_extensions
      build_ext.build_extensions(self)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 481, in build_extensions
      self._build_extensions_serial()
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 507, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 264, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 562, in build_extension
      objects = self.compiler.compile(
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 713, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1869, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/nya/anaconda3/envs/FruitNeRF/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2225, 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 editable for groundingdino Failed to build groundingdino ERROR: Failed to build installable wheels for some pyproject.toml based projects (groundingdino). My env is:nya@gpu0:/mnt/TempData/brl/people/wyn$ pip list Package Version Editable project location


absl-py 2.1.0 addict 2.4.0 alphashape 1.3.1 annotated-types 0.7.0 anyio 4.8.0 appdirs 1.4.4 argon2-cffi 23.1.0 argon2-cffi-bindings 21.2.0 arrow 1.3.0 asttokens 3.0.0 async-lru 2.0.4 attrs 25.1.0 av 14.1.0 babel 2.17.0 beautifulsoup4 4.13.3 bidict 0.23.1 bleach 6.2.0 blinker 1.9.0 cachetools 5.5.1 certifi 2025.1.31 cffi 1.17.1 chardet 5.2.0 charset-normalizer 3.4.1 click 8.1.8 click-log 0.4.0 colorlog 6.9.0 comm 0.2.2 ConfigArgParse 1.7 contourpy 1.3.1 cryptography 44.0.1 cycler 0.12.1 dash 2.18.2 dash-core-components 2.0.0 dash-html-components 2.0.0 dash-table 5.0.0 debugpy 1.8.12 decorator 5.1.1 defusedxml 0.7.1 descartes 1.1.0 docker-pycreds 0.4.0 docstring_parser 0.16 embreex 2.17.7.post6 exceptiongroup 1.2.2 executing 2.2.0 fastjsonschema 2.21.1 filelock 3.17.0 fire 0.7.0 Flask 3.0.3 fonttools 4.56.0 fqdn 1.5.1 fruit_nerf 0.0.1 /mnt/TempData/brl/people/wyn/code/FruitNeRF fsspec 2025.2.0 gdown 5.2.0 gitdb 4.0.12 GitPython 3.1.44 grpcio 1.70.0 h11 0.14.0 h5py 3.12.1 hausdorff 0.2.6 httpcore 1.0.7 httpx 0.28.1 huggingface-hub 0.28.1 idna 3.10 imageio 2.37.0 importlib_metadata 8.6.1 ipykernel 6.29.5 ipython 8.32.0 ipywidgets 8.1.5 isoduration 20.11.0 itsdangerous 2.2.0 jaxtyping 0.2.37 jedi 0.19.2 Jinja2 3.1.5 joblib 1.4.2 json5 0.10.0 jsonpointer 3.0.0 jsonschema 4.23.0 jsonschema-specifications 2024.10.1 jupyter 1.1.1 jupyter_client 8.6.3 jupyter-console 6.6.3 jupyter_core 5.7.2 jupyter-events 0.12.0 jupyter-lsp 2.2.5 jupyter_server 2.15.0 jupyter_server_terminals 0.5.3 jupyterlab 4.3.5 jupyterlab_pygments 0.3.0 jupyterlab_server 2.27.3 jupyterlab_widgets 3.0.13 kiwisolver 1.4.8 lazy_loader 0.4 lightning-utilities 0.12.0 llvmlite 0.41.1 lxml 5.3.1 manifold3d 3.0.1 mapbox_earcut 1.0.3 Markdown 3.7 markdown-it-py 3.0.0 MarkupSafe 3.0.2 matplotlib 3.10.0 matplotlib-inline 0.1.7 mdurl 0.1.2 mediapy 1.2.2 mistune 3.1.1 mpmath 1.3.0 msgpack 1.1.0 msgpack-numpy 0.4.8 msgspec 0.19.0 narwhals 1.26.0 nbclient 0.10.2 nbconvert 7.16.6 nbformat 5.10.4 nerfacc 0.5.2 nerfstudio 0.3.2 nest-asyncio 1.6.0 networkx 3.4.2 ninja 1.11.1.3 nodeenv 1.9.1 notebook 7.3.2 notebook_shim 0.2.4 numba 0.58.1 numpy 1.26.4 nuscenes-devkit 1.1.9 nvidia-cublas-cu12 12.4.5.8 nvidia-cuda-cupti-cu12 12.4.127 nvidia-cuda-nvrtc-cu12 12.4.127 nvidia-cuda-runtime-cu12 12.4.127 nvidia-cudnn-cu12 9.1.0.70 nvidia-cufft-cu12 11.2.1.3 nvidia-curand-cu12 10.3.5.147 nvidia-cusolver-cu12 11.6.1.9 nvidia-cusparse-cu12 12.3.1.170 nvidia-cusparselt-cu12 0.6.2 nvidia-nccl-cu12 2.21.5 nvidia-nvjitlink-cu12 12.4.127 nvidia-nvtx-cu12 12.4.127 open3d 0.19.0 opencv-python 4.6.0.66 opencv-python-headless 4.11.0.86 overrides 7.7.0 packaging 24.2 pandas 2.2.3 pandocfilters 1.5.1 parso 0.8.4 pexpect 4.9.0 pillow 11.1.0 pip 25.0.1 platformdirs 4.3.6 plotly 6.0.0 plyfile 1.1 polyscope 2.2.1 prometheus_client 0.21.1 prompt_toolkit 3.0.50 protobuf 3.20.3 psutil 6.1.1 ptyprocess 0.7.0 pure_eval 0.2.3 pycocotools 2.0.8 pycollada 0.8 pycparser 2.22 pydantic 2.10.6 pydantic_core 2.27.2 pyequilib 0.5.8 Pygments 2.19.1 pymeshlab 2023.12.post2 pyngrok 7.2.3 pyparsing 3.2.1 pyquaternion 0.9.9 pyransac3d 0.6.0 PySocks 1.7.1 python-dateutil 2.9.0.post0 python-engineio 4.11.2 python-json-logger 3.2.1 python-socketio 5.12.1 pytz 2025.1 PyYAML 6.0.2 pyzmq 26.2.1 rawpy 0.24.0 referencing 0.36.2 requests 2.32.3 retrying 1.3.4 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rich 13.9.4 robust-laplacian 0.2.7 rpds-py 0.22.3 Rtree 1.3.0 safetensors 0.5.2 scikit-image 0.25.1 scikit-learn 1.6.1 scipy 1.15.1 segment_anything 1.0 /mnt/TempData/brl/people/wyn/code/FruitNeRF/segmentation/grounded_sam/segment_anything Send2Trash 1.8.3 sentry-sdk 2.20.0 setproctitle 1.3.4 setuptools 75.8.0 shapely 2.0.7 shtab 1.7.1 simple-websocket 1.1.0 six 1.17.0 smmap 5.0.2 sniffio 1.3.1 soupsieve 2.6 stack-data 0.6.3 supervision 0.18.0 svg.path 6.3 sympy 1.13.1 tensorboard 2.19.0 tensorboard-data-server 0.7.2 termcolor 2.5.0 terminado 0.18.1 threadpoolctl 3.5.0 tifffile 2025.1.10 timm 0.9.2 tinycss2 1.4.0 tomli 2.2.1 torch 2.6.0 torch-fidelity 0.3.0 torchmetrics 1.6.1 torchvision 0.21.0 tornado 6.4.2 tqdm 4.67.1 traitlets 5.14.3 trimesh 4.6.1 triton 3.2.0 typeguard 4.4.1 types-python-dateutil 2.9.0.20241206 typing_extensions 4.12.2 tyro 0.9.14 tzdata 2025.1 uri-template 1.3.0 urllib3 2.3.0 vhacdx 0.0.8.post1 viser 0.2.23 wadler_lindig 0.1.3 wandb 0.19.6 wcwidth 0.2.13 webcolors 24.11.1 webencodings 0.5.1 websocket-client 1.8.0 websockets 14.2 Werkzeug 3.0.6 wheel 0.45.1 widgetsnbextension 4.0.13 wsproto 1.2.0 xatlas 0.0.9 xxhash 3.5.0 yourdfpy 0.0.56 zipp 3.21.0

00mmw avatar Feb 12 '25 12:02 00mmw