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

import issue with metrics! #414

Open
Moeinh77 opened this issue Aug 28, 2023 · 1 comment
Open

import issue with metrics! #414

Moeinh77 opened this issue Aug 28, 2023 · 1 comment

Comments

@Moeinh77
Copy link

I found an issue when trying to run your code, when certain file like "fairseq/fairseq/tasks/fairseq_task.py" import "metrics" they import it from "fairseq" but the metrics are in fact under "fairseq.fairseq.logging" so the correct imports would be "from fairseq.logging import metrics" in the "fairseq/fairseq/tasks/fairseq_task.py" file.

@Moeinh77 Moeinh77 changed the title import issue with metrics import issue with metrics! Aug 28, 2023
@logicwong
Copy link
Member

@Moeinh77 It seems that you didn't install the fairseq provided by this repo. Please uninstall the existing fairseq and install the fairseq provided by this repo.

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