[Chimera-users] Importing Midas within non-Chimera python installation

Drew Bryant drew.h.bryant at gmail.com
Thu Mar 5 12:21:32 PST 2009


Hello,

As part of a larger python-based project I'm working on, I need to do
automated image generation with Chimera.  How can the Midas module (no
need for any gui components) be imported into a non-chimera
installation of python?  I think this is a little more complicated
than just setting the PYTHONPATH to point at the chimera files,
because of the compiled shared objects.  For example, my attempt at
importing Midas (after adding CHIMERA/share   to the PYTHON PATH)
raises:

/home/dbryant/CHIMERA/share/Midas/__init__.py in <module>()

/home/dbryant/CHIMERA/share/chimera/__init__.py in <module>()

<type 'exceptions.ImportError'>: libgfxinfo.so: cannot open shared
object file: No such file or directory

Currently I'm using a non-gui daily build of Chimera for 64-bit Linux
and calling the chimera binary via the shell (which works), but I need
to be able to pass parameters to the script being run at the command
line.

Thanks,
Drew Bryant



More information about the Chimera-users mailing list