Find answers from the community

Updated 5 months ago

Subclass

At a glance

The community member is using the llama_index library and is encountering an error related to the issubclass() function. The first comment suggests that the issue may be related to the typing-extensions Python package and that it may need to be downgraded. The second comment indicates that the issue was resolved by using typing-extensions==4.5.0. The third comment mentions that a pull request has been made to fix the issue, and it should be included in the next release of the library.

I am use llama_index. I keep getting the following error when i try to compile

issubclass() arg 1 must be a class

Can someone help me please?
Attachment
image.png
L
3 comments
I think this is an error with the typing-extensions python package. Still diagnosing the exact problem, but it probably needs to be downgraded?
Did you install llama index from source or from pip?

Figured it out, you'll need typing-extensions==4.5.0
Just pushed a pr to fix this, should be included in the next release πŸ‘Œ
Add a reply
Sign up and join the conversation on Discord