The Notorious Typing-Extensions Error

Hi @UMARismyname, apologies for asking you directly. I’ve come across the typing-extensions error when attempting to use replit with langchain and SerpAPI. Bascially all my packages installed fine. But when trying to run my function, I get the typing-extensions here:

ImportError: cannot import name ‘NotRequired’ from ‘typing_extensions’ (/home/runner/SweetFreshBug/venv/lib/python3.10/site-packages/

I attempted to use your advice I came across via the shell command : “poetry add git+”

However, I get a CalledProcessError.

Here is my replit for reference:

Note I commented out the majority of my code so its clearly an import error.

Any help would be greatly appreciated! Thank you so much!

you don’t seem to be using the replit package, so you could do

poetry remove replit
pip install -U poetry

For typing_extensions to have the new types:

poetry update
1 Like