import pdfparser.poppler as pdf
pdf.Document(r"Manish.pdf")
Traceback (most recent call last):
File "", line 1, in
File "pdfparser/poppler.pyx", line 116, in pdfparser.poppler.Document.cinit
TypeError: expected bytes, str found
Its in redhat
Can anyone help to fix this please.