You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug with llama-parser == 0.6.0.
Current version is not compatible with latest version of llama-parser and when run pop this error:
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse/init.py", line 1, in
from .megaparse import MegaParse
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse/megaparse.py", line 7, in
from megaparse_sdk.schema.extensions import FileExtension
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/init.py", line 1, in
from .client import MegaParseClient
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/client.py", line 29, in
from megaparse_sdk.schema.mp_outputs import (
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/schema/mp_outputs.py", line 3, in
from llama_parse.base import Dict
ImportError: cannot import name 'Dict' from 'llama_parse.base' (/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/llama_parse/base.py)
python-BaseException
Fix:
pip install llama-parse=="0.5.20"
The text was updated successfully, but these errors were encountered:
Hello, @nekopep! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together!
The error you're encountering is due to the Dict import from llama_parse.base in the megaparse_sdk/schema/mp_outputs.py file. This import is used to define the type of the metadata field in the MPOutput class as a dictionary with string keys and values [1].
To resolve this issue, you can downgrade llama-parse to version 0.5.20, as suggested, by running:
pip install llama-parse=="0.5.20"
This will revert to a version where the Dict import is available. Alternatively, you might want to check if there are any updates or patches in the MegaParse repository that address compatibility with llama-parser version 0.6.0.
Bug with llama-parser == 0.6.0.
Current version is not compatible with latest version of llama-parser and when run pop this error:
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse/init.py", line 1, in
from .megaparse import MegaParse
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse/megaparse.py", line 7, in
from megaparse_sdk.schema.extensions import FileExtension
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/init.py", line 1, in
from .client import MegaParseClient
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/client.py", line 29, in
from megaparse_sdk.schema.mp_outputs import (
File "/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/megaparse_sdk/schema/mp_outputs.py", line 3, in
from llama_parse.base import Dict
ImportError: cannot import name 'Dict' from 'llama_parse.base' (/xxx/Documents/experiments/xxx/venv/lib/python3.11/site-packages/llama_parse/base.py)
python-BaseException
Fix:
pip install llama-parse=="0.5.20"
The text was updated successfully, but these errors were encountered: