Skip to content

ImportError: cannot import name 'snapshot_download' #185

@markyoder

Description

@markyoder

I am trying to write a Spack package to install evo2. The idea is to bundle all the components -- Python, ipython, dependencies, etc. so that -- in my current use case, the whole enchilada is bundled together.

It mostly works. I can build (most of?) the dependencies and py-evo2. When I try to run it, however, import evo2 gives the following error:

ImportError: cannot import name 'snapshot_download' from 'huggingface_hub' (/home/groups/sh_support/share/spack_SRC/spack/opt/spack/linux-x86_64/py-huggingface-hub-0.26.2-qchl3gamy64jccpsdrdkq3e7wo2etcgp/lib/python3.12/site-packages/huggingface_hub/__init__.py)

I have found a few articles that support the fairly obvious interpretation, that this is an issue with the version of huggingface_hub -- that basically the syntax has changed. Can we expect updates in evo2 to fix this, or is there a recommended workaround?

See, for example:
huggingface/huggingface_hub#1199

Thanks, in advance, for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions