llama_parse import error #41

Closed
opened 2026-02-16 00:16:42 -05:00 by yindo · 2 comments
Owner

Originally created by @mlkorra on GitHub (Mar 13, 2024).

Bug Description

Getting the error: TypeError: 'type' object is not subscriptable when just importing llamaparse

Version

Llama Index version : 0.10.19
Llamaparse version : 0.3.8

Steps to Reproduce

Just try to import llamaparse using from llama_parse import LlamaParse

Relevant Logs/Tracebacks

File "", line 1, in
File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/__init__.py", line 1, in
from llama_parse.base import LlamaParse, ResultType
File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/base.py", line 111, in
class LlamaParse(BasePydanticReader):
File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/base.py", line 321, in LlamaParse
def get_images(self, json_result: list[dict], download_path: str) -> List[dict]:
TypeError: 'type' object is not subscriptable

Originally created by @mlkorra on GitHub (Mar 13, 2024). ### Bug Description Getting the error: **TypeError: 'type' object is not subscriptable** when just importing llamaparse ### Version Llama Index version : 0.10.19 Llamaparse version : 0.3.8 ### Steps to Reproduce Just try to import llamaparse using `from llama_parse import LlamaParse` ### Relevant Logs/Tracebacks > File "<stdin>", line 1, in <module> > File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/__init__.py", line 1, in <module> > from llama_parse.base import LlamaParse, ResultType > File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/base.py", line 111, in <module> > class LlamaParse(BasePydanticReader): > File "/home/krd/.pyenv/versions/llm/lib/python3.8/site-packages/llama_parse/base.py", line 321, in LlamaParse > def get_images(self, json_result: list[dict], download_path: str) -> List[dict]: > TypeError: 'type' object is not subscriptable
yindo added the bug label 2026-02-16 00:16:42 -05:00
yindo closed this issue 2026-02-16 00:16:42 -05:00
Author
Owner

@mlkorra commented on GitHub (Mar 13, 2024):

@hexapode Just to bring it to your notice, I have tried the latest 0.3.9 version, but the issue still persists.

@mlkorra commented on GitHub (Mar 13, 2024): @hexapode Just to bring it to your notice, I have tried the latest 0.3.9 version, but the issue still persists.
Author
Owner

@mlkorra commented on GitHub (Mar 13, 2024):

Updated the python version from 3.8 to 3.9 , and it worked! Can you please update the README with min.python requirement. Closing the issue.

@mlkorra commented on GitHub (Mar 13, 2024): Updated the python version from 3.8 to 3.9 , and it worked! Can you please update the README with min.python requirement. Closing the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#41