From: John Stone (johns_at_ks.uiuc.edu)
Date: Sun Nov 06 2011 - 00:24:39 CDT

Hi,
  If you are a heavy Python user, you can also simply compile VMD
from source code and use your local python installation, which would
allow you access to all of the modules you've got built already.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Sat, Nov 05, 2011 at 10:13:41PM -0700, Gianluca Interlandi wrote:
> ok, I solved the problem by downloading the pre-compiled python libraries:
>
> http://www.ks.uiuc.edu/Research/vmd/plugins/pythonlib/
>
> Gianluca
>
> On Sat, 5 Nov 2011, Gianluca Interlandi wrote:
>
> >Hi!
> >
> >I am trying to execute a python script in VMD, but I get some problem when
> >loading _tkinter:
> >
> >Info) Starting Python...
> >Could not find platform independent libraries <prefix>
> >Could not find platform dependent libraries <exec_prefix>
> >Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> >'import site' failed; use -v for traceback
> >Traceback (most recent call last):
> > File "<string>", line 1, in <module>
> >ValueError: vmdnumpy module not available.
> >Info) Text interpreter now Python
> >Traceback (most recent call last):
> > File "VMD", line 24, in <module>
> >ImportError: No module named optparse
> >Traceback (most recent call last):
> > File "<string>", line 1, in <module>
> > File "/home/gianluca/VMD/vmd-1.8.7/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
> >
> >
> >The following packages related to python/tk are installed on my system:
> >
> >python-2.6.5-2.11.x86_64
> >python-tk-2.6.5-3.3.1.x86_64
> >tk-8.5.8-3.1.x86_64
> >tk-devel-8.5.8-3.1.x86_64
> >tcl-8.5.8-4.53.x86_64
> >tcl-devel-8.5.8-4.53.x86_64
> >
> >Any advice what I need to do to enable the tkinter module?
> >
> >Thanks,
> >
> > Gianluca
> >
> >-----------------------------------------------------
> >Gianluca Interlandi, PhD gianluca_at_u.washington.edu
> > +1 (206) 685 4435
> > http://artemide.bioeng.washington.edu/
> >
> >Postdoc at the Department of Bioengineering
> >at the University of Washington, Seattle WA U.S.A.
> >-----------------------------------------------------
> >
>
> -----------------------------------------------------
> Gianluca Interlandi, PhD gianluca_at_u.washington.edu
> +1 (206) 685 4435
> http://artemide.bioeng.washington.edu/
>
> Postdoc at the Department of Bioengineering
> at the University of Washington, Seattle WA U.S.A.
> -----------------------------------------------------

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/       Fax: 217-244-6078