Package: python3-opengl
Version: 3.1.6+dfsg-1
Severity: important

Dear Maintainer,

We ran into a problem with LinuxCNC, see
<URL: https://github.com/LinuxCNC/linuxcnc/issues/1599 > and
<URL: https://github.com/LinuxCNC/linuxcnc/pull/2259 >.  We have run into
several OpenGL related issues in Bookworm, like
<URL: https://bugs.debian.org/1029011 > and hope to have them adressed
before the freeze.

We have been able to reproduce at leaset one of the problems with this
simple test program:

  #!/usr/bin/python3
  from OpenGL.GL import *
  from OpenGL.GLUT import *
  from OpenGL.GLU import *
  glutInit()

When running it in Bookworm I get this backtrace:

  Traceback (most recent call last):
    File "/home/linuxcnc/src/x.py", line 7, in <module>
      glutInit()
    File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in 
glutInit
      _base_glutInit( ctypes.byref(count), holder )
    File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 
423, in __call__
      raise error.NullFunctionError(
  OpenGL.error.NullFunctionError: Attempt to call an undefined function 
glutInit, check for bool(glutInit) before calling

This error do not occur when installing freeglut3_2.8.1-6_amd64.deb from
snapshots.  Trying to install the latest version of freeglut from
Bookworm, libglut3.12, did not solve the problem.  I suspect a
dependency is missing and some code need to be updated to work with
libglut3.12.

Perhaps the problematic code could be turned into a script in
debian/tests/ to ensure this keep working in the future?

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-1-rt-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8), 
LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:da:sv:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-opengl depends on:
ii  libgl1                  1.6.0-1
ii  libglu1-mesa [libglu1]  9.0.2-1.1
ii  python3                 3.11.1-1

python3-opengl recommends no packages.

Versions of packages python3-opengl suggests:
pn  libgle3        <none>
ii  python3-numpy  1:1.24.1-2
ii  python3-tk     3.10.8-1

-- no debconf information

Reply via email to