Hi All-
I've been using a shell script called 'macpymol' to start PyMOL from
the command line under OS X (pre-Tiger):
#!/bin/sh
/Applications/PyMOLX11Hybrid.app/Contents/MacOS/PyMOL $*
usage: macpymol file.pdb
I noticed if I use Fink to install an application under OS X (Tiger)
that requires image libraries to be complied and installed (e.g. /sw/
lib/libJPEG.dylib), PyMOL fails to start using the above command and
gives the following error output (from the terminal):
File "/Applications/PyMOLX11Hybrid.app/pymol/modules/pymol/
__init__.py", line 90, in ?
import pymol
File "/Applications/PyMOLX11Hybrid.app/pymol/modules/pymol/
__init__.py", line 306, in ?
import _cmd
ImportError: Failure linking new module: /Applications/
PyMOLX11Hybrid.app/pymol/modules/pymol/_cmd.so: Symbol not found:
__cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/ImageIO
Expected in: /sw/lib/libJPEG.dylib
If I uninstall all Fink installed image libraries (jpeg, png, etc.),
PyMOL starts w/ no problems. If I click directly on the
PyMOLX11Hybrid.app icon, PyMOL starts w/ no problems.
Any idea of how to resolve this so that I can start PyMOL from the
command line? I think it could have something to do with Fink's /sw/
bin/init.csh adding some /sw info near the beginning of my $PATH.
Many thanks,
Doug