From: Axel Kohlmeyer (
Date: Mon Apr 02 2012 - 13:48:02 CDT

On Mon, Apr 2, 2012 at 12:28 PM, Albert <> wrote:
> Hello:
>   I started vmd in terminal by type vmd and then type gopython and it said:
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/soft/vmd-1.9.1/lib/vmd/scripts/python/", line 59, in
> <module>
>     import _tkinter # If this fails your Python may not be configured for Tk
> ImportError: No module named _tkinter
> However, I found that the _tiknter for python is already installed in my
> /usr/lib64/python2.7/lib-dynload/
> /usr/lib64/python2.7/lib-tk
> /usr/lib/python2.7/site-packages/Pmw
> /usr/lib64/python3.1/lib-dynload/
> /usr/lib64/python3.1/tkinter
> I added the following line to bin/vmd.csh
> setenv PYTHONHOME /usr/lib64/python2.7
> and made the following modification:
> setenv defaultvmddir /soft/vmd-1.9.1
> setenv vmdbasename vmd
> but the problem is still there.
> Does anybody have any idea how to solve it?

your system provided python installation is
highly likely to be incompatible with VMD.
you'd have to download the exact same python
distribution that was used to compile VMD.

otherwise, you'll have to compile VMD yourself
for your machine. overall python support in VMD
has been lacking a maintainer for a very long
time and thus is experiencing some degree of
bit rot over the last few years.

i remember that the interface to tkinter itself
has become problematic and that there were
discussions on this list to fix it and some
proposed fixes. not sure if that made it into
the distribution, though.



Dr. Axel Kohlmeyer
College of Science and Technology
Temple University, Philadelphia PA, USA.