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

Error import fairseq #4

Open
YECHENGFANG opened this issue May 13, 2023 · 0 comments
Open

Error import fairseq #4

YECHENGFANG opened this issue May 13, 2023 · 0 comments

Comments

@YECHENGFANG
Copy link

Hi there

I’m trying to run the codes from this repository on COLAB but I get an error when importing fairseq in the first cells.


ImportError Traceback (most recent call last)
in <cell line: 6>()
4 get_ipython().system('pip install --editable ./')
5
----> 6 import fairseq

6 frames
/content/fairseq/fairseq/optim/lr_scheduler/inverse_square_root_schedule.py in
4 # LICENSE file in the root directory of this source tree.
5
----> 6 from collections import Collection
7 from dataclasses import dataclass, field
8 from typing import List

ImportError: cannot import name 'Collection' from 'collections' (/usr/lib/python3.10/collections/init.py)
ERROR IMPORT

Thanks in advance

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