8000 Pyno requires pyglet 1.5.27 and a patch on Python 3.11 · Issue #47 · honix/Pyno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Pyno requires pyglet 1.5.27 and a patch on Python 3.11 #47
Open
@ClaudioGi

Description

@ClaudioGi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0