[Chimera-users] Error: UnboundLocalError: local variable 'i' referenced before assignment

Eric Pettersen pett at cgl.ucsf.edu
Tue Feb 3 15:19:40 PST 2015


Hi Letizia,
	Thanks for reporting the problem, though next time you might want to use the Report a Bug menu item (in the help menu).  Anyway, I will get a fix in but there's a pretty easy workaround until then:  don't blank out the "plane name" when you create the plane.  Give it some actual name (or use the default).  Just don't blank it!

--Eric

                        Eric Pettersen
                        UCSF Computer Graphics Lab
                        http://www.cgl.ucsf.edu

On Feb 3, 2015, at 9:48 AM, Letizia Meregalli <letizia.meregalli at tum.de> wrote:

> Hi,
> I have a tRNA molecule and I would like to measure the angles between two nitrogenous bases. I created two planes, each for each base. When I select both planes, in order to measure the angles between them (Structure Measurements Axes/Planes/Centroids) I get following message:
> 
> 
> <type 'exceptions.UnboundLocalError'> Exception in Tk callback
>   Function: <bound method SortableTable._browseCmd of <CGLtk.Table.SortableTable instance at 0x117990638>> (type: <type 'instancemethod'>)
>   Args: ('1',)
> Traceback (innermost last):
>   File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/site-packages/Pmw/Pmw_1_3/lib/PmwBase.py", line 1747, in __call__
>     return apply(self.func, args)
>   File "/Applications/Chimera.app/Contents/Resources/share/CGLtk/Table.py", line 1043, in _browseCmd
>     self.userBrowseCmd(self.selected())
>   File "/Applications/Chimera.app/Contents/Resources/share/StructMeasure/Geometry.py", line 268, in _tableCB
>     self.feedback(sels)
>   File "/Applications/Chimera.app/Contents/Resources/share/StructMeasure/Geometry.py", line 113, in feedback
>     diff = " ".join(words2[i:])
> <type 'exceptions.UnboundLocalError'>: local variable 'i' referenced before assignment
> 
> UnboundLocalError: local variable 'i' referenced before assignment
> 
>   File "/Applications/Chimera.app/Contents/Resources/share/StructMeasure/Geometry.py", line 113, in feedback
>     diff = " ".join(words2[i:])
> 
> See reply log for Python traceback.
> 
> 
> 
> I really don’t know how can I solve this problem.. I’d be really grateful if you could help me or give me some hints!
> thank you a lot
> 
> Letizia
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150203/85004796/attachment-0001.html>


More information about the Chimera-users mailing list