Find answers from the community

Updated 3 months ago

Pypdf

Bug? I realized the pdf file no longer working after the llama index changed from pypdf2 to pypdf, https://github.com/jerryjliu/llama_index/blob/main/llama_index/readers/file/docs_reader.py?#L21 It throws error 'pkg pypdf not found', i have tried both poetry add and upgrade for pypdf. It still cannot be imported. Is this a bug? Why change from pypdf2 to pypdf?
L
j
14 comments
Pypdf2 was merged into pypdf no?

Does pip install pypdf not work?
i did use poetry add pypdf, and use pip install pypdf says 'pip install pypdf
Requirement already satisfied: pypdf in /Users/jma/miniconda3/envs/rfp-annotation/lib/python3.10/site-packages (3.14.0)'
however, if i try 'import pypdf', vscode pylance would tell it's not resolved
Oh screw Pylance haha
Always hard to configure
same errror when run local fasapi and cloud env fastapi
at run time, llama index throwed not found error, even the package is in requriements.txt
pypdf2==3.0.1 ; python_version >= "3.10" and python_version < "4.0" pypdf==3.14.0 ; python_version >= "3.10" and python_version < "4.0"
do i need to remove pypdf2 ?
I just tried in a fresh env and it worked fine for me πŸ€”
maybe my env issue, thanks for the info, will check more on my side.
It was my poetry env issue, resolved now. Thanks for helping!πŸ™‡β€β™‚οΈ
Nice! πŸ’ͺglad you fixed it
Add a reply
Sign up and join the conversation on Discord