[Bug 1587249] Re: PIL exception fromstring

2017-12-13 Thread Chow Loong Jin
*** This bug is a duplicate of bug 1573577 ***
https://bugs.launchpad.net/bugs/1573577

** This bug has been marked a duplicate of bug 1573577
   QR code image does not generate after upgrade to Ubuntu 16.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-12-13 Thread Chow Loong Jin
*** This bug is a duplicate of bug 1573577 ***
https://bugs.launchpad.net/bugs/1573577

Hmm, as far as I can tell, Qreator 16.06.1-1 and python-qrencode 1.2-1
are no longer affected by this bug. This means that it should be fixed
in Ubuntu Zesty (17.04) upwards. I guess that leaves.. Xenial?

** Changed in: qreator (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: qreator (Ubuntu Yakkety)
   Status: Confirmed => Won't Fix

** Also affects: python-qrencode (Ubuntu Xenial)
   Importance: Undecided
   Status: New

** Also affects: qreator (Ubuntu Xenial)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-12-04 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: qreator (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-09-25 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-09-25 Thread David Planella
Qreator in 16.04 and beyond requires the fix to python-qrencode and this
fix [1] to Qreator itself. See bug 1573577 for more details.

The 16.04 Qreator package with the fix is available in the Qreator PPA.
You can install it as a workaround as per the instructions on that bug.
Adding them here again:

sudo add-apt-repository ppa:qreator-hackers/qreator-stable
sudo apt update
sudo apt install qreator python-qrencode

And again, if someone wants to lend a hand in doing an SRU upload to
backport the Qreator fix to 16.04, help would be very welcome!

[1] https://code.launchpad.net/~eckhofer/qreator/qreator/+merge/297065

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-09-25 Thread David Planella
** Changed in: qreator
   Status: New => Confirmed

** Changed in: qreator
   Importance: Undecided => Medium

** Also affects: qreator (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: qreator (Ubuntu Yakkety)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-09-25 Thread Byte Commander
** Also affects: qreator
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/qreator/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-06-10 Thread Phillip "ZyanKLee" Stockmann
when running qreator on xenial this error occurs as well:

Traceback (most recent call last):
  File "/usr/share/qreator/qreator/QreatorWindow.py", line 512, in 
on_qr_drawingarea_draw
output_type=QRCodeOutput.CAIRO_SURFACE)
  File "/usr/share/qreator/qreator/QRCode.py", line 61, in encode
border)
  File "/usr/share/qreator/qreator/QRCode.py", line 70, in _encode_to_cairo
current_color_bg, previous_color_bg, border)
  File "/usr/share/qreator/qreator/QRCode.py", line 94, in _encode_to_pil
version, self.qrcode_size, self.image = qrencode.encode(text)
  File "/usr/lib/python2.7/dist-packages/qrencode/__init__.py", line 47, in 
encode
im = Image.fromstring('L', (size, size), data)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in fromstring
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-30 Thread Launchpad Bug Tracker
This bug was fixed in the package python-qrencode - 1.01-5ubuntu1

