method doesn't work

Bug #1503759 reported by Luiz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QR Tools
Fix Released
Undecided
Ramiro Algozino

Bug Description

PIL has been updated. Just change "raw = pil.tostring()" to "raw = pil.tobytes()" at line 149

Revision history for this message
Luiz (baboo000) wrote :

Here's the changelog of the last update: tostring() has ben removed in 3.0
https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst

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

Hello Luiz,

 What OS version are you using? In Ubuntu 15.04 the pil package version is:

 2.7.0-1 - python2.7-pil python-pillow

Revision history for this message
Luiz (baboo000) wrote : RE: [Bug 1503759] Re: method doesn't work

Hello! I'm using Arch
linux 4.2.2-1
python 2.7.10pillow 3.0qrtools 1.2-4> Date: Fri, 9 Oct 2015 13:33:28 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1503759] Re: method doesn't work
>
> Hello Luiz,
>
> What OS version are you using? In Ubuntu 15.04 the pil package version
> is:
>
> 2.7.0-1 - python2.7-pil python-pillow
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1503759
>
> Title:
> method doesn't work
>
> Status in QR Tools:
> New
>
> Bug description:
> PIL has been updated. Just change "raw = pil.tostring()" to "raw =
> pil.tobytes()" at line 149
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/1503759/+subscriptions

Revision history for this message
one-w (one-w) wrote :

same in Ubuntu 16.04 LTS

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 695, in tostring
    "Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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