Yuk. I'm not sure why you got that error message originally. It seems to
be complaining that a spectrum (dataSource) does not exist although you
have a peakList in your hand at that point and its parent is that
spectrum. So how can it be failing? (Rasmus might have some ideas on
this point.)
The short-term fix for you is to delete that spectrumWindowView from the
xml file. Before you do that make a copy of the old one just in case!
The file you want to edit is in the ccpnmr directory of the project (so if
the top project file is called test1.xml then the directory would normally
be test1/ccpnmr). In there is the Analysis.xml file. Edit that and look
for the SpectrumWindowView with experimentSerial 9 and dataSourceSerial 1
(which is what the error message is complaing about) and delete it. That
means delete everything from
<SpectrumWindowView _ID=... experimentSerial="9" dataSourceSerial="1" ...>
down to
</SpectrumWindowView>
If you have multiple windows then this might need to be repeated for the
other windows as well.
Wayne
On Thu, 17 Feb 2005, Magnus Helgstrand wrote:
> Hi!
>
> After opening a spectra processed usgin NMRPipe I got the following error messages:
>
> Spectrum successfully opened
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/local/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line 1316, in __call__
> return apply(self.func, args)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/OpenSpectrumPopup.py", line 191, in openSpectra
> self.parent.finishInitSpectrum(spectrum)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line 870, in finishInitSpectrum
> self.initSpectrumPeakList(spectrum)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line 918, in initSpectrumPeakList
> Nmr.PeakList(spectrum, details = 'Default list')
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccp/api/Nmr.py", line -11377, in __init__
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line 1265, in initPeakList
> view = window.findFirstSpectrumWindowView(dataSource=spectrum)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/api/Analysis.py", line 13814, in findFirstSpectrumWindowView
> if (getattr(v, key) == condition):
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/api/Analysis.py", line 15635, in getDataSource
> raise ApiError("ccpnmr.Analysis.SpectrumWindowView.getDataSource:"
> ApiError: ccpnmr.Analysis.SpectrumWindowView.getDataSource: No object found for mandatory derived link using key[9, 1]
>
> After a while I quit Analysis and saved my project. When trying to open it again the project file was corrupted and I got the following error message:
>
> "Project invalid, please quit, fix and restart: ccpnmr.Analysis.Spectrum WindowView.getDataSource: No object found for mandatory derived link using key[9, 1]"
>
> Quit, fix and re-start sound easy enough, but how do I do that in real life? I need my project...
>
> Magnus
>
> ----------------------------------
> Magnus Helgstrand
> Dept. of Biophysical Chemistry
> Lund University
> Box 124
> SE-221 00 Lund
> Sweden
>
> Phone: +46-46-2228173
>
|