Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llama Parse import Issue #451

Open
JoseGHdz opened this issue Oct 18, 2024 · 2 comments
Open

Llama Parse import Issue #451

JoseGHdz opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JoseGHdz
Copy link

Note: we're aware of some missing content in the output and layout issues on tables. Please refrain from opening new issues on this topic unless if you think it's different from what has already been reported.

Describe the bug
I installed Llama Parse in my environment and when I call 'from llama_parse import LlamaParse' I get an error saying:

File /opt/homebrew/lib/python3.11/site-packages/llama_parse/init.py:1
----> 1 from llama_parse.base import LlamaParse, ResultType
3 all = ["LlamaParse", "ResultType"]

File /opt/homebrew/lib/python3.11/site-packages/llama_parse/base.py:16
14 from fsspec.spec import AbstractBufferedFile
15 from llama_index.core.async_utils import run_jobs
---> 16 from llama_index.core.bridge.pydantic import Field, field_validator
17 from llama_index.core.constants import DEFAULT_BASE_URL
18 from llama_index.core.readers.base import BasePydanticReader

ImportError: cannot import name 'field_validator' from 'llama_index.core.bridge.pydantic' (/opt/homebrew/lib/python3.11/site-packages/llama_index/core/bridge/pydantic.py)

Files
None

Job ID
None

Screenshots
Feel free to also provide screenshots if relevant.
image

Options
I just followed the instructions from here:
https://github.com/run-llama/llama_parse

Additional context
These are my package versions:
llama-cloud 0.1.4
llama-index 0.11.18
llama-index-agent-openai 0.3.4
llama-index-cli 0.3.1
llama-index-core 0.11.18
llama-index-embeddings-adapter 0.1.0
llama-index-embeddings-openai 0.2.5
llama-index-finetuning 0.1.0
llama-index-indices-managed-llama-cloud 0.4.0
llama-index-legacy 0.9.48
llama-index-llms-gradient 0.1.0
llama-index-llms-openai 0.2.15
llama-index-multi-modal-llms-openai 0.2.2
llama-index-postprocessor-cohere-rerank 0.1.0
llama-index-program-openai 0.2.0
llama-index-question-gen-openai 0.2.0
llama-index-readers-file 0.2.2
llama-index-readers-llama-parse 0.3.0
llama-index-vector-stores-chroma 0.1.10
llama-parse 0.5.10
llamaindex-py-client 0.1.19

@JoseGHdz JoseGHdz added the bug Something isn't working label Oct 18, 2024
@logan-markewich
Copy link
Contributor

@logan-markewich
Copy link
Contributor

If you are in a notebook, maybe try restarting it? Or if not, maybe try from a fresh venv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants