https://discord.com/channels/1059199217496772688/1073670729054294197/1207845501660168232Created a new conda env, still cannot import any thing from core.
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)
>>>