Search code examples
pythonopenai-apilangchain

ImportError: cannot import name 'BaseOuputParser' from 'langchain.schema'


Hello i am trying to run this following code but i am getting an error;

from langchain.schema import BaseOuputParser

Error;

ImportError: cannot import name 'BaseOuputParser' from 'langchain.schema'

My langchain version is ; '0.1.7'


Solution

  • Quite simple, you have a typo. BaseOuputParser vs BaseOutputParser. Missing a t.

    Voted to close this question based on that due to that, but if fixing it does not solve the problem, then the issue is elsewhere.