[ pyopengl-Bugs-2872257 ] glutInit fails on windows 64-bit

"SourceForge.net" <[email protected]> Mon, 6 Jun 2011 13:52:24 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #2872257, was opened at 2009-10-03 15:29
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2872257&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: GLUT
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jason G (reirrac)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: glutInit fails on windows 64-bit

Initial Comment:
On a 64-bit Windows 7 machine, GLUT fails on glutInit with the following traceback:

Traceback (most recent call last):
  File "C:\Programming\NE\HyperNEAT\HyperNEAT_Visualizer\src\HyperNEATVisualizer.py", line 287, in <module>
    visualizer.main()
  File "C:\Programming\NE\HyperNEAT\HyperNEAT_Visualizer\src\HyperNEATVisualizer.py", line 233, in main
    glutInit(sys.argv)
  File "c:\Python26\Lib\site-packages\OpenGL\GLUT\special.py", line 322, in glutInit
    _base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable


I tried copying the glut and gle dll's to my c:\windows\system32\ directory but that didn't change anything.

If I comment out the glutInit function, I get this:

Traceback (most recent call last):
  File "C:\Programming\NE\HyperNEAT\HyperNEAT_Visualizer\src\HyperNEATVisualizer.py", line 287, in <module>
    visualizer.main()
  File "C:\Programming\NE\HyperNEAT\HyperNEAT_Visualizer\src\HyperNEATVisualizer.py", line 240, in main
    glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH)
  File "c:\Python26\Lib\site-packages\OpenGL\platform\baseplatform.py", line 336, in __call__
    self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInitDisplayMode, check for bool(glutInitDisplayMode) before calling

I get the same error with any of the NeHe opengl lesson code.  It works fine on my linux machine and my windows 32-bit machine, so I think it's something to do with windows 64-bit.  Are there 64-bit versions of the glut and gle DLLs?

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

Comment By: Nobody/Anonymous (nobody)
Date: 2011-06-06 13:52

Message:
7SwI1Z  <a href="http://wapdljbblpji.com/">wapdljbblpji</a>,
[url=http://peiyilrdvqdr.com/]peiyilrdvqdr[/url],
[link=http://aaslyurencjo.com/]aaslyurencjo[/link],
http://xcvfolcrnhji.com/

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

Comment By: Nobody/Anonymous (nobody)
Date: 2011-04-07 14:32

Message:
530L0R  <a href="http://pqfqsxbkqaxt.com/">pqfqsxbkqaxt</a>,
[url=http://tbabnelmqqbw.com/]tbabnelmqqbw[/url],
[link=http://cjxvuqkghtdd.com/]cjxvuqkghtdd[/link],
http://czlwxnvoiuwm.com/

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

Comment By: Christoph Gohlke (cjgohlke)
Date: 2009-11-13 05:55

Message:
I had the same problem on Python 2.6.4 64-bit, PyOpenGL-3.0.1b1, Windows 7.
Turned out there was a 32-bit glut32.dll file in the PATH, which  was used
instead of the correct 64-bit glut32.dll in
Python26\Lib\site-packages\OpenGL\DLLS. Everything worked once I cleaned
the PATH environment variable. You can download a 64-bit version of
PyOpenGL for Windows at
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl>

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

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

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net