Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jstofel opened this issue Mar 6, 2020 · 3 comments
Open

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

jstofel opened this issue Mar 6, 2020 · 3 comments

Comments

@jstofel
Copy link

jstofel commented Mar 6, 2020

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

@pfisters
Copy link

This does not fix the bug for me.

@JPow
Copy link

JPow commented Jul 19, 2023

This does not fix the bug for me.

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

@hedi-far
Copy link

Thank you, worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants