Closed albertgilopez closed 2 months ago
Hi, code is tested on macOS platform and all works fine with currently listed versions. You are trying to run it through API, try to run directly through CLI and check if same issues appears.
I have this same problem, I was able to hack around it by commenting out the PandasExeclReader references in llama_index/core/readers/file/base.py. Evidently there is an upstream issue in llama_index causing this https://github.com/run-llama/llama_index/discussions/11604 .
I'm encountering an error when trying to use the
SimpleDirectoryReader
from LlamaIndex in my project. The error message states that thellama-index-readers-file
package is not found, even though it's installed.Environment
Project Structure
sparrow-ml/ ├── llm/ │ ├── rag/ │ │ └── agents/ │ │ └── llamaindex/ │ │ ├── llamaindex.py │ │ ├── vllamaindex.py │ │ └── vprocessor.py │ ├── api.py │ ├── ingest.py │ └── requirements_llamaindex.txt
Steps to Reproduce
Create .env_llamaindex environment
Install LlamaIndex and its dependencies:
Run the FastAPI application:
Attempt to perform document ingestion through the API endpoint.
Error Message
unning ingest with llamaindex ⠋ Connecting to Weaviate... [Weaviate connection logs omitted for brevity] ⠼ Connecting to Weaviate... ⠋ Loading documents... ERROR:root:Unexpected error occurred: llama-index-readers-file package not found ERROR:api:ValueError in ingest: Unexpected error: llama-index-readers-file package not found INFO: 127.0.0.1:51045 - "POST /api/v1/sparrow-llm/ingest HTTP/1.1" 400 Bad Request
Additional Context
ingest.py
file.llama-index-readers-file
is installed usingpip list
.Questions
llama-index-readers-file
in version 0.10.23?SimpleDirectoryReader
in this version, especially considering our project structure?ingest.py
file?llamaindex.py
orvllamaindex.py
files to accommodate the new structure in LlamaIndex v0.10?Any assistance or guidance on resolving this issue would be greatly appreciated. Thank you for your time and support.