[ pyopengl-Bugs-3526361 ] GL.glGenLists not returning int on OSX 64 bit

SourceForge.net <[email protected]> Thu, 28 Mar 2013 09:23:29 -0700
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #3526361, was opened at 2012-05-13 11:38
Message generated for change (Comment added) made by b001ean
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3526361&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: GL.glGenLists not returning int on OSX 64 bit

Initial Comment:
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'

----------------------------------------------------------------------

Comment By: Boolean (b001ean)
Date: 2013-03-28 09:23

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3526361&group_id=5988

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net