gaomingqi / Track-Anything

Track-Anything is a flexible and interactive tool for video object tracking and segmentation, based on Segment Anything, XMem, and E2FGVI.
MIT License
6.52k stars 481 forks source link

cannot import name 'CommitOperationAdd' from 'huggingface_hub' #140

Open UnfixedMold opened 6 months ago

UnfixedMold commented 6 months ago

Installing on a fresh conda env

Platform: Win11 Python: 3.11.9 Cuda: 12.5 huggingface-hub: 0.23.2


Error appears after running python app.py --device cuda:0

Traceback (most recent call last): File "C:\Users\henri\src\Track-Anything\app.py", line 1, in import gradio as gr File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio__init.py", line 3, in import gradio._simple_templates File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio_simple_templates__init.py", line 1, in from .simpledropdown import SimpleDropdown File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 6, in from gradio.components.base import FormComponent File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio\components__init__.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio\components\annotated_image.py", line 7, in import gradio_client.utils as client_utils File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio_client\init__.py", line 1, in from gradio_client.client import Client File "C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\gradio_client\client.py", line 29, in from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' (C:\Users\henri\anaconda3\envs\track-anything\Lib\site-packages\huggingface_hub\init__.py)