honix / Pyno

Python-based visual programming
MIT License
167 stars 23 forks source link

Pyno requires pyglet 1.5.27 and a patch on Python 3.11 #47

Open ClaudioGi opened 1 year ago

ClaudioGi commented 1 year ago

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)
GurePortela commented 1 year ago

Oi não consigo rodar o aplicativo no windows 10 mesmo instalando a versão pyglet 1.5.2,depois de muitas tentativas importando: Для

Привет, я не могу запустить приложение в Windows 10, даже установив версию pyglet 1.5.2 после многих попыток импорта:

import pyno pyno.app_run()

dava erro tipo :выдало ошибку вроде

'Traceback (most recent call last): File "<pyshell#5>", line 1, in pyno.app_run() AttributeError: module 'pyno' has no attribute 'app_run'

Só rodou quando fiz: Он работал только тогда, когда я делал:

import pyglet import window import profile import pyno pyno.run() Loading... Can't load file: [Errno 2] No such file or directory: '.auto-saved.pn' File C:\Python39\lib\site-packages\pyno\examples\welcome.pn loaded! New pyno! New window! Connection is broken: File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved!

Em qui., 11 de mai. de 2023 às 18:08, ClaudioGi @.***> escreveu:

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 "/home/neo/.local/lib/python3.11/site-packages/pyno/draw.py", line 7, in

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)

— Reply to this email directly, view it on GitHub https://github.com/honix/Pyno/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZ3YXDCOVSOT7LE34UQ6LXFVINXANCNFSM6AAAAAAX6VNIPE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

GurePortela commented 1 year ago

oi no windows 10 o texto dos nós esta sumindo quando vc desloca o no pela tela

В Windows 10 текст узлов исчезает, когда вы перемещаете узел по экрану

Em ter., 25 de jul. de 2023 às 12:34, GurePortela @.***> escreveu:

Oi não consigo rodar o aplicativo no windows 10 mesmo instalando a versão pyglet 1.5.2,depois de muitas tentativas importando: Для

Привет, я не могу запустить приложение в Windows 10, даже установив версию pyglet 1.5.2 после многих попыток импорта:

import pyno pyno.app_run()

dava erro tipo :выдало ошибку вроде

'Traceback (most recent call last): File "<pyshell#5>", line 1, in pyno.app_run() AttributeError: module 'pyno' has no attribute 'app_run'

Só rodou quando fiz: Он работал только тогда, когда я делал:

import pyglet import window import profile import pyno pyno.run() Loading... Can't load file: [Errno 2] No such file or directory: '.auto-saved.pn' File C:\Python39\lib\site-packages\pyno\examples\welcome.pn loaded! New pyno! New window! Connection is broken: File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved! File .auto-saved.pn saved!

Em qui., 11 de mai. de 2023 às 18:08, ClaudioGi @.***> escreveu:

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 "/home/neo/.local/lib/python3.11/site-packages/pyno/draw.py",

line 7, in

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)

— Reply to this email directly, view it on GitHub https://github.com/honix/Pyno/issues/47, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AIXZ3YXDCOVSOT7LE34UQ6LXFVINXANCNFSM6AAAAAAX6VNIPE>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/honix/Pyno/issues/47#issuecomment-1650069860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZ3YQIRA7DK4K6WWNNKODXR7RPJANCNFSM6AAAAAAX6VNIPE . You are receiving this because you are subscribed to this thread.Message ID: @.***>