Thread: [PyOpenGL-Users] glNewList ArgumentError - wrong type
Brought to you by:
mcfletch
From: Steven <ste...@gm...> - 2012-04-29 20:02:04
Attachments:
smime.p7s
|
Hi, I'm using py27-opengl 3.0.1_0 and py27-opengl-accelerate 3.0.1_0 on MacOS 10.7.3 64 bit via macports. I'm also using wxWidgets-devel 2.9.3_0+sdl if that's relevant. I've installed the wxgui component of gnuradio and am getting the following error when I try and use an openGL widget: Traceback (most recent call last): File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 187, in _on_paint for fcn in self._draw_fcns: fcn[1]() File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 58, in draw GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE) ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type The code is at http://pastebin.com/ezLmgYv2 Thanks, Steven. |
From: Alejandro S. <as...@gm...> - 2012-05-01 15:25:18
|
Hi Steven, 2012/4/29 Steven <ste...@gm...> > Hi, > > I'm using py27-opengl 3.0.1_0 and py27-opengl-accelerate 3.0.1_0 on MacOS > 10.7.3 64 bit via macports. I'm also using wxWidgets-devel 2.9.3_0+sdl if > that's relevant. > I've installed the wxgui component of gnuradio and am getting the > following error when I try and use an openGL widget: > > Traceback (most recent call last): > File > "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", > line 187, in _on_paint > for fcn in self._draw_fcns: fcn[1]() > File > "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", > line 58, in draw > GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE) > ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type > > The code is at http://pastebin.com/ezLmgYv2 > > Please make sure GL.glGenLists is returning what you expect it to return (namely an unsigned int). On some platforms I've seen PyOpenGL bindings not returning the generated value but rather expecting to assign it to the second parameter in a similar fashion than that of the C API. Hope this helps! Alejandro.- ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > -- http://alejandrosegovia.net |
From: Steven <ste...@gm...> - 2012-05-10 20:06:11
Attachments:
smime.p7s
|
On 1 May 2012, at 16:24, Alejandro Segovia wrote: > Hi Steven, > > 2012/4/29 Steven <ste...@gm...> > Hi, > > I'm using py27-opengl 3.0.1_0 and py27-opengl-accelerate 3.0.1_0 on MacOS 10.7.3 64 bit via macports. I'm also using wxWidgets-devel 2.9.3_0+sdl if that's relevant. > I've installed the wxgui component of gnuradio and am getting the following error when I try and use an openGL widget: > > Traceback (most recent call last): > File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 187, in _on_paint > for fcn in self._draw_fcns: fcn[1]() > File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 58, in draw > GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE) > ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type > > The code is at http://pastebin.com/ezLmgYv2 > > > Please make sure GL.glGenLists is returning what you expect it to return (namely an unsigned int). On some platforms I've seen PyOpenGL bindings not returning the generated value but rather expecting to assign it to the second parameter in a similar fashion than that of the C API. > > Hope this helps! > Alejandro.- Hi Alejandro, self._grid_compiled_list_id = GL.glGenLists(1) print self._grid_compiled_list_id returns 'None' So something seems amiss. Regards, Steven. |
From: Steven <ste...@gm...> - 2012-05-15 14:46:13
Attachments:
smime.p7s
|
On 10 May 2012, at 21:05, Steven wrote: > > On 1 May 2012, at 16:24, Alejandro Segovia wrote: > >> Hi Steven, >> >> 2012/4/29 Steven <ste...@gm...> >> Hi, >> >> I'm using py27-opengl 3.0.1_0 and py27-opengl-accelerate 3.0.1_0 on MacOS 10.7.3 64 bit via macports. I'm also using wxWidgets-devel 2.9.3_0+sdl if that's relevant. >> I've installed the wxgui component of gnuradio and am getting the following error when I try and use an openGL widget: >> >> Traceback (most recent call last): >> File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 187, in _on_paint >> for fcn in self._draw_fcns: fcn[1]() >> File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 58, in draw >> GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE) >> ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type >> >> The code is at http://pastebin.com/ezLmgYv2 >> >> >> Please make sure GL.glGenLists is returning what you expect it to return (namely an unsigned int). On some platforms I've seen PyOpenGL bindings not returning the generated value but rather expecting to assign it to the second parameter in a similar fashion than that of the C API. >> >> Hope this helps! >> Alejandro.- > > Hi Alejandro, > > self._grid_compiled_list_id = GL.glGenLists(1) > print self._grid_compiled_list_id > returns > > 'None' > > So something seems amiss. > > Regards, > > Steven. > I have raised bug 3526361 for this issue https://sourceforge.net/tracker/?func=detail&aid=3526361&group_id=5988&atid=105988 |
From: Mike C. F. <mcf...@vr...> - 2012-05-16 02:53:06
|
On 12-05-10 04:05 PM, Steven wrote: ... > Hi Alejandro, > > self._grid_compiled_list_id = GL.glGenLists(1) > print self._grid_compiled_list_id > returns > > 'None' > > So something seems amiss. Indeed. glGenLists doesn't have any particular wrapper code. It returns a simple uint given a count. My guess would be either that your OS-X implementation doesn't support display lists in the mode you are using, or that you haven't yet got an OpenGL context (or something of that nature). I've tested glGenLists with PyOpenGL head on Linux. I don't have an OS-X machine on which to test, however. Good luck, Mike |