Skip to content
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

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

Open
UnfixedMold opened this issue May 30, 2024 · 0 comments
Open

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

UnfixedMold opened this issue May 30, 2024 · 0 comments

Comments

@UnfixedMold
Copy link

UnfixedMold commented May 30, 2024


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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant