Re: TypeError: 'NoneType' object is not callable

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 12-05-23 03:34 PM, Wilkes, Edward D (Ed) wrote:
>
> Hello, I am working on a special build of Python 2.7.3 to run the 
> pizza.py package from Sandia National Laboratories. I am working on a 
> DL585 machine with CentOS 5.2 operating system and Intel 11.1/059 
> compilers. The following packages are required to be installed in Python:
>
> tcl/8.5.11, tk/8.5.11, Togl/2.0, PIL/1.1.7, PyOpenGL/3.0.1, 
> pexpect/2.4, Pmw/1.3.2, NumPy/1.6.1, SciPy/0.10.1
>
> Each of the packages was built from sources and installed according to 
> the instruction on the pizza.py web page and import tests were done to 
> verify the packages can be imported. This Python build was placed in 
> the default path and several pizza.py examples were tried. Some of 
> these use the “gl” tool which opens and works with OpenGL objects. 
> These examples, however, fail as follows:
>
> <type ‘exceptions.TypeError’> ‘NoneType’ object is not callable 
> <traceback object at 0xdedaab8>
>
> TypeError’> with value: ‘NoneTye object is not callable
>
> error on line 31 of file ./test_cdata.py g = gl(c)
>
> error on line 182 of file …/pizza-21May12/src/gl.py glutInit()
>
> error on line 323 of file 
> …/lib/python2.7/site-packages/OpenGL/GLUT/special.py _/base/_glutInit( 
> ctypes.byref(count), holder )
>
> The file special.py comes from PyOpenGL 3.0.1 which installs it at 
> this location in Python. It contains the definition for glutInit() as 
> well as _/base/_glutInit() and __glutInitWithExit which appears to be 
> defined as None except for nt platforms. The glutInit() definition 
> provides default arguments when it is called with none.
>
> So I am unclear what is causing the NoneType exception to be raised 
> and what can be done to resolve the problem. Any help would be 
> appreciated.
>
Can you confirm that you have your platform's GLUT/FreeGLUT package 
installed? PyOpenGL is looking for the glutInit entry point in the GLUT 
DLL and finding nothing.

HTH,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.