e2display.py not running

245 views
Skip to first unread message

Christian Bortolini

unread,
Jan 4, 2013, 10:32:49 AM1/4/13
to em...@googlegroups.com
Hello,

I have this version of EMAN2:

EMAN 2.0.6 (CVS 2012/08/13 15:17:21)
Your EMAN2 is running on:  Ubuntu 12.04.1 LTS 3.2.0-35-generic x86_64
Your Python version is:  2.7.2

e2speedtest.py works, but e2display.py is not running. The output is:

christian@Edoardo:~$ e2display.py
Traceback (most recent call last):
  File "/home/christian/EMAN2/bin/e2display.py", line 35, in <module>
    from emimage import EMImageWidget,EMWidgetFromFile
  File "/home/christian/EMAN2/lib/emimage.py", line 36, in <module>
    from OpenGL import GL,GLU,GLUT
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/GL/__init__.py", line 2, in <module>
    from OpenGL.raw.GL import *
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/raw/GL/__init__.py", line 6, in <module>
    from OpenGL.raw.GL.constants import *
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/raw/GL/constants.py", line 7, in <module>
    from OpenGL import platform, arrays
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/platform/__init__.py", line 36, in <module>
    _load()
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/platform/__init__.py", line 27, in _load
    plugin_class = plugin.load()
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/plugins.py", line 14, in load
    return importByName( self.import_path )
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/plugins.py", line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/platform/glx.py", line 8, in <module>
    class GLXPlatform( baseplatform.BasePlatform ):
  File "/home/christian/EMAN2/Python/lib/python2.7/site-packages/OpenGL/platform/glx.py", line 20, in GLXPlatform
    raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', 'GL: cannot open shared object file: No such file or directory', 'GL', None)


My desktop pc is brand new, but it has no graphic card. I have tried to install further libraries, but it did not solve the problem. I have also tried these instructions (http://blake.bcm.edu/emanwiki/EMAN2/FAQ/Ubuntu_8.10_error_running_e2.py).
Can anyone help me?
Thank you in advance!

Christian


Lin Cai

unread,
Jan 4, 2013, 11:40:45 AM1/4/13
to em...@googlegroups.com

did you follow the webpage to install pyopengl?
in which step you get problems.


在 2013年1月4日星期五UTC-6上午9时32分49秒,Christian Bortolini写道:

Ludtke Steven

unread,
Jan 4, 2013, 2:06:53 PM1/4/13
to em...@googlegroups.com
EMAN2 uses OpenGL extensively. You really should have an Nvidia or ATI card in your machine if at all possible. Integrated Intel graphics may be ok as well now, but in any of the 3 cases you need to install the correct OpenGL drivers. If you have a generic graphics card not supporting acceleration, you will need to have Mesa installed (software rendering).

--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2

Christian Bortolini

unread,
Jan 7, 2013, 6:48:02 AM1/7/13
to em...@googlegroups.com
Hello,

I had installed pyOpenGL by following the website instructions, but it wasn't working. I have just installed the Mesa package " libgl1-mesa-swx11-dev " and now it is finally working!

Thank you very much for your help and suggestions!




2013/1/4 Ludtke Steven <slud...@gmail.com>
Reply all
Reply to author
Forward
0 new messages