python camelot TypeError: endswith first arg must be bytes or a tuple of bytes, not str

Viewed 17

I am getting a PDF file from a database table with a get_bytes command. When I pass that to camelot.read_pdf it returns an error

TypeError: endswith first arg must be bytes or a tuple of bytes, not str

any help with this? when I do a print(type(file)) it tells me it is class 'bytes'

0 Answers
Related