qr-backup icon indicating copy to clipboard operation
qr-backup copied to clipboard

ValueError on encode

Open C-gotoh opened this issue 1 year ago • 1 comments

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

C-gotoh avatar Dec 01 '24 15:12 C-gotoh

That's new.

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

za3k avatar Dec 08 '24 00:12 za3k

Fixed in release v1.1.4.

za3k avatar Mar 25 '25 00:03 za3k