From: Caio S. Souza (caiobiounb_at_gmail.com)
Date: Mon Jan 28 2013 - 13:40:45 CST

Hello,
The "AtomSel" module is deprecated, as stated in
http://www.ks.uiuc.edu/Research/vmd/current/ug/node162.html
You should import the "atomsel" module instead.

Cheers

-- 
Caio S. Souza
Laboratório de Biofísica Teórica e Computacional
Universidade de Brasília
2013/1/28 Albert <mailmd2011_at_gmail.com>:
> Hello:
>
>  I am trying to run a python script by command:
>
> vmd input.mae 011.dtr -python -dispdev text -e script.py
>
> but it said:
>
> Info) Text interpreter now Python
> Traceback (most recent call last):
>   File "VMD", line 12, in <module>
> NameError: name 'AtomSel' is not defined
>
> here is the line claimed:
>
>     x=AtomSel("resname T3P and within 6 of protein",frame=i)  # change
> selection here
>
> Does anybody have any idea?
>
> thank you very much
> best
> Albert
-- 
Caio S. Souza
Laboratório de Biofísica Teórica e Computacional
Universidade de Brasília