GroundingDINO icon indicating copy to clipboard operation
GroundingDINO copied to clipboard

when i Install Grounding DINO termminal will report this error:

Open kitchxia opened this issue 2 years ago • 3 comments

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

plz check if the CUDA_HOME variable is set

SlongLiu avatar Apr 17 '23 15:04 SlongLiu

plz check if the CUDA_HOME variable is set

thanks for reply. i have set cuda like that :

screenshot-20230418-140158

but i still can not install GroundingDINO .Same error : 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-3j3hjwlj\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-3j3hjwlj\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-3j3hjwlj\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-3j3hjwlj\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-3j3hjwlj\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 18 '23 06:04 kitchxia

do i need to install anaconda and torch2.0.0 ?

kitchxia avatar Apr 18 '23 06:04 kitchxia

I got a same error,have you solved it yet?

guytakeiteasy avatar May 04 '23 02:05 guytakeiteasy

@kitchxia Try this easy and quick inference on Google Colab. GroundingDINO-Inference

HassanBinHaroon avatar May 04 '23 13:05 HassanBinHaroon

I got a same error,have you solved it yet?

scott-kenny avatar May 10 '23 04:05 scott-kenny

Probably yes, the issue appeared to me when I ran setup.py script.

The pytorch has to be installed before executing the command for setup.py

On Wed, 10 May 2023, 9:18 am scott-kenny, @.***> wrote:

I got a same error,have you solved it yet?

— Reply to this email directly, view it on GitHub https://github.com/IDEA-Research/GroundingDINO/issues/57#issuecomment-1541331290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY2GYVQR2QNHINDOMUFJVBDXFMJKNANCNFSM6AAAAAAXBGP6YE . You are receiving this because you commented.Message ID: @.***>

HassanBinHaroon avatar May 10 '23 06:05 HassanBinHaroon

encounter the same issue, how to solve, any suggestion?

ihorizons2022 avatar May 22 '23 13:05 ihorizons2022

Probably yes, the issue appeared to me when I ran setup.py script. The pytorch has to be installed before executing the command for setup.py On Wed, 10 May 2023, 9:18 am scott-kenny, @.> wrote: I got a same error,have you solved it yet? — Reply to this email directly, view it on GitHub <#57 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY2GYVQR2QNHINDOMUFJVBDXFMJKNANCNFSM6AAAAAAXBGP6YE . You are receiving this because you commented.Message ID: @.>

@ihorizons2022

HassanBinHaroon avatar May 22 '23 14:05 HassanBinHaroon

i install torch first, but still get the same error

ihorizons2022 avatar May 22 '23 14:05 ihorizons2022

How to solve this problem, I got the same error...

fat-921 avatar Jul 20 '23 08:07 fat-921

How to solve this problem, I got the same error...

Are you getting the error while executing the setup.py?

HassanBinHaroon avatar Jul 20 '23 09:07 HassanBinHaroon