[ pyopengl-Bugs-3081957 ] OpenGL.error.NullFunctionError: Attempt to call an undefined
SourceForge.net <[email protected]> Sun, 13 Nov 2011 10:11:19 -0800
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3081957, was opened at 2010-10-06 00:11
Message generated for change (Comment added) made by nobody
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: Nobody/Anonymous (nobody)
Date: 2011-11-13 10:11
Message:
NseUhC <a href="http://lzeolwuxwnkm.com/">lzeolwuxwnkm</a>,
[url=http://isnxfwobypgy.com/]isnxfwobypgy[/url],
[link=http://fifzqhtkwghn.com/]fifzqhtkwghn[/link],
http://zhxlltbegmuq.com/
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2011-07-30 20:09
Message:
WlVCtk <a href="http://pyqcytqpdtdo.com/">pyqcytqpdtdo</a>,
[url=http://wqfrbljyhpbi.com/]wqfrbljyhpbi[/url],
[link=http://rrxdpfshtvww.com/]rrxdpfshtvww[/link],
http://fiormevwqmyp.com/
----------------------------------------------------------------------
Comment By: Przemysław Lib (przemoli)
Date: 2011-06-20 06:44
Message:
Sorry. It should be freeglut.dll. import statement is good. Check freeglut
website to get compiled Win libraries, but remeber to copy them also to
SysWOW64.
----------------------------------------------------------------------
Comment By: Przemysław Lib (przemoli)
Date: 2011-06-19 23:23
Message:
Oh, and check if you have glu32.dll in Windows/SysWOW64 (if not copy it
from Windows/System32), it can help (as i 64bit system there are too
folders for libs, and sometimes Win do not care to check them both)
----------------------------------------------------------------------
Comment By: Przemysław Lib (przemoli)
Date: 2011-06-19 22:57
Message:
Hi! This source code do not import GLUT!
http://bazaar.launchpad.net/~mcfletch/openglcontext/trunk/annotate/head%3A/tests/shader_sphere.py
Do you add:
from OpenGL.GLUT import *
in your code?
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2011-06-19 14:17
Message:
7mcw9D <a href="http://dxgzfsgwjqfn.com/">dxgzfsgwjqfn</a>,
[url=http://fcfughgxpein.com/]fcfughgxpein[/url],
[link=http://ccipjepamzzz.com/]ccipjepamzzz[/link],
http://apaokgbvwuyu.com/
----------------------------------------------------------------------
Comment By: Mike C. Fletcher (mcfletch)
Date: 2010-10-18 05: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 02: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 02: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 00: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
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel