Re: Python3, GUIs, game APIs, PyGLet, 2to3...?

2013-07-25 Thread John Ladasky
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.

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.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python3, GUIs, game APIs, PyGLet, 2to3...?

2013-07-25 Thread Kushal Kumaran
John Ladasky john_lada...@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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python3, GUIs, game APIs, PyGLet, 2to3...?

2013-07-25 Thread John Ladasky
On Thursday, July 25, 2013 1:35:43 AM UTC-7, Kushal Kumaran wrote:

 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.

Thank you for that sharp observation, Kushal!  (And I hope that more packages 
besides pyglet are configured this way -- to automatically run 2to3, when you 
install on Python 3.)

How strange that I remember typing sudo python setup.py install.  Because on 
my Ubuntu 13.04 system, that would invoke Python 2.7, which is an essential 
part of the OS.  Nevertheless, I was able to import pyglet after invoking 
python3 from the shell.  I didn't think that installed modules could be 
shared between multiple Python versions.

I'll try again from scratch, and see whether that clears up my problems.
-- 
http://mail.python.org/mailman/listinfo/python-list