-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Failed to build groundingdino pycocotools #205
Comments
Maybe you can try to install pycocotools independently from GroundingDINO~ Sry for not testing the Windows env |
I have the exact same problem, when I try to install pycocotools independently here is the error log, I installed pyproject-toml 0.0.10 but the error persist. I'm not sure I install it correctly, I run cmd from
|
Try using pycocotools-window instead of pycocotools. refer to cocodataset/cocoapi#415 |
error log :
Command: "D:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\python.exe" -m pip install git+https://github.com/IDEA-Research/GroundingDINO --prefer-binary --index-url https://mirrors.bfsu.edu.cn/pypi/web/simple
Error code: 1
stdout: Active code page: 65001
Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting git+https://github.com/IDEA-Research/GroundingDINO
Cloning https://github.com/IDEA-Research/GroundingDINO to c:\users\wyfx1\appdata\local\temp\pip-req-build-jlv0bljx
Resolved https://github.com/IDEA-Research/GroundingDINO to commit da9f1c0751935e9284890572069f4b2fef4cbfdc
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: torch in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.0.0+cu118)
Requirement already satisfied: torchvision in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.15.1+cu118)
Requirement already satisfied: transformers in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.25.1)
Requirement already satisfied: addict in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.4.0)
Requirement already satisfied: yapf in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.32.0)
Requirement already satisfied: timm in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.6.7)
Requirement already satisfied: numpy in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (1.23.3)
Requirement already satisfied: opencv-python in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.7.0.72)
Collecting supervision==0.6.0
Using cached https://pypi.doubanio.com/packages/42/7a/4fe657cae29eedeca34756a80a053ac3b1b3c80462cdb6768f428625f9ca/supervision-0.6.0-py3-none-any.whl (31 kB)
Collecting pycocotools
Using cached https://pypi.doubanio.com/packages/ef/c6/90220be3b39fbc4cbd203775ca47dd8dc97fae06fbd2b500637395621b7c/pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: matplotlib in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.1)
Requirement already satisfied: filelock in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.12.0)
Requirement already satisfied: jinja2 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1.2)
Requirement already satisfied: sympy in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (1.11.1)
Requirement already satisfied: networkx in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1)
Requirement already satisfied: typing-extensions in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (4.5.0)
Requirement already satisfied: requests in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (2.25.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (9.4.0)
Requirement already satisfied: pyyaml>=5.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (6.0)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.3)
Requirement already satisfied: tqdm>=4.27 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (4.65.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.4)
Requirement already satisfied: packaging>=20.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (23.1)
Requirement already satisfied: regex!=2019.12.17 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (2023.3.23)
Requirement already satisfied: fonttools>=4.22.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.39.3)
Requirement already satisfied: python-dateutil>=2.7 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.0.9)
Requirement already satisfied: contourpy>=1.0.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.0.7)
Requirement already satisfied: cycler>=0.10 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.11.0)
Requirement already satisfied: colorama in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from tqdm>=4.27->transformers->groundingdino==0.1.0) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (1.26.15)
Requirement already satisfied: idna<3,>=2.5 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2022.12.7)
Requirement already satisfied: mpmath>=0.19 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from sympy->torch->groundingdino==0.1.0) (1.3.0)
Requirement already satisfied: six>=1.5 in d:\wyfx\stablediffusionservice\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.16.0)
Building wheels for collected packages: groundingdino, pycocotools
Building wheel for groundingdino (setup.py): started
Building wheel for groundingdino (setup.py): finished with status 'error'
Running setup.py clean for groundingdino
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools (pyproject.toml): finished with status 'error'
Failed to build groundingdino pycocotools
stderr: Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO 'C:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
None
cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\torch\csrc\api\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\TH -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\include -ID:\wyfx\StableDiffusionService\sd-webui-aki-v4\py310\Include /EHsc /TpC:\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.cpp /Fobuild\temp.win-amd64-cpython-310\Release\Users\wyfx1\AppData\Local\Temp\pip-req-build-jlv0bljx\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
GroundingDINO install failed. Please submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for groundingdino
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
creating build\lib.win-amd64-cpython-310
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: