Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 763171

Summary: dev-python/pyglet-1.5.14 fails to save images in alternative formats
Product: Gentoo Linux Reporter: Risto A. Paju <teknohog+gentoobugz>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: UNCONFIRMED ---    
Severity: normal CC: ionen, mgorny, python, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=750107
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 768789    

Description Risto A. Paju 2021-01-02 18:52:30 UTC
I use the following line from Pyglet docs to save screenshots in my OpenGL applications:

pyglet.image.get_buffer_manager().get_color_buffer().save(shotfile)

I have compiled Pyglet with USE=image to allow multiple image formats (using dev-python/pillow). After updating Pyglet from 1.5.13 to 1.5.14, these formats no longer work. Attempting to save as TGA, for example, fails with the following error:

pyglet.image.codecs.ImageEncodeException: No image encoders are available

Saving as PNG or BMP continues to work in Pyglet 1.5.14, as those formats do not use Pillow.

Note that I recently filed #750107 concerning a very similar issue in Pyglet with Pillow. However, it was fixed in Pyglet 1.5.13.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-06 07:27:14 UTC
Does it work if you downgrade? If so, this feels like it needs to go upstream.
Comment 2 Risto A. Paju 2021-01-06 13:41:47 UTC
The same error comes up with Pillow versions 7.2.0 and 8.0.1, along with the latest 8.1.0. So this is a different problem from #750107, and something was broken with the Pyglet update from 1.5.13 to 1.5.14.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-06 13:46:40 UTC
But downgrading pyglet?
Comment 4 Risto A. Paju 2021-01-06 14:44:32 UTC
Pyglet 1.5.13 is working fine with all the aforementioned Pillow versions.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 14:23:14 UTC
Could you test with 1.5.15?
Comment 6 Risto A. Paju 2021-03-30 23:21:54 UTC
(In reply to Michał Górny from comment #5)
> Could you test with 1.5.15?

I tested Pyglet 1.5.15 with Pillow 8.1.2 and I get the same error.