error in exception syntax

Alex Willmer alex at moreati.org.uk
Wed Mar 9 13:18:45 EST 2011


On Mar 9, 6:12 pm, "Aaron Gray" <ang.use... at gmail.com> wrote:
> On Windows I have installed Python 3.2 and PyOpenGL-3.0.1 and am getting the
> following error :-
>
>     File "c:\Python32\lib\site-packages\OpenGL\platform\win32.py", line 13
>       except OSError, err:
>                 ^
>
> It works okay on my Linux machine running Python 2.6.2.

Python 3.x is a different beast to Python 2.x. It has a number of
backward incompatible changes, including the try/except syntax.
Install the latest Python 2.x (Python 2.7) on your Windows machine and
use that. Then read http://docs.python.org/release/3.2/whatsnew/3.0.html

Regards, Alex




More information about the Python-list mailing list