From: simon stockes (simonstockes_at_yahoo.fr)
Date: Thu Jan 08 2004 - 17:06:00 CST

Hi All,

I'd just installed vmd-1.8.2 on mac osx and I got the following error
when I launched "gopython". Here are some reflexions and questions
about the problem :

vmd > gopython
Info) Starting Python...
Info) Text interpreter now Python
Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "/sw/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
     import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: Failure linking new module

* It seems vmd has its own Python Interpreter (build-in during
compilation).
>>> import sys
>>> sys.version
'2.2.1 (#1, Sep 23 2002, 10:06:53) \n[GCC 2.95.2 19991024 (release)]'

* Indeed, I have no Python 2.2.1 interpreter on my machine, only a
Python2.2.2
>>> import sys
>>> sys.version
'2.2.2 (#1, 04/19/03, 23:43:12) \n[GCC Apple cpp-precomp 6.14]'

* I think the 2.2.1 interpreter find external python libraries in my
fink 2.2.2 distribution cause the sys.path of vmd give me this result :
>>> sys.path
['/Applications/Sciences/vmd-1.8.2/VMD
1.8.2.app/Contents/Resources/VMD.app/Contents/MacOS/../../../../vmd',
'/Applications/Sciences/vmd-1.8.2/VMD
1.8.2.app/Contents/vmd/scripts/python', '/sw/lib/python2.2',
'/sw/lib/python2.2/plat-darwin', '/sw/lib/python2.2/lib-tk',
'/sw/lib/python2.2/lib-dynload', '/sw/lib/python2.2/site-packages',
'/sw/lib/python2.2/site-packages/Numeric']

*I have question : How vmd set these paths. I don't remenber to give
this information ?

*As you can see the '/sw/lib/python2.2/lib-dynload' path is present in
the list and contain _tkinter.so. So, why the error with 'import
_tkinter' with 'gopython' ?

Read you,

Simon.