Getting import error for OpenAIWhisperParser

Running 01_document_loading.ipynb from local machine.

ImportError: cannot import name ‘OpenAIWhisperParser’ from ‘langchain.document_loaders.parsers’ (C:\Users\sanjo\anaconda3\envs\openai\Lib\site-packages\langchain\document_loaders\parsers_init_.py)

from cell

from langchain.document_loaders.generic import GenericLoader
from langchain.document_loaders.parsers import OpenAIWhisperParser
from langchain.document_loaders.blob_loaders.youtube_audio import YoutubeAudioLoader

GenericLoader has run. It is getting stuck at OpenAIWhisperParser

Please help.

1 Like

I needed to to upgrade langchain.

pip install --upgrade langchain.

Now everything is fine.