[ pyopengl-Bugs-3081957 ] OpenGL.error.NullFunctionError: Attempt to call an undefined
"SourceForge.net" <[email protected]> Mon, 18 Oct 2010 12:57:35 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3081957, was opened at 2010-10-06 03:11
Message generated for change (Comment added) made by mcfletch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3081957&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: OpenGLContext v2.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Greg Hazel (ghazel)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: OpenGL.error.NullFunctionError: Attempt to call an undefined
Initial Comment:
Trying to run this simple example here:
http://blog.vrplumber.com/index.php?/archives/2324-Sphere-rendering-with-numpy....html
I get:
C:\Users\Greg\Downloads>shader_sphere.py
WARNING:OpenGL.arrays.numpymodule:Unable to load numpy_formathandler accelerator from OpenGL_accelerate
WARNING:context:Python Image Library (PIL) not installed, no Image support available
http://www.pythonware.com/products/pil/index.htm
WARNING:context:Unable to load node implementation for MMImageTexture: 'module' object has no attribute 'MMImageTexture'
Traceback (most recent call last):
File "C:\Users\Greg\Downloads\shader_sphere.py", line 116, in <module>
TestContext.ContextMainLoop()
File "C:\Python27\lib\site-packages\openglcontext-2.1.0a11-py2.7.egg\OpenGLContext\glutcontext.py", line 154, in ContextMainLoop
render = cls( *args, **named)
File "C:\Python27\lib\site-packages\openglcontext-2.1.0a11-py2.7.egg\OpenGLContext\glutcontext.py", line 30, in __init__
glutInitDisplayMode( self.DISPLAYMODE )
File "C:\Python27\lib\site-packages\pyopengl-3.0.1-py2.7.egg\OpenGL\platform\baseplatform.py", line 340, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInitDisplayMode, check for bool(glutInitDisplayMode) before calling
----------------------------------------------------------------------
>Comment By: Mike C. Fletcher (mcfletch)
Date: 2010-10-18 08:57
Message:
Then you will need a 64-bit build of GLUT, I'm guessing. FreeGLUT or
GLUT32 should work.
----------------------------------------------------------------------
Comment By: Greg Hazel (ghazel)
Date: 2010-10-18 05:31
Message:
This is Windows 7 x64 with 64-bit Python. The PyOpenGL installer does not
work with 64 bit Python (no installers do. see:
http://bugs.python.org/issue6792 )
Instead I did: easy_install pyopengl
----------------------------------------------------------------------
Comment By: Mike C. Fletcher (mcfletch)
Date: 2010-10-18 05:27
Message:
You are missing GLUT, though why I can't say, as it is supposed to be
installed with PyOpenGL in the windows installer.
----------------------------------------------------------------------
Comment By: Greg Hazel (ghazel)
Date: 2010-10-06 03:13
Message:
I installed PIL, but I still get:
C:\Users\Greg\Downloads>shader_sphere.py
WARNING:OpenGL.arrays.numpymodule:Unable to load numpy_formathandler
accelerator from OpenGL_accelerate
Traceback (most recent call last):
File "C:\Users\Greg\Downloads\shader_sphere.py", line 116, in <module>
TestContext.ContextMainLoop()
File
"C:\Python27\lib\site-packages\openglcontext-2.1.0a11-py2.7.egg\OpenGLContext\glutcontext.py",
line 154, in ContextMainLoop
render = cls( *args, **named)
File
"C:\Python27\lib\site-packages\openglcontext-2.1.0a11-py2.7.egg\OpenGLContext\glutcontext.py",
line 30, in __init__
glutInitDisplayMode( self.DISPLAYMODE )
File
"C:\Python27\lib\site-packages\pyopengl-3.0.1-py2.7.egg\OpenGL\platform\baseplatform.py",
line 340, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function
glutInitDisplayMode, check for bool(glutInitDisplayMode) before calling
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3081957&group_id=5988
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net