[PyOpenGL-Users] Error in using PyOpenGL with LAMPPS Pizza.py on Centos 4.4
Brought to you by:
mcfletch
From: James J. R. <jjr...@ya...> - 2007-02-15 23:53:31
|
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: Pizza.py (1 Oct 2006), a toolkit written in Python type ? for help, CTRL-D to quit Loading tools ... Traceback (most recent call last): File "./pizza.py", line 348, in ? exec "from %s import %s" % (tool,tool) File "<string>", line 1, in ? File "/home/jjramsey/TarballsAndRPMs/pizza-31Jan07/src/gl.py", line 128, in ? from OpenGL.Tk import * File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/Tk/__init__.py", line 13, in ? from OpenGL.GL import * File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/GL/__init__.py", line 2, in ? from OpenGL.raw.GL import * File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/raw/GL/__init__.py", line 6, in ? from OpenGL.raw.GL.constants import * File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/raw/GL/constants.py", line 7, in ? from OpenGL import platform, arrays File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/arrays/__init__.py", line 19, in ? from OpenGL.arrays.arraydatatype import * File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/arrays/arraydatatype.py", line 9, in ? class ArrayDatatype( object ): File "/usr/lib/python2.3/site-packages/PyOpenGL-3.0.0a5-py2.3.egg/OpenGL/arrays/arraydatatype.py", line 43, in ArrayDatatype from_param = classmethod( logs.logOnFail( from_param, log ) ) 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 ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |