Hi Pyglet community!
I recently discovered Pyglet and am thoroughly enjoying it so far, especially the fact that it is pure-Python. I’m looking towards it as a potential replacement for my use of PySide/PyQt, while fantastic, both require compiled libraries to follow alongside it. In the recent version, 1.3.0, I noticed the use of future and was going to touchbase on what your thoughts were with regards to it versus six.py. future does quite a few more things than six.py, but so far it seems future is mainly used to bridge between Python 2 and 3, something six.py does rather well. So I was wondering whether you would ultimately consider swapping it for six? - https://pythonhosted.org/six/ It would reduce complexity somewhat and easy my own understanding, and facilitate using pyglet as a vendor package of another library, but if not than I’ve got only one problem with it so far that I’m not sure how to tackle; my use of Pyglet is within Autodesk Maya, an application which embeds Python (2). Embedded, it distributes its Python library as a .zip archive, something which one of future’s dependencies, lib2to3, is incompatible with. https://bugs.python.org/issue24960 $ mayapy -m my_pyglet_application Traceback (most recent call last): File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\runpy.py", line 162, in _run_module_as_main File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\runpy.py", line 72, in _run_code File "c:\Users\marcus\my_pyglet_application.py", line 10, in <module> window = pyglet.window.Window( File "c:\Users\marcus\pyglet\lib\site-packages\pyglet\__init__.py", line 384, in __getattr__ __import__(import_name) File "c:\Users\marcus\pyglet\lib\site-packages\pyglet\window\__init__.py", line 135, in <module> from pyglet.event import EventDispatcher File "c:\Users\marcus\pyglet\lib\site-packages\pyglet\event.py", line 139, in <module> from past.builtins import basestring File "c:\Users\marcus\pyglet\lib\site-packages\past\__init__.py", line 88, in <module> from past.translation import install_hooks as autotranslate File "c:\Users\marcus\pyglet\lib\site-packages\past\translation\__init__.py", line 42, in <module> from lib2to3.refactor import RefactoringTool File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\refactor.py", line 27, in <module> File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\fixer_util.py", line 9, in <module> File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\pygram.py", line 32, in <module> File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\pgen2\driver.py", line 121, in load_grammar File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\pgen2\pgen.py", line 385, in generate_grammar File "c:\Program Files\Autodesk\Maya2016\bin\python27.zip\lib2to3\pgen2\pgen.py", line 15, in __init__ IOError: [Errno 2] No such file or directory: 'c:\\Program Files\\Autodesk\\Maya2016\\bin\\python27.zip\\lib2to3\\Grammar.txt' -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
