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

ValueError on encode #60

Open
C-gotoh opened this issue Dec 1, 2024 · 1 comment
Open

ValueError on encode #60

C-gotoh opened this issue Dec 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@C-gotoh
Copy link

C-gotoh commented Dec 1, 2024

I'm using qr-backup v1.1.3 installed via aur.
Tried to encode a simple file to test this qr-backup README.md but got an error:

Traceback (most recent call last):
  File "/usr/bin/qr-backup", line 1882, in <module>
    main_backup(args)
  File "/usr/bin/qr-backup", line 1259, in main_backup
    pages = generate_pdf(
            ^^^^^^^^^^^^^
  File "/usr/bin/qr-backup", line 1320, in generate_pdf
    labeled.append(add_label(img, qr.label))
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/qr-backup", line 869, in add_label
    labeled.paste(image, (0,0))
  File "/usr/lib/python3.12/site-packages/PIL/Image.py", line 1842, in paste
    raise ValueError(msg)
ValueError: cannot determine region size; use 4-item box
@za3k za3k added the bug Something isn't working label Dec 8, 2024
@za3k
Copy link
Owner

za3k commented Dec 8, 2024

That's new.

Should be fixed in master (73f5bc2). I think this was triggered by a PIL update, but it was really faulty code to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants