TypeError: 'NoneType' object is not callable

"Wilkes, Edward D (Ed)" <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <80695723BA764A40A95A2730536F5D360128A7B2@CVCV0XI2K.na.corning.com>
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.

 

Thanks, Ed Wilkes

------------------------------------------------------------------------------
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
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
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.