Find answers from the community

Updated 8 months ago

llama-index-readers-smart-pdf-loader

Hey everyone,
I'm running this tutorial:
https://pypi.org/project/llama-index-readers-smart-pdf-loader/
However, I'm getting this error:
from llama_index.readers.base import BaseReader ModuleNotFoundError: No module named 'llama_index.readers.base'

Is that a bug in the packages? I would assume that
pip install llama-index-readers-smart-pdf-loader
will also install the base packages.
W
y
16 comments
Have you installed llama-index or llama-index-core?
I can see Basereader in here: from llama_index.core.readers.base import BaseReader
@WhiteFang_Jr I installed llama-index
It should not cause you any problem then
@WhiteFang_Jr you could start with a fresh python virtual environment.
After installing
llama-index, llama_hub and the smart pdf loader, you'll get this error
So should I install llama-index-core as well?
no installing llama-index should be sufficient
let me try on colab
This line will fail:
from llama_hub.smart_pdf_loader import SmartPDFLoader
import it like this: from llama_index.readers.smart_pdf_loader import SmartPDFLoader
it's working!

llama-hub did not survived v0.10, it is going to get extinct just like dinasaurs πŸ˜†
Avoid using it!
Attachment
image.png
Great thanks!
I guess the code in this link should be updated
https://pypi.org/project/llama-index-readers-smart-pdf-loader/
Yes work is in the progress for the sameπŸ™
Thanks a lot for your help
Add a reply
Sign up and join the conversation on Discord