Find answers from the community

Updated last year

I am not able to to do this basic piece

I am not able to to do this basic piece of code in my jupyter notebook: from llama_index import VectorStoreIndex, SimpleDirectoryReader

I get errors as :
(...)
23
24 """
26 name = "edenai_text_to_speech"

File C:\ProgramData\Anaconda3\lib\typing.py:852, in _SpecialGenericAlias.subclasscheck(self, cls)
850 return issubclass(cls.origin, self.origin)
851 if not isinstance(cls, _GenericAlias):
--> 852 return issubclass(cls, self.origin)
853 return super().subclasscheck(cls)

TypeError: issubclass() arg 1 must be a class
W
L
y
5 comments
Latest version of llamaindex?
Tried at my end, worked for me on colab
Try with starting a new session on colab and fresh installation of llamaindex
also try pip install pydantic==1.10.12

Langchain has been having issues with newer pydantic versions
Thanks guys, a github issue was raised and it helped me to fix it.
Add a reply
Sign up and join the conversation on Discord