error in exception syntax

MRAB python at mrabarnett.plus.com
Wed Mar 9 13:23:52 EST 2011


On 09/03/2011 18:12, Aaron Gray 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.
>
> Many thanks in advance,
>
> Aaron
>
In Python 3 the syntax is:

     except OSError as err:

Are you sure that that version of OpenGL compatible with Python 3?



More information about the Python-list mailing list