Python/Tk in Xplor-NIH
Yufeng <CrystalAtom <at> yahoo.com>
2005-05-18 19:02:15 GMT
Hi Xplorers,
A question about python/Tk interface of Xplor-NIH.
I am testing xplor-nih v.2.10. Installation follows the instructions
in the INSTALL file. After installation, testDist
gives positive results, claiming all the 145 tests of xplor,
21 tests of python and 5 tests of tcl passed. But when I run
xplor -py -pydoc -g
It gives an ImportError for module Tkinter, which apparently is
the problem of search path setting, which again is a list of
['', '/home/tong/calxplor','/usr/local/xplor/bin.Linux_2.4_i686',
'/usr/local/xplor/python',
'/usr/local/xplor/python/wrappers',
'/usr/local/xplor/python/dist',
'/usr/local/xplor/python/bin.Linux_2.4_i686',
'/usr/local/xplor/python/dist/lib/python23.zip',
'/usr/local/xplor/python/dist/lib/python2.3',
'/usr/local/xplor/python/dist/lib/python2.3/plat-linux2',
'/usr/local/xplor/python/dist/lib/python2.3/lib-tk',
'/usr/local/xplor/python/dist/lib/python2.3/lib-dynload']
To my supprise, I didn't see .../python/disk/lib/...
directories in the xplor package I installed, which is downloaded
freshly from NIH site. And I am not sure why there should be
a empty search path as the first element of the list.
For xplor v2.9.4a, it does not gives the same error messege
when I invoke the command, but Tkinter is still not avaible
in the search paths.
So my two questions:
1. How to fix it? Or how to setup in xplor the python distribution
already installed in the system?
2. Should the testDist include a routine to test the graphics interface?
Yufeng
Yufeng Tong
Dept. Physiol. & Biophys.
Case Western Reserve Univ.
Cleveland, Ohio 44106
Tel: (216)368-8654 (O)