Closed arashaga closed 7 months ago
Hey @arashaga! 👋 I'm Dosu, a bot here to help you solve bugs, answer your questions, and guide you on becoming a contributor while you're waiting for a human maintainer. I'm diving into your issue and will get back to you with a full answer shortly. 🤖💡
@arashaga this to me tells me either you did not install the llama-index-readers-file
package (which is included in the llama-index
package by default), or you venv is corrupted
I would try a new venv
In a new terminal
pip uninstall llama-index # remove any global install
python -m venv venv
source venv/bin/activate
pip install llama-index
Thank you @logan-markewich that was the case. I installed a new env and it worked. Thank you.
Bug Description
When trying to load a PDF file using the SimpleDirectoryReader from the llama_index library, an ImportError is raised. The error message indicates that the 'DocxReader' cannot be imported from 'llama_index.readers.file'. I was just trying to read a PDF file. as part of the error below it says that package llama-index-reader-file package now found but my pip says it's already installed.
Version
1.10.19 and 0.10.23
Steps to Reproduce
1- Import SimpleDirectoryReader from llama_index.core. 2- Try to load a PDF file using SimpleDirectoryReader.
Relevant Logs/Tracbacks