<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hi Jon,</div><div><br></div><div>Maybe the trick is Chimera uses environment variable DYLD_FALLBACK_LIBRARY_PATH instead of LD_LIBRARY_PATH or DYLD_LIBRARY_PATH. Here's the Chimera Mac start-up C++ code that sets the environment variables</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/dist/mac/chimera-aqua.cpp?rev=36787">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/dist/mac/chimera-aqua.cpp?rev=36787</a></div><div><br></div><div>and a comment on this code change says "Use DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH, so system frameworks will get system versions of shared libraries."</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div><br></div><div><br></div><div><br></div><div>On Mar 15, 2013, at 2:49 PM, Jonathan Williams wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font face="Courier">Hello,</font><div><font face="Courier"><br></font></div><div><font face="Courier">I am currently trying to import Chimera modules into a non-Chimera python installation. I have referenced previous messages from this mailing list (<a href="http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-March/003620.html">http://www.cgl.ucsf.edu/pipermail/chimera-users/2009-March/003620.html</a>), and have added the relevant paths to Chimera in the LD_LIBRARY_PATH, PYTHONPATH, and CHIMERA environment variables.</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">However when I try to import Chimera, Midas or "import chimeraInit" followed by "chimeraInit.init([])" I receive the following error:</font></div><div><font face="Courier"><br></font></div><div><div><font face="Courier">>>> import chimeraInit</font></div><div><font face="Courier">>>> chimeraInit.init([])</font></div><div><font face="Courier">Traceback (most recent call last):</font></div><div><font face="Courier"> File "<stdin>", line 1, in <module></font></div><div><font face="Courier"> File "/Applications/Chimera.app/Contents/Resources/share/chimeraInit.py", line 594, in init</font></div><div><font face="Courier"> import chimera</font></div><div><font face="Courier"> File "/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py", line 16, in <module></font></div><div><font face="Courier"> from _chimera import BBox, Camera, Color, ColorGroup, DirectionalLight, LODControl, Lens, LensViewer, Light, Material, MaterialColor, Model, NoGuiViewer, OGLFont, OSLAbbreviation, OpenModels, OpenState, PathFinder, PixelMap, Plane, Point, PositionalLight, Selectable, SharedState, SpotLight, Sphere, Texture, TextureColor, TrackChanges, Vector, Viewer, X3DScene, Xform</font></div><div><font face="Courier">ImportError: dlopen(/Applications/Chimera.app/Contents/Resources/lib/_chimera.so, 2): Symbol not found: __cg_TIFFClientOpen</font></div><div><font face="Courier"> Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO</font></div><div><font face="Courier"> Expected in: /Applications/Chimera.app/Contents/Resources/lib/libTIFF.dylib</font></div><div><font face="Courier"> in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO</font></div><div><font face="Courier">>>> </font></div><div><font face="Courier"><br></font></div><div><font face="Courier">I am using MacOSX 10.8.2, Python 2.7.3, and Chimera 1.7 (build 38197) for 64bit Mac.</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">Any help or advice would be greatly appreciated,</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">Jon Williams</font></div><div apple-content-edited="true"><br><div><br></div>
</div>
<br></div></div>_______________________________________________<br>Chimera-users mailing list<br><a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br></blockquote></div><br></body></html>