why every time its giveing the error , why you are not checking the code and give the answers


DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.
Traceback:
File "C:\Users\ohari\Desktop\Lang\lang-env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "C:\Users\ohari\Desktop\Lang\langchain-pdf\google_qna.py", line 64, in <module>
    main()
File "C:\Users\ohari\Desktop\Lang\langchain-pdf\google_qna.py", line 49, in main
    text = read_pdf(uploaded_file)
File "C:\Users\ohari\Desktop\Lang\langchain-pdf\google_qna.py", line 13, in read_pdf
    pdf_reader = PyPDF2.PdfFileReader(file)
File "C:\Users\ohari\Desktop\Lang\lang-env\lib\site-packages\PyPDF2\_reader.py", line 1974, in __init__
    deprecation_with_replacement("PdfFileReader", "PdfReader", "3.0.0")
File "C:\Users\ohari\Desktop\Lang\lang-env\lib\site-packages\PyPDF2\_utils.py", line 369, in deprecation_with_replacement
    deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name))
File "C:\Users\ohari\Desktop\Lang\lang-env\lib\site-packages\PyPDF2\_utils.py", line 351, in deprecation
    raise DeprecationError(msg)