Forums

PyPDF2 module PdfReader won't work

I have currently developed a PDF reader app where users can upload PDF files and add their own keywords. These keywords are extracted from the uploaded text, allowing the uploaders to identify and count the occurrence of specific keywords. However, I am encountering an issue with the app. I keep receiving the error message 'AttributeError: module 'PyPDF2' has no attribute 'PdfReader'. I have installed PyPDF2 using the bash command in the app and also referred to this forum, but unfortunately, nothing seems to be working. Can you please help me identify what I might be doing wrong?

Sounds like PyPDF2 is installed but installed as a different version to the documentation that your reading. I'd recommend checking the version you have installed and what version the documentation refers to