Your message dated Thu, 28 May 2026 13:30:04 +0000
with message-id <[email protected]>
and subject line Bug#1137404: fixed in pyglet 2.1.14+ds-1
has caused the Debian Bug report #1137404,
regarding pyglet: FTBFS: E           pyglet.gl.lib.GLException: (0x1280): 
Invalid enum. An unacceptable value is specified for an enumerated argument.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1137404: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137404
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:pyglet
Version: 2.0.17+ds-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202605/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:pyglet, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" 
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_pyglet  
* Building wheel...
Successfully built pyglet-2.0.17-py3-none-any.whl

[... snipped ...]

    def test_issue471(self):
        doc = pyglet.text.document.FormattedDocument()
        layout = pyglet.text.layout.IncrementalTextLayout(doc, 100, 100)
>       doc.insert_text(0, "hello", {'bold': True})

tests/unit/test_text.py:308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/document.py:377: in insert_text
    self.dispatch_event("on_insert_text", start, text)
pyglet/event.py:360: in dispatch_event
    if handler(*args):
       ^^^^^^^^^^^^^^
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 10, 12, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
______________________ TestIssues.test_issue471_comment2 _______________________

self = <tests.unit.test_text.TestIssues testMethod=test_issue471_comment2>

    def test_issue471_comment2(self):
        doc2 = pyglet.text.decode_attributed('{bold True}a')
