Re: [COOT] PyGTK in standalone OS X builds
On Fri, May 14, 2010 at 2:06 PM, William G. Scott < wgsc...@chemistry.ucsc.edu> 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
Re: [COOT] PyGTK in standalone OS X builds
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 Nathaniel Echols wrote: > When I use the 0.6.1 package from Bill's web site, I get this error when I > try to start the Python scripting GUI: > > COOT_PYTHON_DIR was defined to be /usr/local/xtal/coot64/share/coot/python > but no PyGtk and hence no coot_gui. > > Not sure what to do about this, because it appears to have the module > installed: > > nat:~ > ls /usr/local/xtal/coot64/lib/python2.6/site-packages/ > README cairo gtk-2.0 numpy numpy-1.3.0-py2.6.egg-info pygtk.pth > pygtk.py pygtk.pyo > > thanks, > Nat >
[COOT] PyGTK in standalone OS X builds
When I use the 0.6.1 package from Bill's web site, I get this error when I try to start the Python scripting GUI: COOT_PYTHON_DIR was defined to be /usr/local/xtal/coot64/share/coot/python but no PyGtk and hence no coot_gui. Not sure what to do about this, because it appears to have the module installed: nat:~ > ls /usr/local/xtal/coot64/lib/python2.6/site-packages/ README cairo gtk-2.0 numpy numpy-1.3.0-py2.6.egg-info pygtk.pth pygtk.py pygtk.pyo thanks, Nat