Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562380 - app-office/impressive-0.11.0b with dev-python/pillow-3.0.0: "tostring() has been removed"
Summary: app-office/impressive-0.11.0b with dev-python/pillow-3.0.0: "tostring() has b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 10:18 UTC by Bernd Feige
Modified: 2015-10-10 15:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2015-10-06 10:18:50 UTC
dev-python/pillow-3.0.0 removed tostring():
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/impressive.py", line 5905, in run_main
    main()
  File "/usr/lib/python-exec/python2.7/impressive.py", line 5672, in main
    LogoTexture = gl.make_texture(gl.TEXTURE_2D, filter=gl.NEAREST, img=LogoImage)
  File "/usr/lib/python-exec/python2.7/impressive.py", line 1229, in make_texture
    self.load_texture(target, img)
  File "/usr/lib/python-exec/python2.7/impressive.py", line 1242, in load_texture
    gl.TexImage2D(target, 0, format, img.size[0], img.size[1], 0, format, self.UNSIGNED_BYTE, img.tostring())
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 686, in tostring
    "Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.

Replacing the occurrences of tostring() with tobytes() in /usr/lib/python-exec/python2.7/impressive.py fixes the problem.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-10 15:40:45 UTC
commit 391427e7dd4704b61ac6c05d8923a3907e650a03
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sat Oct 10 16:46:51 2015 +0200

    app-office/impressive: Fix for pillow-3

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562380

    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=391427e7dd4704b61ac6c05d8923a3907e650a03