ImportError: cannot import name 'AsyncLlamaCloud' from 'llama_cloud' #1

Closed
opened 2026-02-16 04:15:38 -05:00 by yindo · 4 comments
Owner

Originally created by @dtphan on GitHub (Feb 12, 2026).

Tried this example https://github.com/run-llama/llama-cloud-py/blob/main/examples/parse/parse_end_to_end.py
Got error

    from llama_cloud import AsyncLlamaCloud
ImportError: cannot import name 'AsyncLlamaCloud' from 'llama_cloud'

Tried fixing by changing the import to from llama_cloud.client import AsyncLlamaCloud
Got another error

TypeError: AsyncLlamaCloud.__init__() got an unexpected keyword argument 'api_key'

Tried fixing by changing api_key to token
Got another error

AttributeError: 'AsyncFilesClient' object has no attribute 'create'

How do I run this example?

Originally created by @dtphan on GitHub (Feb 12, 2026). Tried this example https://github.com/run-llama/llama-cloud-py/blob/main/examples/parse/parse_end_to_end.py Got error ```shell from llama_cloud import AsyncLlamaCloud ImportError: cannot import name 'AsyncLlamaCloud' from 'llama_cloud' ``` Tried fixing by changing the import to `from llama_cloud.client import AsyncLlamaCloud` Got another error ```shell TypeError: AsyncLlamaCloud.__init__() got an unexpected keyword argument 'api_key' ``` Tried fixing by changing api_key to token Got another error ```shell AttributeError: 'AsyncFilesClient' object has no attribute 'create' ``` How do I run this example?
yindo closed this issue 2026-02-16 04:15:38 -05:00
Author
Owner

@logan-markewich commented on GitHub (Feb 12, 2026):

@dtphan sounds like you have the wrong version of llama-cloud installed? pip show llama-cloud should report something greater than 1.0

@logan-markewich commented on GitHub (Feb 12, 2026): @dtphan sounds like you have the wrong version of llama-cloud installed? `pip show llama-cloud` should report something greater than 1.0
Author
Owner

@logan-markewich commented on GitHub (Feb 12, 2026):

For example: https://colab.research.google.com/drive/1MAPwXzfpIs9XZ4zYpAOgjyL_1o7qClRP?usp=sharing

@logan-markewich commented on GitHub (Feb 12, 2026): For example: https://colab.research.google.com/drive/1MAPwXzfpIs9XZ4zYpAOgjyL_1o7qClRP?usp=sharing
Author
Owner

@dtphan commented on GitHub (Feb 12, 2026):

Looks like I'm stuck on version 0.1.45. Thanks for pointing this out.

>pip install llama-cloud>=1.0

>pip show llama-cloud
Name: llama-cloud
Version: 0.1.45
Summary:
Home-page:
Author: Logan Markewich
Author-email: logan@runllama.ai
License: MIT
Location: \venv\Lib\site-packages
Requires: certifi, httpx, pydantic
Required-by: llama-cloud-services
@dtphan commented on GitHub (Feb 12, 2026): Looks like I'm stuck on version 0.1.45. Thanks for pointing this out. ```shell >pip install llama-cloud>=1.0 >pip show llama-cloud Name: llama-cloud Version: 0.1.45 Summary: Home-page: Author: Logan Markewich Author-email: logan@runllama.ai License: MIT Location: \venv\Lib\site-packages Requires: certifi, httpx, pydantic Required-by: llama-cloud-services ```
Author
Owner

@dtphan commented on GitHub (Feb 12, 2026):

Thanks @logan-markewich! It works after removing llama-cloud-services + llama-cloud 0.1.45 and install llama-cloud>=1.0

@dtphan commented on GitHub (Feb 12, 2026): Thanks @logan-markewich! It works after removing llama-cloud-services + llama-cloud 0.1.45 and install llama-cloud>=1.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama-cloud-py#1