Hello,
That could be one of several things. That is a new function which was
added into the Python and C worlds. So first thing is to check that it
exists in the C world. If you
grep fitLinewidth /scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/c/ccpnmr/analysis/*.c
you should get a couple of hits (in py_peak.c). If so it's worth checking
that the corresponding py_peak.o and also PeakList.so in the same
directory are newer. If not it means that for some reason the code did
not get re-compiled (the update mechanism is supposed to do that). So in
that case
cd /scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/c
make clean (to be safe)
make
And the final thing to check is that the *.so files are getting through
into the Python world. So
cd /scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/c
ls -l
Are the *.so files symbolic links to the corresponding ones in
/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/c/ccpnmr/analysis? If not they
should be (otherwise the Python world is not getting the update). So in
that case in that directory do:
source linkSharedObjs
and do the same in /scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/memops/c
and /scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccp/c.
Wayne
On Mon, 28 Apr 2008, Aleksandras Gutmanas wrote:
> Hi Wayne and Tim,
>
> After a recent update, I get the following error, when trying to pick a
> peak. The peak is in fact picked, though.
>
> Aleks
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/scratch/LOCAL/CCPN/ccpnmr/python2.4/lib/python2.4/lib-tk/Tkinter.py",
> line 1345, in __call__
> return self.func(*args)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledWindow.py",
> line 1012, in <lambda>
> cmd = lambda event, button=button, state=state:
> self.releaseFunc(event, button, state)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledWindow.py",
> line 985, in releaseFunc
> func(event)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledWindow.py",
> line 1573, in selectRegion
> self.select_multi_func(event.widget, a0, b0, a1, b1, x0, y0, x1, y1,
> button, state, event=event)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py",
> line 2455, in selectMulti
> self.examineRegion(canvas, a0, b0, a1, b1, x0, y0, x1, y1, state=state)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py",
> line 2430, in examineRegion
> thickness=spectrum_thickness)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> line 2111, in findPeaks
> peak = addPeak(peakList, position, tile=tile_abs, parent=parent)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> line 1374, in addPeak
> setupPeak(peak, doFit=doFit)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> line 1552, in setupPeak
> setupPeakLinewidth(peak)
> File
> "/scratch/LOCAL/CCPN/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PeakBasic.py",
> line 1789, in setupPeakLinewidth
> linewidth = peak.cPeak.fitLinewidth(spectrum.block_file, dimDone)
> AttributeError: fitLinewidth
>
|