From: simon stockes (
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/", 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
>>> 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
>>> 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', '/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',

*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 So, why the error with 'import
_tkinter' with 'gopython' ?

Read you,