Q: Error output:

  . File "/home/msarahan/Downloads/EMAN2/bin/e2.py", line 38, in <module>
  . from emimage import *
 File "/home/msarahan/Downloads/EMAN2/lib/emimage.py", line 36, in <module>
  . from emimage2d import *
 File "/home/msarahan/Downloads/EMAN2/lib/emimage2d.py", line 37, in <module>
  . from OpenGL import GL,GLU,GLUT
 File "/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4/lib/python2.5/site-packages/PyOpenGL-3.0.0b5-py2.5.egg/OpenGL/GL/__init__.py", line 2, in <module>
  . from OpenGL.raw.GL import *
 File "/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4/lib/python2.5/site-packages/PyOpenGL-3.0.0b5-py2.5.egg/OpenGL/raw/GL/__init__.py", line 6, in <module>
  . from OpenGL.raw.GL.constants import *
 File "/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4/lib/python2.5/site-packages/PyOpenGL-3.0.0b5-py2.5.egg/OpenGL/raw/GL/constants.py", line 7, in <module>
  . from OpenGL import platform, arrays
 File "/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4/lib/python2.5/site-packages/PyOpenGL-3.0.0b5-py2.5.egg/OpenGL/platform/__init__.py", line 20, in <module>
  . import os, sys, pkg_resources
zlib.error: Error -3 while decompressing data: invalid block type 

System details: Intel Macbook Pro, Ubuntu 8.10 i386

Any ideas?

Solution:

It looks like the PyOpenGL site-package comes with Python in EMAN2 can not be recognized by Ubuntu. My solution is basically reinstall the PyOpenGL. You can follow these step:

1. Set environment variables to make eman2's python interpreter your default python interpreter.

export PYTHON_VERSION=2.5

export PYTHON_ROOT=/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4

export PATH=${PYTHON_ROOT}/bin:${PATH}

Then type "which python", you should see things like:

/home/msarahan/Downloads/EMAN2/python/Python-2.5.1-ucs4/bin/python

2. Download PyOpenGL source package:

Download PyOpenGL-3.0.0b6.tar.gz from http://ncmi.bcm.edu/ncmi/software/counter_222/software_91

3. Install PyOpenGL.

tar xvzf PyOpenGL-3.0.0b6.tar.gz

cd PyOpenGL-3.0.0b6

python setup.py install

Then you are done. e2.py and other eman2 GUI program should be available.

EMAN2/FAQ/Ubuntu_8.10_error_running_e2.py (last edited 2009-08-12 18:07:19 by bcm-10-134)