-
Notifications
You must be signed in to change notification settings - Fork 247
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
Fairseq Import Error #217
Comments
I met this once, and it attributes to my installation. Maybe you should be make sure the old one is totally uninstalled before you install our version of Fairseq. |
Thanks for the reply! I tried to uninstall everything and reinstall them, but the same error still emerged. However, when I tried to install a non-editable version of the repo-embedded fairseq, it worked error-free. Will stick to this solution atm, probably get back to this when necessary (e.g. want to make further modifications to the fairseq scripts) |
TL;DR: Changing the pip version to 21.2.4 might help. I was having the same issue. I was especially confused, because I had been running OFA scripts within a conda env I created a month or so ago, and everything was working fine. Yet I recently created a new conda env, followed the OFA installation instructions again, and ran into the same error that JefferyO described. After lots of uninstalling & reinstalling with various settings, I think the issue for me was the version of pip - at the moment, the latest pip version is Specifically, here are the steps I ran, within the
And my current git clone status:
Hope this helps! |
Hey @spetryk , thanks so much for the suggestions! I think I was in the same condition as my pip version was also |
Hi,
Thanks for your great work! I followed the README to run
run_scripts/caption/evaluate_caption.sh
and encountered the following error:The Fairseq is installed with the one provided in your repo as required, however, when I changed to the official release (e.g. 0.12.2, which I understand is not appropriate as you have modified fairseq for OFA specifically, just for testing), the error disappeared.
So I'm wondering have you ever encountered any similar issue or if I stupidly missed anything when setting things up?
FYI, my git clone status:
git show HEAD commit c8313b9e8e4cf4f4df693e96848d337ed74ab68d (HEAD -> main, origin/main, origin/HEAD)
Your answer will be very appreciated!
The text was updated successfully, but these errors were encountered: