Python3, GUIs, game APIs, PyGLet, 2to3...?
Kushal Kumaran
kushal.kumaran+python at gmail.com
Thu Jul 25 04:35:43 EDT 2013
John Ladasky <john_ladasky at sbcglobal.net> writes:
> Followup to my own post: I've made progress with PyGLet. I should mention that I'm using Ubuntu Linux 13.04 64-bit, in case it matters.
>
> I tried executing "2to3 -w *.py" on just the files in the directory pyglet-1.2alpha1/pyglet. I then changed back to the pyglet-1.2alpha1 directory, and executed "sudo python setup.py install". Finally, I started my Python3 interpreter. This time, "import pyglet" generated no errors.
>
Does your python command mean python2 or python3? The setup.py at
https://code.google.com/p/pyglet/source/browse/setup.py seems to run
2to3 automatically, but that will only happen if you actually use
python3 to run setup.py.
> The PyGLet "Hello, World" code found on this web page runs:
>
> http://www.pyglet.org/doc/programming_guide/hello_world.html
>
> While unexplored parts of the PyGLet package may yet contain Py2-specific code, I'm definitely on my way.
--
regards,
kushal
More information about the Python-list
mailing list