Skip to content

ImportError: cannot import name 'hf_bucket_url' from 'transformers.file_utils' #88

@angus-lherrou

Description

@angus-lherrou

On a fresh install of the package, cnlpt.train_system cannot be instantiated due to an error:

>>> import cnlpt.train_system
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/angus/miniconda3/envs/cnlpt-fresh-39/lib/python3.9/site-packages/cnlpt/train_system.py", line 47, in <module>
    from transformers.file_utils import hf_bucket_url, CONFIG_NAME
ImportError: cannot import name 'hf_bucket_url' from 'transformers.file_utils' (/home/angus/miniconda3/envs/cnlpt-fresh-39/lib/python3.9/site-packages/transformers/file_utils.py)

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