Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

【ERROR when insatall】need help!

Open WjzZwd opened this issue 1 year ago • 4 comments

when i Install Grounding DINO termminal will report this error:

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/disk1/zwd/anaconda3/envs/mymmdet2/bin/python -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/disk1/zwd/G-SAM/Grounded-Segment-Anything-main/GroundingDINO/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /home/disk1/zwd/G-SAM/Grounded-Segment-Anything-main/GroundingDINO/

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output.

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

WjzZwd avatar Apr 15 '23 10:04 WjzZwd

resloved! it's about CUDA_HOME you should modify your /.bashrc and add : export CUDA_HOME = your cuda path if anyone face the same problem contact me and help you

WjzZwd avatar Apr 15 '23 13:04 WjzZwd

when i Install Grounding DINO termminal will report this error:

PS D:\kitch-python\Grounded-Segment-Anything-main> python -m pip install -e GroundingDINO Obtaining file:///D:/kitch-python/Grounded-Segment-Anything-main/GroundingDINO Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... error error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [24 lines of output] Traceback (most recent call last): File "C:\Users\KitchXia\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\KitchXia\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\KitchXia\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 132, in get_requires_for_build_editable return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\KitchXia\AppData\Local\Temp\pip-build-env-lr8tlhtk\overlay\Lib\site-packages\setuptools\build_meta.py", line 447, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\KitchXia\AppData\Local\Temp\pip-build-env-lr8tlhtk\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\KitchXia\AppData\Local\Temp\pip-build-env-lr8tlhtk\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires self.run_setup() File "C:\Users\KitchXia\AppData\Local\Temp\pip-build-env-lr8tlhtk\overlay\Lib\site-packages\setuptools\build_meta.py", line 485, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\KitchXia\AppData\Local\Temp\pip-build-env-lr8tlhtk\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup exec(code, locals()) File "", line 27, in ModuleNotFoundError: No module named 'torch' [end of output]

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

× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.

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

kitchxia avatar Apr 17 '23 13:04 kitchxia

I'm having the same problem, could you help me?

pedrozamboni avatar Apr 18 '23 01:04 pedrozamboni

I modified my /.bashrc, but still get this error

Shelton0215 avatar Apr 19 '23 09:04 Shelton0215