Find answers from the community

s
F
Y
a
P
Updated last month

V0.10 issue with Simple DirectoryReader

V0.10 issue with Simple DirectoryReader
I am loading a text document using
documents = SimpleDirectoryReader("/Users/sina/Downloads/Uflo Platform/extract_pdf/transcript-merge/transcript.txt").load_data()
Imported using
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader

Getting the following error:
llama-index-readers-file package not found
ModuleNotFoundError: No module named 'llama_index.readers'
L
B
n
23 comments
Whats the issue?
ModuleNotFoundError: No module named 'llama_index.readers''
ImportError: llama-index-readers-file package not found
@BioHacker : just checking you installed the latest llama-index on a fresh virtualenv?
yes that is correct. I create a new conda environment
here is my code
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader

documents = SimpleDirectoryReader("/Users/sina/Downloads/Uflo Platform/extract_pdf/transcript-merge/transcript.txt").load_data()
index = VectorStoreIndex.from_documents(documents)
I'm following the starter tutorial
I would double check your env is correct. Checkout the colab link above

(also if you are loading a single file, best to do SimpleDirectoryReader(input_files=["/Users/sina/Downloads/Uflo Platform/extract_pdf/transcript-merge/transcript.txt"]).load_data()
(maybe use poetry or venv instead of conda)
are you sure its conda @Logan M
I am trying wit poetry and getting the same issue. So is my team members in their own computer
Do you mind sharing your pyproject.toml?
sure one second
ok i used venv instead poetry and it seems that the issue is no longer a problem. Thank you @nerdai @Logan M
awesome! (And sorry for the troubles πŸ˜… )
oh great! glad you got it figured out -- thanks for your patience!
no worries! Thank you for being patient with me. Now I need to try Weaviate haha lets hope things go well with that too
Add a reply
Sign up and join the conversation on Discord