Open
Description
See below how to make it run on Python 3.11 and why it fails with pyglet version 2.0.7:
import pyglet #o#0#o# requires pyglet version 1.5.27
# With pyglet 2.0.7 there is an error:
# File "~/.local/lib/python3.11/site-packages/pyno/draw.py", line 7, in <module>
# class UIGroup(pyglet.graphics.OrderedGroup):
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# AttributeError: module 'pyglet.graphics' has no attribute 'OrderedGroup'
# Because:
# pyglet-2.0.7/doc/programming_guide/migration.rst:50:`OrderedGroup` has been removed. Instead, all Groups now have an `order`
from inspect import getfullargspec as getargspec #o#0#o# OK on Python 3.11
# from inspect import getargspec # fails on Python 3.11 with:
# from inspect import getargspec
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# ImportError: cannot import name 'getargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py)
Metadata
Metadata
Assignees
Labels
No labels