_NULL_8_BYTE not defined with GLES2

Steven Schulteis <[email protected]> Mon, 22 Dec 2014 20:35:21 -0600
Newsgroups gmane.comp.python.opengl.devel
Message-ID <CAKuLKHnTgrKLz85OXt4A5+kFimT8t18KqSWtWU0ySqa4+Y1atA@mail.gmail.com>
--===============8625962251644394431==
Content-Type: multipart/alternative; boundary=047d7bea31c4c637e6050ad906f0

--047d7bea31c4c637e6050ad906f0
Content-Type: text/plain; charset=UTF-8

I'm running into the following error (Python 3.4.2, PyOpenGL v3.1.0):

  File
"/usr/local/lib/python3.4/dist-packages/OpenGL/GLES2/VERSION/GLES2_2_0.py",
line 370, in glGetAttribLocation
    if name[-1] != _NULL_8_BYTE:
NameError: name '_NULL_8_BYTE' is not defined


Which seems straightforward enough -- it looks like
OpenGL/GLES2/VERSION/GLES2_2_0.py is missing an import. Adding the
following line sorts it out:

from OpenGL._bytes _NULL_8_BYTE

--047d7bea31c4c637e6050ad906f0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;m running into the following error (Python 3.4.=
2, PyOpenGL v3.1.0):<br></div><br>=C2=A0 File &quot;/usr/local/lib/python3.=
4/dist-packages/OpenGL/GLES2/VERSION/GLES2_2_0.py&quot;, line 370, in glGet=
AttribLocation<br>=C2=A0 =C2=A0 if name[-1] !=3D _NULL_8_BYTE:<br>NameError=
: name &#39;_NULL_8_BYTE&#39; is not defined<br><br><br>Which seems straigh=
tforward enough -- it looks like OpenGL/GLES2/VERSION/GLES2_2_0.py is missi=
ng an import. Adding the following line sorts it out:<br><br>from OpenGL._b=
ytes _NULL_8_BYTE<br><div><br></div></div>

--047d7bea31c4c637e6050ad906f0--


--===============8625962251644394431==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
--===============8625962251644394431==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel

--===============8625962251644394431==--