Package Details: python-moderngl-window 3.1.1-2

Git Clone URL: https://aur.archlinux.org/python-moderngl-window.git (read-only, click to copy)
Package Base: python-moderngl-window
Description: A utility library for ModernGL making window creation and resource loading simple.
Upstream URL: https://github.com/moderngl/moderngl-window
Licenses: MIT
Submitter: groctel
Maintainer: groctel
Last Packager: groctel
Votes: 2
Popularity: 0.000000
First Submitted: 2021-04-04 21:17 (UTC)
Last Updated: 2025-04-01 16:35 (UTC)

Latest Comments

1 2 3 Next › Last »

Dozyjones commented on 2025-11-07 10:44 (UTC)

Installation fails on my machine. Building the wheels goes fine, but it can't seem to pass check()

Installing collected packages: moderngl-window
Successfully installed moderngl-window-3.1.1

[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: pip install --upgrade pip
===================================== test session starts ======================================
platform linux -- Python 3.13.7, pytest-8.4.2, pluggy-1.6.0
rootdir: /home/aida/.cache/paru/clone/python-moderngl-window/src/moderngl-window-3.1.1
configfile: pyproject.toml
plugins: anyio-4.11.0, cov-6.1.1
collected 120 items

tests/test_attribute_names.py .                                                          [  0%]
tests/test_camera.py ..                                                                  [  2%]
tests/test_conf.py ........                                                              [  9%]
tests/test_finders.py ..........                                                         [ 17%]
tests/test_geometry.py ....                                                              [ 20%]
tests/test_headless.py ......                                                            [ 25%]
tests/test_loaders_data.py .........                                                     [ 33%]
tests/test_loaders_program.py .............                                              [ 44%]
tests/test_loaders_scene.py .......                                                      [ 50%]
tests/test_loaders_texture.py ........                                                   [ 56%]
tests/test_moderngl_window.py .                                                          [ 57%]
tests/test_projection.py ..                                                              [ 59%]
tests/test_resource_descriptions.py .....                                                [ 63%]
tests/test_resources.py ........                                                         [ 70%]
tests/test_scheduler.py .                                                                [ 70%]
tests/test_screenshot.py ....                                                            [ 74%]
tests/test_shader_source.py ........                                                     [ 80%]
tests/test_timers.py ...                                                                 [ 83%]
tests/test_utils.py ....                                                                 [ 86%]
tests/test_vao.py .....                                                                  [ 90%]
tests/test_windowconfig.py ...........                                                   [100%]

======================================= warnings summary =======================================
moderngl_window/scene/camera.py:4
  /home/aida/.cache/paru/clone/python-moderngl-window/src/moderngl-window-3.1.1/moderngl_window/scene/camera.py:4: PendingDeprecationWarning: Importing PyGLM via "import glm" is going to be deprecated in the future.
  Use "from pyglm import glm" instead
    import glm

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ 120 passed, 1 warning in 1.75s ================================
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  146 ()
  Minor opcode of failed request:  3
  Serial number of failed request:  49
  Current serial number in output stream:  43
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-moderngl-window-3.1.1-2':
error: packages failed to build: python-moderngl-window-3.1.1-2

fkr commented on 2025-10-31 16:36 (UTC)

Yes, it works with glm 1.0.2-1.

groctel commented on 2025-10-18 11:32 (UTC)

@fkr Did @micwoj92's comment in python-pyglm solve your issue?

fkr commented on 2025-10-17 19:22 (UTC) (edited on 2025-10-17 19:33 (UTC) by fkr)

Having installed the newest version of python-pyglm (2025-08-11), I get the same errors as farkaslory described below when trying to install python-moderngl-window, without having touched any PKGBUILD. Each of these errors end as follows:

/usr/lib/python3.13/site-packages/pyglm/__init__.py:1: in <module>
    from . import glm
E   ImportError: /usr/lib/python3.13/site-packages/pyglm/glm.cpython-313-x86_64-linux-gnu.so: undefined symbol: _ZN3glm21infinitePerspectiveLHIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_

farkaslory commented on 2025-04-23 16:27 (UTC)

As I said the error comes after I have applied your comment as a patch for python-pyglm. python-pyglm builds clean but after that I get the missing undefined symbol error. I didn't have python-pyglm, before this, maybe you have some older files from previous installs that define the aforementioned symbols.

jmll commented on 2025-04-11 17:18 (UTC)

@groctel I also applied the patch from python-pyglm and I can confirm that I'm having the same undefined symbol errors

groctel commented on 2025-04-11 08:47 (UTC)

@farkaslory this should be fixed in the latest python-pyglm patch I submitted as an edit to my comment. It works on my machine but I can't test it on an X11 session right now. Can you test it in yours?

farkaslory commented on 2025-04-04 12:25 (UTC)

After I have modified the python-pyglm PKGBUILD by groctel instruction, I get:

======================== short test summary info =========================
ERROR tests/test_attribute_names.py
ERROR tests/test_camera.py
ERROR tests/test_finders.py
ERROR tests/test_geometry.py
ERROR tests/test_headless.py
ERROR tests/test_loaders_data.py
ERROR tests/test_loaders_program.py
ERROR tests/test_loaders_scene.py
ERROR tests/test_loaders_texture.py
ERROR tests/test_moderngl_window.py
ERROR tests/test_projection.py
ERROR tests/test_resources.py
ERROR tests/test_screenshot.py
ERROR tests/test_shader_source.py
ERROR tests/test_vao.py
ERROR tests/test_windowconfig.py
!!!!!!!!!!!!!!!! Interrupted: 16 errors during collection !!!!!!!!!!!!!!!!
=========================== 16 errors in 0.44s ===========================

Most of the errors come from

ImportError: /usr/lib/python3.13/site-packages/pyglm/glm.cpython-313-x86_64-linux-gnu.so: undefined symbol: _ZN3glm21infinitePerspectiveLHIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_

groctel commented on 2025-04-01 11:29 (UTC)

I hadn't found a way to do this in many packages. This should be fixed here and in other places :)

micwoj92 commented on 2025-03-17 18:42 (UTC)

Please do not install using pip. This should be checked against system packages.