run-llama / llama_parse

Parse files for optimal RAG
https://www.llamaindex.ai
MIT License
3.11k stars 301 forks source link

Error with import LlamaParse #362

Open urbanxinyuf opened 2 months ago

urbanxinyuf commented 2 months ago

from llama_parse import LlamaParse


ImportError Traceback (most recent call last) Cell In[11], line 1 ----> 1 from llama_parse import LlamaParse

File C:\ProgramData\anaconda3\Lib\site-packages\llama_parse__init__.py:1 ----> 1 from llama_parse.base import LlamaParse, ResultType 3 all = ["LlamaParse", "ResultType"]

File C:\ProgramData\anaconda3\Lib\site-packages\llama_parse\base.py:11 8 from io import BufferedIOBase 10 from llama_index.core.async_utils import run_jobs ---> 11 from llama_index.core.bridge.pydantic import Field, validator 12 from llama_index.core.constants import DEFAULT_BASE_URL 13 from llama_index.core.readers.base import BasePydanticReader

ImportError: cannot import name 'validator' from 'llama_index.core.bridge.pydantic' (C:\ProgramData\anaconda3\Lib\site-packages\llama_index\core\bridge\pydantic.py)

logan-markewich commented 2 months ago

Just fixed this

pip install -U llama-parse

urbanxinyuf commented 2 months ago

Thanks! It is working now.

On Fri, Aug 23, 2024 at 2:49 PM Logan @.***> wrote:

Just fixed this

pip install -U llama-parse

— Reply to this email directly, view it on GitHub https://github.com/run-llama/llama_parse/issues/362#issuecomment-2306084499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7Z2566RHSQRTUULDXYKP3ZS2PM7AVCNFSM6AAAAABM7ISWEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWGA4DINBZHE . You are receiving this because you authored the thread.Message ID: @.***>