I have gone through previous posts and tried updating langchain and pydantic to respective different compatible versions, however I keep getting the same error message when I do an import :
from langchain.text_splitter import RecursiveCharacterTextSplitter
Error message:
update_field_forward_refs(f, globalns=globalns, localns=localns)
File “C:UsersRGupta2AppDataLocalProgramsPythonPython312Libsite-packagespydanticv1typing.py”, line 520, in update_field_forward_refs
field.type_ = evaluate_forwardref(field.type_, globalns, localns or None)File “C:UsersRGupta2AppDataLocalProgramsPythonPython312Libsite-packagespydanticv1typing.py”, line 66, in evaluate_forwardref
return cast(Any, type_)._evaluate(globalns, localns, set())TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: ‘recursive_guard’
Get an error with recursive guard here. Please advise on what I can do to change this. I have been stuck on it for a long time.
I tried updating the different versions, I tried changing the compatibility to version 1.0 for pydantic as mentioned, I tried updating langchain to latest version, it all fails.
2