>       layout = pyglet.text.layout.IncrementalTextLayout(doc2, 100, 10)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/unit/test_text.py:313: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/layout/incremental.py:132: in __init__
    super().__init__(document, width, height, x, y, z, anchor_x, anchor_y, 
rotation, multiline, dpi, batch, group,
pyglet/text/layout/base.py:956: in __init__
    self._init_document()
pyglet/text/layout/incremental.py:145: in _init_document
    self.on_insert_text(0, self._document.text)
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 10, 9, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
_______ test_incrementallayout_get_position_on_line_before_start_of_text _______

    def test_incrementallayout_get_position_on_line_before_start_of_text():
        single_line_text = "This is a single line of text."
        document = pyglet.text.document.UnformattedDocument(single_line_text)
        font = document.get_font()
>       layout = pyglet.text.layout.IncrementalTextLayout(document,
                                                                      height = 
font.ascent - font.descent,
                                                                      width = 
200,
                                                                      
multiline=False)

tests/unit/text/test_layout.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyglet/text/layout/incremental.py:132: in __init__
    super().__init__(document, width, height, x, y, z, anchor_x, anchor_y, 
rotation, multiline, dpi, batch, group,
pyglet/text/layout/base.py:956: in __init__
    self._init_document()
pyglet/text/layout/incremental.py:145: in _init_document
    self.on_insert_text(0, self._document.text)
pyglet/text/layout/incremental.py:183: in on_insert_text
    self._update()
pyglet/text/layout/incremental.py:242: in _update
    self._update_glyphs()
pyglet/text/layout/incremental.py:288: in _update_glyphs
    self.glyphs[start:end] = font.get_glyphs(text)
                             ^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:369: in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
                     ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:134: in render
    return self._create_glyph()
           ^^^^^^^^^^^^^^^^^^^^
pyglet/font/freetype.py:121: in _create_glyph
    glyph = self.font.create_glyph(img)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:320: in create_glyph
    return self.texture_bin.add(
pyglet/font/base.py:181: in add
    return atlas.add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^
pyglet/font/base.py:162: in add
    return super().add(img, border)
           ^^^^^^^^^^^^^^^^^^^^^^^^
pyglet/image/atlas.py:174: in add
    self.texture.blit_into(img, x + border, y + border, 0)
pyglet/image/__init__.py:1429: in blit_into
    source.blit_to_texture(self.target, self.level, x, y, z)
pyglet/image/__init__.py:841: in blit_to_texture
    glTexSubImage2D(target, level,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

result = None, func = <_FuncPtr object at 0x7fbab9913410>
arguments = (3553, 0, 1, 1, 11, 12, ...)

    def errcheck(result: Any, func: Callable, arguments: Sequence) -> Any:
        if _debug_gl_trace:
            try:
                name = func.__name__
            except AttributeError:
                name = repr(func)
            if _debug_gl_trace_args:
                trace_args = ', '.join([repr(arg)[:20] for arg in arguments])
                print(f'{name}({trace_args})')
            else:
                print(name)
    
        from pyglet import gl
        if not gl.current_context:
            raise GLException('No GL context; create a Window first')
        error = gl.glGetError()
        if error:
            # These are the 6 possible error codes we can get in opengl core 
3.3+
            error_types = {
                gl.GL_INVALID_ENUM: "Invalid enum. An unacceptable value is 
specified for an enumerated argument.",
                gl.GL_INVALID_VALUE: "Invalid value. A numeric argument is out 
of range.",
                gl.GL_INVALID_OPERATION: "Invalid operation. The specified 
operation is not allowed in the current state.",
                gl.GL_INVALID_FRAMEBUFFER_OPERATION: "Invalid framebuffer 
operation. The framebuffer object is not "
                                                     "complete.",
                gl.GL_OUT_OF_MEMORY: "Out of memory. There is not enough memory 
left to execute the command.",
            }
            error_msg = error_types.get(error, "Unknown error")
            msg = f'(0x{error}): {error_msg}'
>           raise GLException(msg)
E           pyglet.gl.lib.GLException: (0x1280): Invalid enum. An unacceptable 
value is specified for an enumerated argument.

pyglet/gl/lib.py:83: GLException
=========================== short test summary info ============================
FAILED tests/integration/text/test_label_creation.py::test_label_creation[Label]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document0]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document1]
FAILED 
tests/integration/text/test_label_creation.py::test_documentlabel_creation[document2]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[UnformattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_keyword[FormattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[UnformattedDocument-IncrementalTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-TextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-ScrollableTextLayout]
FAILED 
tests/integration/text/test_layout_creation.py::test_layout_creation_positional[FormattedDocument-IncrementalTextLayout]
FAILED tests/unit/test_text.py::TestIssues::test_issue241_comment4b - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue241_comment5 - pyglet.g...
FAILED tests/unit/test_text.py::TestIssues::test_issue429_comment4a - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue429_comment4b - pyglet....
FAILED tests/unit/test_text.py::TestIssues::test_issue471 - pyglet.gl.lib.GLE...
FAILED tests/unit/test_text.py::TestIssues::test_issue471_comment2 - pyglet.g...
FAILED 
tests/unit/text/test_layout.py::test_incrementallayout_get_position_on_line_before_start_of_text
==== 23 failed, 586 passed, 106 skipped, 95 deselected, 2 xfailed in 25.46s ====
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pyglet/build; xvfb-run --auto-servernum 
--server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" 
python{version} -m pytest -v -k "not interactive and not PulseAudio and not 
test_pulse and not test_player_play and not test_player_play_multiple and not 
test_player_silent_audio_driver and not test_freetype_face and not 
test_fontconfig and not test_linux_fontconfig and not test_driver and not 
test_openal and not test_elapsed_time_between_tick and not test_compute_fps" 
--ignore=tests/interactive
dh_auto_test: error: pybuild --test -i python{version} -p "3.14 3.13" 
--parallel=2 returned exit code 13
make: *** [debian/rules:39: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: pyglet
Source-Version: 2.1.14+ds-1
Done: Colin Watson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pyglet, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated pyglet package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 28 May 2026 13:38:16 +0100
Source: pyglet
Architecture: source
Version: 2.1.14+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1137404
Changes:
 pyglet (2.1.14+ds-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release (closes: #1137404).
Checksums-Sha1:
 c72d015873eedf29a90764ee11b7e481e3469326 2575 pyglet_2.1.14+ds-1.dsc
 76cb905513fc43c57147f7382da508a1a65709f3 3036852 pyglet_2.1.14+ds.orig.tar.xz
 d2597fa4568e3f81a361d2c3acd0f6745ad073c1 8536 pyglet_2.1.14+ds-1.debian.tar.xz
Checksums-Sha256:
 2d76450635bc3afbb03ab6488c0f31fad143978ea117bc822db5b524d55c7b00 2575 
pyglet_2.1.14+ds-1.dsc
 cb7c864ad056320957443c306409f7e2cedc1cd1433e13798a74cc3ac983ba6d 3036852 
pyglet_2.1.14+ds.orig.tar.xz
 ad650ee93d5408d1edcc627807f7703f44a7dcfaeac324a6cbd9f4c8ee47ca55 8536 
pyglet_2.1.14+ds-1.debian.tar.xz
Files:
 cf6b09e47e47c34d50e55461b35ba0f1 2575 python optional pyglet_2.1.14+ds-1.dsc
 6485f5c8bc8c3346086a901c86b7e26e 3036852 python optional 
pyglet_2.1.14+ds.orig.tar.xz
 aa80ea284f3a9f7f392f779b1461b248 8536 python optional 
pyglet_2.1.14+ds-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmoYN14ACgkQOTWH2X2G
UAuLNA//Q/K5hWPVOpUgi3n5H/Q+tMbiw9Et67qPl9ngDZzb2vW1l+rR5Dc3zOap
iUzMM3eqrHTPVBS9BX/xoVXNthxHeiftzt+mQmypt7kvFud7mWtQCVz/9ZXp0Rau
XuyngGDxMa7nyoxBQqJODt+Yn+nqgrjlOPD7ww14OL93fvt0Z80bkAelZ7sVRJ6f
PCvTqb8xTvmO4ATWzKWDX1KjPR/XBD4KUSz7Fo9LWQrINa5L87nZNEmqIQPWPv6k
IVVBfSF4eIsM6sMWxmzSAoamqme4o2Ia2btsKp+JB0h98SGsOZfgzIviRmKqn8vB
SYmDaW5NuVU4qkbRGP0Wei2hBRtV0x4+CMgT+qXXMBNOrkc4vwxWz8whj4+F84V/
+xrILtYg/99nyInbznc8DzLjw6iFVU88tM1kWKmUMmfemJ1/EU+vaX3RV+7++KXv
kK7nDg+Z2dL5HSg8TdYfXVOafVvJyFd6PEBl3XjncRN9fDgV8OwA+sjkKX1pk6fb
+iRuQBBNclsa6QzKxPRvhx4hSI02ZVJWlgM2QhwcFy2hMjg7ZFqctYeDUDhm3r6W
7u8+iKNS44G5lqamGVBAMH+aponJ3sdVH4BC0ppdw3ak5dQJmzFcZeYCqzkvLRF1
zv5x/+tAc5P8XYSkJjIif1oNQDJFkwpLrnA/Y6EWUpYAGkly2EI=
=3JRd
-----END PGP SIGNATURE-----

Attachment: pgpD9korK2Dml.pgp
Description: PGP signature


--- End Message ---

Reply via email to