---
python-qrencode (1.01-5ubuntu1) yakkety-proposed; urgency=medium

  * Backport upstream patch to fix fromstring PIL exception (LP:
#1587249)

 -- Chow Loong Jin   Sun, 15 Jan 2017 22:00:46
+0800

** Changed in: python-qrencode (Ubuntu Yakkety)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-19 Thread Chow Loong Jin
It works:

In [1]: import qrencode

In [2]: qrencode.encode_scaled('foo', 1)


Out[2]: (1, 21, )

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-19 Thread Brian Murray
Hello Muelli, or anyone else affected,

Accepted python-qrencode into yakkety-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/python-
qrencode/1.01-5ubuntu1 in a few hours, and then in the -proposed
repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: python-qrencode (Ubuntu Yakkety)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-15 Thread Chow Loong Jin
** Description changed:

+ [Impact]
+ python-qrencode is currently broken for all users in yakkety due to the 
removal of Image.fromstring from pillow.
+ 
+ The fix is to replace all calls to Image.fromstring with
+ Image.frombytes.
+ 
+ [Test Case]
+ Run the following script and see if it ends in an exception:
+ 
+ ```
+ import qrencode
+ qrencode.encode_scaled("foo", 1)
+ ``` 
+ 
+ [Regression Potential]
+ It's unlikely that python-qrencode can regress any further, because in its 
current state, both exported python methods are completely broken and will 
throw an exception unconditionally with the pillow version in Yakkety.
+ 
+ [Other Info]
+ rdeps may also be broken if they use Image.tostring on the output. So far, 
the only known rdep that is broken is qreator.
+ 
+ Below is the stack trace and exception thrown by the broken version of
+ qrencode.
+ 
  In [5]: qrencode.encode_scaled("foo",1)
  ---
  Exception Traceback (most recent call last)
   in ()
  > 1 qrencode.encode_scaled("foo",1)
  
  /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode_scaled(data, 
size, version, level, hint, case_sensitive)
-  67   the QR-code.
-  68 """
+  67   the QR-code.
+  68 """
  ---> 69 version, src_size, im = encode(data, version, level, hint, 
case_sensitive)
-  70 if size < src_size:
-  71   size = src_size
+  70 if size < src_size:
+  71   size = src_size
  
  /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode(data, 
version, level, hint, case_sensitive)
-  45 version, size, data = _encode(data, version, level, hint, 
False)
-  46 
+  45 version, size, data = _encode(data, version, level, hint, 
False)
+  46
  ---> 47 im = Image.fromstring('L', (size, size), data)
-  48 return (version, size, im)
-  49 
+  48 return (version, size, im)
+  49
  
  /usr/lib/python2.7/dist-packages/PIL/Image.pyc in fromstring(*args, **kw)
-2061 def fromstring(*args, **kw):
-2062 raise Exception("fromstring() has been removed. " +
+    2061 def fromstring(*args, **kw):
+    2062 raise Exception("fromstring() has been removed. " +
  -> 2063 "Please call frombytes() instead.")
-2064 
-2065 
+    2064
+    2065
  
  Exception: fromstring() has been removed. Please call frombytes()
  instead.
  
  In [6]:
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: python-qrencode 1.01-5
  Uname: Linux 4.6.0-040600-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue May 31 07:40:21 2016
  InstallationDate: Installed on 2015-12-02 (180 days ago)
  InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 
(20151027)
  SourcePackage: python-qrencode
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1587249] Re: PIL exception fromstring

2017-01-15 Thread Chow Loong Jin
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-15 Thread Chow Loong Jin
** Changed in: python-qrencode (Ubuntu Yakkety)
   Status: New => Confirmed

** Patch added: "debdiff for yakkety SRU"
   
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+attachment/4804699/+files/debdiff.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2017-01-15 Thread Chow Loong Jin
Fixed in zesty.

** Changed in: python-qrencode (Ubuntu)
   Status: Confirmed => Fix Released

** Also affects: python-qrencode (Ubuntu Yakkety)
   Importance: Undecided
   Status: New

** Changed in: python-qrencode (Ubuntu Yakkety)
 Assignee: (unassigned) => Chow Loong Jin (hyperair)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2016-06-13 Thread Felix Eckhofer
Upstream is fixed in
https://github.com/Arachnid/pyqrencode/commit/a58d28a4988676d20e204a9937972528cdffc381

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2016-06-08 Thread David Planella
It might be worth filing a bug upstream too, even though they don't seem
to be much active: https://github.com/Arachnid/pyqrencode

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2016-06-06 Thread Alberto Salvia Novella
** Changed in: python-qrencode (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2016-06-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: python-qrencode (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1587249] Re: PIL exception fromstring

2016-06-05 Thread Felix Eckhofer
This is also responsible for
https://bugs.launchpad.net/qreator/+bug/1573577

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587249

Title:
  PIL exception fromstring

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs