You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Users\orang\Desktop\bank_interest_rate_webscraper\testing00000000.py", line
2, in <module>
with pdfplumber.open("cba.pdf") as pdf:
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfplumber\pdf.py", line 48, in open
return cls(open(path, "rb"), **kwargs)
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfplumber\pdf.py", line 28, in __init__
self.doc = PDFDocument(PDFParser(stream), password = password)
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 577, in __init__
self._initialize_password(password)
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 603, in _initialize_password
handler = factory(docid, param, password)
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 303, in __init__
self.init()
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 310, in init
self.init_key()
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 323, in init_key
self.key = self.authenticate(self.password)
File "C:\Users\orang\AppData\Local\Programs\Python\Python36\lib\site-packages\pdfminer\pdfdocument.py", line 371, in authenticate
password = password.encode("latin1")
AttributeError: 'bytes' object has no attribute 'encode'
sun.pdf
cba.pdf
The text was updated successfully, but these errors were encountered: