jcushman/pdfquery

can't concat str to bytes EASY FIX -- please update!

jstofel opened this issue · 3 comments

Hi! We discovered that the can't concat str to bytes error on load() can be fixed :
you must fix a bug on line 271 of pdfquery version 0.4.3 by adding .encode() to the end of page_label

Current:

    if 'P' in label_format:
        page_label = label_format['P']+page_label

Update to:

    if 'P' in label_format:
        page_label = label_format['P']+page_label.encode()

Note to newbies: to find where pdfquery.py is installed, reinstall it and read the path
python -m pip install pdfquery

This does not fix the bug for me.

JPow commented

This does not fix the bug for me.

Worked for me following making the change and restarting kernel. Tx for the help.

Thank you, worked for me!