ImportError: `llama-index-readers-file` package not found

Dears,
I am trying to run finetune_embedding.ipynb
(Google Colab)
from llama and when I execute this below cells
train_nodes = load_corpus(TRAIN_FILES, verbose=True)
val_nodes = load_corpus(VAL_FILES, verbose=True)

I got this error…I did not change any thing from the original ipynb file…
any help please…I am stock with this error

Loading files [‘./data/10k/lyft_2021.pdf’]

ModuleNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/llama_index/core/readers/file/base.py in _try_loading_included_file_formats()
24 try:
—> 25 from llama_index.readers.file import (
26 DocxReader,

ModuleNotFoundError: No module named ‘llama_index.readers’

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)
4 frames
/usr/local/lib/python3.10/dist-packages/llama_index/core/readers/file/base.py in _try_loading_included_file_formats()
37 ) # pants: no-infer-dep
38 except ImportError:
—> 39 raise ImportError(“llama-index-readers-file package not found”)
40
41 default_file_reader_cls: Dict[str, Type[BaseReader]] = {

ImportError: llama-index-readers-file package not found


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
“Open Examples” button below.

1 Like

I’ll suggest heading over to the huggingface community and asking them. :hugs:

This is the OpenAI developer community forum, it’s not the correct place to seek help on problems related to llama-index.

3 Likes