Re: [PyOpenGL-Users] _base_glutInit( ctypes.byref(count), holder ) TypeError: 'NoneType' object is
Brought to you by:
mcfletch
From: Alejandro S. <as...@gm...> - 2010-01-30 02:23:01
|
Hi John, On Jan 29, 2010, at 8:22 PM, John Lutz <joh...@gm...> wrote: > Hey Guys!, > > Does anyone know what the fix for the following error is: > > C:\dev\PyOpenGL-Demo-3.0.1b1\PyOpenGL-Demo\NeHe>python > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import lesson5.py > Hit ESC key to quit. > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "lesson5.py", line 240, in <module> > main() > File "lesson5.py", line 195, in main > glutInit(sys.argv) > File "C:\Python25\Lib\site-packages\OpenGL\GLUT\special.py", line > 323, in glutInit > _base_glutInit( ctypes.byref(count), holder ) > TypeError: 'NoneType' object is not callable > >>> > > I am running 2.5 on XP with NVidia drivers. I have GLUT, GLU, OpenGL > installed on the system. > I can get NeHe samples working from within VC++ 2010, just not Python. This might sound trivial, but are you importing package "ctypes" from within lesson5.py? It seems as if it didn't know what ctypes.byref is. Best regards, Alejandro.- > > Thanks!, > John > > --- > --- > --- > --------------------------------------------------------------------- > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |