Bug 56025 - Некоторые примеры не работают: ImportError: Library "GLU" not found
Summary: Некоторые примеры не работают: ImportError: Library "GLU" not found
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-pyglet (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Fr. Br. George
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-17 13:59 MSK by Artem Varaksa
Modified: 2025-09-17 14:00 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-09-17 13:59:52 MSK
Шаги
====

1. # apt-get install -y python3-module-pyglet

2. Склонировать https://git.altlinux.org/gears/p/python3-module-pyglet.git и перейти к ветке, соответствующей проверяемому репозиторию.

3. $ python3 ~/pyglet/examples/text/html_label.py
4. $ python3 ~/pyglet/examples/astraea/astraea.py

Фактический результат
=====================

3. $ python3 ~/pyglet/examples/text/html_label.py

> Traceback (most recent call last):
>   File "/usr/lib/python3/site-packages/pyglet/__init__.py", line 305, in __getattr__
>     return getattr(self._module, name)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'Window'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/lib/python3/site-packages/pyglet/__init__.py", line 305, in __getattr__
>     return getattr(self._module, name)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'NoneType' object has no attribute '_create_shadow_window'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/home/test/pyglet/examples/text/html_label.py", line 58, in <module>
>     window = pyglet.window.Window(resizable=True)
>              ^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/site-packages/pyglet/__init__.py", line 311, in __getattr__
>     __import__(import_name)
>   File "/usr/lib/python3/site-packages/pyglet/window/__init__.py", line 1919, in <module>
>     gl._create_shadow_window()
>     ^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/site-packages/pyglet/__init__.py", line 311, in __getattr__
>     __import__(import_name)
>   File "/usr/lib/python3/site-packages/pyglet/gl/__init__.py", line 95, in <module>
>     from pyglet.gl.gl import *
>   File "/usr/lib/python3/site-packages/pyglet/gl/gl.py", line 45, in <module>
>     from pyglet.gl.lib import link_GL as _link_function
>   File "/usr/lib/python3/site-packages/pyglet/gl/lib.py", line 149, in <module>
>     from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX
>   File "/usr/lib/python3/site-packages/pyglet/gl/lib_glx.py", line 46, in <module>
>     glu_lib = pyglet.lib.load_library('GLU')
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/site-packages/pyglet/lib.py", line 169, in load_library
>     raise ImportError('Library "%s" not found.' % names[0])
> ImportError: Library "GLU" not found.


4. $ python3 ~/pyglet/examples/astraea/astraea.py

> Traceback (most recent call last):
>   File "/home/test/pyglet/examples/astraea/astraea.py", line 49, in <module>
>     from pyglet.gl import *
>   File "/usr/lib/python3/site-packages/pyglet/gl/__init__.py", line 95, in <module>
>     from pyglet.gl.gl import *
>   File "/usr/lib/python3/site-packages/pyglet/gl/gl.py", line 45, in <module>
>     from pyglet.gl.lib import link_GL as _link_function
>   File "/usr/lib/python3/site-packages/pyglet/gl/lib.py", line 149, in <module>
>     from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX
>   File "/usr/lib/python3/site-packages/pyglet/gl/lib_glx.py", line 46, in <module>
>     glu_lib = pyglet.lib.load_library('GLU')
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/site-packages/pyglet/lib.py", line 169, in load_library
>     raise ImportError('Library "%s" not found.' % names[0])
> ImportError: Library "GLU" not found.


Ожидаемый результат
===================

Успешные запуск и работа примеров.


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Workstation 11.1 x86_64
python3-module-pyglet-1.5.30-alt1.noarch