Find answers from the community

Updated 10 months ago

https://discord.com/channels/

https://discord.com/channels/1059199217496772688/1073670729054294197/1207845501660168232
Created a new conda env, still cannot import any thing from core.
Plain Text
conda create -n llamaindex python=3.12
conda activate llamaindex
pip install llama-index

from llama_index.core import SimpleDirectoryReader

Python 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from llama_index.core import SimpleDirectoryReader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamain
from llama_index.core.ingestion.data_sources import (
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/llama_index/core/ingestion/data_sources.py", line 340, in <module>
ConfigurableDataSources = build_conifurable_data_source_enum()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/llama_index/core/ingestion/data_sources.py", line 117, in build_conifurable_data_source_enum
DataSource(
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/pydantic/v1/main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for DataSource
component_type
subclass of BaseComponent expected (type=type_error.subclass; expected_class=BaseComponent)
>>>
L
l
7 comments
Thats a pretty weird error, thats something else
Try pip install --upgrade llama-index-readers-elasticsearch
It seems to be an error related to an older install of that package?
Another try,it worked, create new env python=3.10, pip install llama-index-core llama-index
ok nice. Sorry for the trouble πŸ˜…
thx! Maybe there's something wrong with my mac machine
Add a reply
Sign up and join the conversation on Discord