QtQr can not decode a QR code in PNG format

Bug #1719696 reported by ed20900
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QR Tools
Fix Released
Undecided
Ramiro Algozino

Bug Description

Executing the program from the command line, the standard output prints the following traceback when opening the file from the dialog of the "Decode" button on the GUI:

usr/lib/python2.7/dist-packages/PIL/Image.py:872: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
  'to RGBA images')
Traceback (most recent call last):
  File "/usr/bin/qtqr", line 540, in decodeFile
    if qr.decode():
  File "/usr/lib/python2.7/dist-packages/qrtools.py", line 181, in decode
    raw = pil.tostring()
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 697, in tostring
    "Please call tobytes() instead.")
NotImplementedError: tostring() has been removed. Please call tobytes() instead.

Revision history for this message
Ramiro Algozino (algozino) wrote :

Hello Rául,

Thank you for your report. Could please tell us what operating system are you using and QtQR version please?

Please test using the daily PPA version and check if the problem persist.

Thanks in advance.

Best regards.

Changed in qr-tools:
status: New → Incomplete
Revision history for this message
ed20900 (ed20900) wrote :

I am using Kubuntu 17.04.
QtQR version available in 17.04 repositories is 1.4.0~21.

The latest version available in the daily PPA can decode the PNG file. Still, it shows this warning:
/usr/lib/python2.7/dist-packages/PIL/Image.py:872: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
  'to RGBA images')

Will this new version be available in (K)Ubuntu 17.10? Currently the PPA only has builds up to Ubuntu 16.10 (I installed the package from the repository of that release).

Thanks.

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 1719696] Re: QtQr can not decode a QR code in PNG format

Thanks for all the debugging! Yes it will be available in the PPA, and
hopefully the repo version too.

El 29 sep. 2017 21:20, "Raúl Vidal" <email address hidden> escribió:

> I am using Kubuntu 17.04.
> QtQR version available in 17.04 repositories is 1.4.0~21.
>
> The latest version available in the daily PPA can decode the PNG file.
> Still, it shows this warning:
> /usr/lib/python2.7/dist-packages/PIL/Image.py:872: UserWarning: Palette
> images with Transparency expressed in bytes should be converted to RGBA
> images
> 'to RGBA images')
>
> Will this new version be available in (K)Ubuntu 17.10? Currently the PPA
> only has builds up to Ubuntu 16.10 (I installed the package from the
> repository of that release).
>
> Thanks.
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https://bugs.launchpad.net/bugs/1719696
>
> Title:
> QtQr can not decode a QR code in PNG format
>
> Status in QR Tools:
> Incomplete
>
> Bug description:
> Executing the program from the command line, the standard output
> prints the following traceback when opening the file from the dialog
> of the "Decode" button on the GUI:
>
> usr/lib/python2.7/dist-packages/PIL/Image.py:872: UserWarning: Palette
> images with Transparency expressed in bytes should be converted to RGBA
> images
> 'to RGBA images')
> Traceback (most recent call last):
> File "/usr/bin/qtqr", line 540, in decodeFile
> if qr.decode():
> File "/usr/lib/python2.7/dist-packages/qrtools.py", line 181, in
> decode
> raw = pil.tostring()
> File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 697, in
> tostring
> "Please call tobytes() instead.")
> NotImplementedError: tostring() has been removed. Please call tobytes()
> instead.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/1719696/+subscriptions
>

Revision history for this message
Ramiro Algozino (algozino) wrote :

Packages are built in the Daily PPA for Ubuntu 17.04

Changed in qr-tools:
status: Incomplete → Fix Released
assignee: nobody → Ramiro Algozino (algozino)
milestone: none → 1.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.