-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ImportError: cannot import name 'pipeline' from 'transformers' #41
Comments
Hey @boralprophecy , I was not able to reproduce this. What version of Transformers do you have installed? It seems that it cannot import the pipeline object from there. Haystack is currently using Transformers v2.4.0 (2.5.1 should also work, but it is not fully tested yet). |
It was a version issue. During installation of FARM, transformers was in version 2.1.1 which was giving the error. Have upgraded to 2.5.1. Now it is working fine. Thanks. |
When trying to import TransformersReader, I am getting the following error
from haystack.reader.transformers import TransformersReader
Error :
Please note I am in the directory haystack-master. I am using windows 10.
Please help me in solving this.
The text was updated successfully, but these errors were encountered: