Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763171 - dev-python/pyglet-1.5.14 fails to save images in alternative formats
Summary: dev-python/pyglet-1.5.14 fails to save images in alternative formats
Status: UNCONFIRMED
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: 768789
  Show dependency tree
 
Reported: 2021-01-02 18:52 UTC by Risto A. Paju
Modified: 2021-03-30 23:21 UTC (History)
4 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 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.