I am trying to load pdf tables , and am using PDFTableReader() according to llama-hub. But am getting this error , Should I replace PDFTableReader with PyPDF? Will it read the tables properly?
1973 def __init__(self, *args: Any, **kwargs: Any) -> None:
-> 1974 deprecation_with_replacement("PdfFileReader", "PdfReader", "3.0.0")
1975 if "strict" not in kwargs and len(args) < 2:
1976 kwargs["strict"] = True # maintain the default
File ~/anaconda3/lib/python3.10/site-packages/PyPDF2/_utils.py:369, in deprecation_with_replacement(old_name, new_name, removed_in)
363 def deprecation_with_replacement(
364 old_name: str, new_name: str, removed_in: str = "3.0.0"
365 ) -> None:
366 """
367 Raise an exception that a feature was already removed, but has a replacement.
368 """
--> 369 deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name))
File ~/anaconda3/lib/python3.10/site-packages/PyPDF2/_utils.py:351, in deprecation(msg)
350 def deprecation(msg: str) -> None:
--> 351 raise DeprecationError(msg)
DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.