bertalign icon indicating copy to clipboard operation
bertalign copied to clipboard

cached_download deprecated

Open rahonalab opened this issue 1 year ago • 4 comments

Hello, thanks for your awesome aligner! Unfortunately, a recent change in the huggingface_hub has broken your code: https://github.com/huggingface/huggingface_hub/releases/tag/v0.26.0

The cached_download() method was completely removed and bertalign complains that

ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/opt/conda/lib/python3.10/site-packages/huggingface_hub/__init__.py)

How can we fix the issue?

rahonalab avatar Oct 25 '24 12:10 rahonalab

I have used this recently but I do not seem to run with any error running it on collab. If you need I can share the piece of code with which I got it running on collab.

Von41 avatar Oct 25 '24 20:10 Von41

many thanks for the reply. the error triggers when I try to import Bertalign, but it'd be useful to see your code. I have tried both with Python 3.10.13 and 3.10.14. Bertalign does not compile with Python > 3.10

rahonalab avatar Oct 26 '24 09:10 rahonalab

any update on this? the library is currently broken

rahonalab avatar Nov 04 '24 09:11 rahonalab

I updated requirements.txt to use the latest version of sentence-transformers. That seems to be working on Colab.

bfsujason avatar Nov 04 '24 11:11 bfsujason