Re: [PyOpenGL-Users] Error in using PyOpenGL with LAMPPS Pizza.py on Centos 4.4
Brought to you by:
mcfletch
From: Thomas H. <th...@ct...> - 2007-02-16 17:37:53
|
[I'm CC'd you personally because I have constant problems posting to the pyopengl-users list. Also I cannot subscribe] James J. Ramsey schrieb: > Pizza.py > <http://www.cs.sandia.gov/~sjplimp/pizza.html> uses > PyOpenGL for some of its visualization, but I can't > get it to work. I'm using CentOS 4.4. > > I compiled PyOpenGL myself, or at least I think I did. > I untarred PyOpenGL-3.0.0a5.tar.gz, and ran > "./setup.py build_ext --force install". Before I did > that, I had installed the following: > > * Python 2.3.4 > * Setuptools 0.6c5 > * Numeric Python, version 23.3 > * Togl, version 1.7 > * PIL 1.1.4 > * FreeGLUT 2.2.0 > > All but Togl and Setuptools were installed by RPMs > compiled for CentOS. The "-devel" RPMs were installed > as well. I installed Togl from tarball using the usual > "./configure; make; make install", and "togl.h" ended > up in /usr/include. (I checked.) Setuptools was > installed from the setuptools-0.6c5-py2.3.egg package > from http://cheeseshop.python.org/pypi/setuptools. > > The error messages I get from running Pizza.py are as > follows: > ... > File > "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/logs.py", > line 45, in logOnFail > loggedFunction.__name__ = function.__name__ > TypeError: readonly attribute > The __name__ attribute of functions (or methods?) is readonly in Python 2.3. I think this has changed in 2.4 and 2.5; so it may be a good idea to change PyOpenGL to tolerate this. Thomas |