From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Mon Apr 02 2012 - 13:48:02 CDT

On Mon, Apr 2, 2012 at 12:28 PM, Albert <mailmd2011_at_gmail.com> 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/Tkinter.py", 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
> SUSE LINUX OS:
>
> /usr/lib64/python2.7/lib-dynload/_tkinter.so
> /usr/lib64/python2.7/lib-tk
>
> /usr/lib/python2.7/site-packages/Pmw
>
> /usr/lib64/python3.1/lib-dynload/_tkinter.so
> /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.

axel.

>
> THX
>

-- 
Dr. Axel Kohlmeyer
akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science and Technology
Temple University, Philadelphia PA, USA.