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'
I am running a 32 bit OS (Leopard 10.5.8) and I have this exact same problem, so it is not a 64 bit only issue.
I found an issue with the (lack of) implicit OpenGL context in gr-wxgui's plotter_base. This bug has been fixed here: https://github.com/balint256/gnuradio/commit/5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e