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

Enrichement app failure: cannot import name 'cached_download' from 'huggingface_hub' #920

Open
1 of 2 tasks
gintsk opened this issue Nov 27, 2024 · 0 comments
Open
1 of 2 tasks
Assignees

Comments

@gintsk
Copy link

gintsk commented Nov 27, 2024

Bug Details

enrichement app fails to start

With clean deployment enrichment app containers fails to start due huggingface_hub v0.26.0 breaking changes (huggingface_hub removed cached_download)

ImportError: cannot import name 'cached_download' from 'huggingface_hub'

Steps To Reproduce

  1. Deploy clean instance
  2. infoasst-enrichmentweb-xxxx is in degraded state due to start failure (ImportError: cannot import name 'cached_download' from 'huggingface_hub')

What is the expected behavior?
enrichmentweb should not fail

As temporary workaround you can just pin huggingface_hub to last working version 0.25.2 by adding

huggingface_hub==0.25.2

#### Any version change made here should also be made and tested for the webapp backend and function apps in /functions and /app/backend
--extra-index-url https://download.pytorch.org/whl/cpu
azure-core==1.31.0
azure-cosmos==4.7.0
azure-storage-blob==12.23.1
azure-storage-queue==12.12.0
azure-search-documents==11.5.1
azure-identity==1.18.0
fastapi==0.115.0
fastapi-utils==0.7.0
openai==1.50.2
sentence-transformers==3.1.1
tenacity==9.0.0
torch
torchvision
torchaudio
uvicorn==0.31.0

If the bug is confirmed, would you be willing to submit a PR?

  • Yes
  • No
@bjakems bjakems self-assigned this Dec 2, 2024
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

2 participants