Unable to import Llama parse #344

Closed
opened 2026-02-16 00:17:34 -05:00 by yindo · 6 comments
Owner

Originally created by @AyushParikh on GitHub (Nov 20, 2024).

Describe the bug
Write a concise description of what the bug is.

When we try to import Llama parse we get this error. Looks like pydantic v2.10 got released today and is breaking llama parse

[ERROR] PydanticSchemaGenerationError: Unable to generate pydantic-core schema for typing.AsyncGenerator[str, NoneType]. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.

Files
If possible, please provide the PDF file causing the issue.

Job ID
If you have it, please provide the ID of the job you ran.
You can find it here: https://cloud.llamaindex.ai/parse in the "History" tab.

Client:
Please remove untested options:

  • Python Library
  • API
  • Frontend (cloud.llamaindex.ai)
  • Typescript Library
  • Notebook

Additional context
Add any additional context about the problem here.
What options did you use? Premium mode, multimodal, fast mode, parsing instructions, etc.
Screenshots, code snippets, etc.

Originally created by @AyushParikh on GitHub (Nov 20, 2024). **Describe the bug** Write a concise description of what the bug is. When we try to import Llama parse we get this error. Looks like pydantic v2.10 got released today and is breaking llama parse ``` [ERROR] PydanticSchemaGenerationError: Unable to generate pydantic-core schema for typing.AsyncGenerator[str, NoneType]. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it. If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion. ``` **Files** If possible, please provide the PDF file causing the issue. **Job ID** If you have it, please provide the ID of the job you ran. You can find it here: https://cloud.llamaindex.ai/parse in the "History" tab. **Client:** Please remove untested options: - Python Library - API - Frontend (cloud.llamaindex.ai) - Typescript Library - Notebook **Additional context** Add any additional context about the problem here. What options did you use? Premium mode, multimodal, fast mode, parsing instructions, etc. Screenshots, code snippets, etc.
yindo added the bug label 2026-02-16 00:17:34 -05:00
yindo closed this issue 2026-02-16 00:17:34 -05:00
Author
Owner

@Disiok commented on GitHub (Nov 20, 2024):

hey @AyushParikh ,

This is coming from pydantic v2.10 breaking llama-index-core.
We've updated to pin to an older version of pydantic.
Can you try updating llama-index-core to the latest, and see if the issue persists?

@Disiok commented on GitHub (Nov 20, 2024): hey @AyushParikh , This is coming from pydantic v2.10 breaking `llama-index-core`. We've updated to pin to an older version of pydantic. Can you try updating `llama-index-core` to the latest, and see if the issue persists?
Author
Owner

@AyushParikh commented on GitHub (Nov 20, 2024):

pip freeze

llama-index-core==0.12.1
llama-parse==0.5.14

are these up to date?

@AyushParikh commented on GitHub (Nov 20, 2024): pip freeze ``` llama-index-core==0.12.1 llama-parse==0.5.14 ``` are these up to date?
Author
Owner

@AyushParikh commented on GitHub (Nov 20, 2024):

im still getting the issue.

@AyushParikh commented on GitHub (Nov 20, 2024): im still getting the issue.
Author
Owner

@AyushParikh commented on GitHub (Nov 20, 2024):

@Disiok

@AyushParikh commented on GitHub (Nov 20, 2024): @Disiok
Author
Owner

@AyushParikh commented on GitHub (Nov 20, 2024):

ok works now.

@AyushParikh commented on GitHub (Nov 20, 2024): ok works now.
Author
Owner

@logan-markewich commented on GitHub (Nov 20, 2024):

Yea, you'll need to ensure your installed version of pydantic is 2.9 or less -- sounds good!

@logan-markewich commented on GitHub (Nov 20, 2024): Yea, you'll need to ensure your installed version of pydantic is 2.9 or less -- sounds good!
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#344