Yikes, we haven't seen that exact one although we have seen similar ones
in the past. This is to do with the 1D slices of the window, which are
not shown by default so most people probably never make them visible, but
if you did so my guess is you might not see them (after this error). Or
you might, depending on the luck of the draw. This error is a timing
issue, the resize is being called before the slice has been properly set
up. I'll try to set up some more defensive code for that (I did something
similar for the main canvas handler awhile ago). For now the error should
be ignorable.
Wayne
On Thu, 2 Sep 2004, PT Robinson wrote:
> ok, that's great, thanks. now, how about:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 2096, in sliceResize
> slice.handler.resize(width, height)
> AttributeError: SliceCanvas instance has no attribute 'handler'
>
>
> all this appears when analysis loads my project but everything still seems to
> work just fine.
>
> phil
>
>
> Quoting Tim Stevens <[log in to unmask]>:
>
> > > ok, now i get the error for ccp.Nmr.AbstractPeak.measurements. same fix?
> >
> > Yep, same fix.
> >
> > T
> >
> > > > > memops.general.Implementation.ApiError:
> > ccp.Nmr.AbstractMeasurement.peaks
> > > > > list may not contain duplicates
> > > > In the mean time the following should work:
> > > >
> > > > In $CCPN_HOME/python/ccp/api/Nmr.py, near line 2536 change
> > > >
> > > > if values.count(value) != 1:
> > > > raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not
> > > > contain duplicates')
> > > >
> > > > to
> > > >
> > > > while values.count(value) > 1:
> > > > values.remove(value)
> > > > #raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not
> > > > contain duplicates')
> > > >
> > > > If you like you can restore Nmr.py to its previous state after you've
> > > > loaded and saved your project.
> >
> >
> -------------------------------------------------------------------------------
> > Dr Tim Stevens Email: [log in to unmask]
> > Department of Biochemistry [log in to unmask]
> > University of Cambridge Phone: +44 1223 766022 (office)
> > 80 Tennis Court Road +44 7816 338275 (mobile)
> > Old Addenbrooke's Site +44 1223 364613 (home)
> > Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
> > United Kingdom http://www.pantonia.co.uk
> >
> -------------------------------------------------------------------------------
> > ------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2-
> > -------
> >
> -------------------------------------------------------------------------------
> >
>
|