[chimera-dev] raw_input

Victor Muñoz chewaka.87 at gmail.com
Wed Oct 6 03:38:24 PDT 2010


For example, if I use directly in the IDLE console:

a=raw_input()

It returns me:

Traceback (most recent call last):
  File "<pyshell#39>", line 1, in <module>
    a=raw_input()
  File "/users/victor/bin/chimera/lib/python2.6/idlelib/PyShell.py", line
1007, in readline
    self.top.mainloop()  # nested mainloop()
  File "/users/victor/bin/chimera/share/Idle/__init__.py", line 82, in
mainloop
    origListedTopLevel.mainloop(self)
NameError: global name 'origListedTopLevel' is not defined

Even if I use it in an script I continue to get the same error.

In the IDLE console it says Python 2.6.4.

Thanks for your help.

2010/10/5 Darren Weber <dweber at cgl.ucsf.edu>

>
> Hi Victor,
>
> If possible, it could be helpful to attach your script so we can
> replicate the problem here.  If you need to protect any IP in the
> script, this may be tricky, but there could be ways around that, e.g.:
> extract the essence of the problem from the script.  Please note the
> version of Chimera that your running and the platform it's running on
> (linux, Mac or windows; it looks like a Chimera version that uses python
> 2.6 - the current daily builds are using python 2.7.)
>
> Best,
> Darren
>
>
> On 10/05/2010 01:46 AM, Victor Muñoz wrote:
> > Hi,
> >
> > I've been doing different scripts in python for chimera UCSF, but
> > recently I'm having problems using the raw_input() function. I've been
> > using this functions for a long time and I haven't had any problem
> > until now. The error I have when using it is:
> >
> > Traceback (most recent call last):
> >   File
> > "/users/victor/Desktop/Doctorat/Python/Scripts/rmsd_aro_screen.py",
> > line 51, in <module>
> >     aref=input()
> >   File "/users/victor/bin/chimera/lib/python2.6/idlelib/PyShell.py",
> > line 1007, in readline
> >     self.top.mainloop()  # nested mainloop()
> >   File "/users/victor/bin/chimera/share/Idle/__init__.py", line 82, in
> > mainloop
> >     origListedTopLevel.mainloop(self)
> > NameError: global name 'origListedTopLevel' is not defined
> >
> > I don't know where the error comes from, but I have the same error in
> > both mi computer and my laptop.
> >
> > Thanks for all in advance.
> >
> > Kind regards,
> >
> > Victor Muñoz Robles
> >
> > --
> >
> >
> > _______________________________________________
> > Chimera-dev mailing list
> > Chimera-dev at cgl.ucsf.edu
> > http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
> >
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
>



--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20101006/1559a031/attachment.html>


More information about the Chimera-dev mailing list