#1050157 printrun: broken 3D view due to pyglet 2+

#1050157#5
Date:
2023-08-21 07:43:21 UTC
From:
To:
Control: forwarded -1 https://github.com/kliment/Printrun/issues/1291

Dear Maintainer,

Initializing pronterface gives the following error which makes 3D views
impossible and only 2D works. Upstream is aware of this but has not
transitioned to pyglet 2+ yet.

```
$ pronterface
3D view mode requested, but we failed to initialize it.
Falling back to 2D view, and here is the backtrace:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/printrun/gui/viz.py", line 69, in __init__
    import printrun.gcview
  File "/usr/lib/python3/dist-packages/printrun/gcview.py", line 22, in <module>
    from .gl.panel import wxGLPanel
  File "/usr/lib/python3/dist-packages/printrun/gl/panel.py", line 28, in <module>
    from pyglet.gl import glEnable, glDisable, GL_LIGHTING, glLightfv, \
ImportError: cannot import name 'GL_LIGHTING' from 'pyglet.gl' (/usr/lib/python3/dist-packages/pyglet/gl/__init__.py)
```

#1050157#10
Date:
2023-08-24 14:04:58 UTC
From:
To:
Reassigning to `pronterface` since it doesn't really affect the full
printrun suite. `plater` suffers the exact same issue but neither
`pronsole` nor `printcore` do.

Severity raised to serious to avoid package migration.

For refernce, this would be the system information pertaining to
pronterface:

#1050157#25
Date:
2025-09-06 10:33:55 UTC
From:
To:
Unfortunately, the bug still affects src:printrun (and therefore all other binary packages).

In order to keep the package in Debian, plater and pronterface need to be disabled in the build, together with the dependency on pyglet.