On Fri, May 14, 2010 at 2:06 PM, William G. Scott < [email protected]> wrote:
> Check /usr/local/xtal/coot64/bin/coot > > to see if I set $PYTHONPATH right. > > It should have /usr/local/xtal/coot64/lib/python2.6/site-packages/gtk-2.0 It does (and that path appears in sys.path). And I just discovered that I can call "import gtk" from a Python script run by Coot, but "import coot_python" fails (which means I can't access the GUI for adding buttons, menus, etc.). Also, the output of "otool -L /usr/local/xtal/coot64/bin/coot-real" includes this: /System/Library/Frameworks/Python.framework/Versions/2.6/Python which doesn't seem right, since Coot comes with and if I add "print sys.executable" to my script, I see the Python interpreter I normally use, not the coot executable. So it appears to be a linker error; I know I've seen this before, but I don't think it's something I can fix. thanks, Nat
