Hello,
This is a tough one. If the files get out of sync for some reason it
could be tricky to get them back into sync. That particular error would
(I think) mean that some spectrum is pointing to dataLocation number 18
(this is determined in the file ProjectName/ccp/nmr/Nmr.xml) but that
dataLocation doesn't exist (as determined in the file ProjectName.xml).
Even this can be tricky to sort. So if you go into the file
ProjectName/ccp/nmr/Nmr.xml and look for some lines
<dataLocation>
<key1 serial="18"/>
</dataLocation>
and note what DataSource (spectrum) it is and what Experiment it is (so
the names, say) and then go into the file ProjectName.xml and see if you
can find a DataLocation which points to the correct file (technically you
would have to look at both the dataLocation path, and then the path of the
dataLocation url, but probably the former is enough in most cases in
practise). If there is none then the best option is probably to delete
those dataLocation lines in the Nmr.xml file. I'm not positive that would
work, but it's worth a try.
If the *.xml files are not in sync you could try the *.xml.bak files which
are created every time you save the project, or the *.xml.bac files, which
are created by the auto-backup. But the odds are not likely that they are
out of sync. And the way they currently work, you would need to rename
them by removing the .bak/.bac extension.
If none of this helps you could send us the entire project (but not the
data files!), tarred and gzipped.
Wayne
On Thu, 1 Feb 2007, Mark Pfuhl wrote:
> The project that I tried the new version with recently seems to have been
> messed up. Upon starting a little (very informative) window opens telling
> me: "Project invalid, pleas quit, fix and re-start: Error loading
> fileNoDataLocation object found from key: [18]"
>
> When I click OK I get the python error messages:
>
> last xml element read:
> </dataLocation>
>
>
> parser state was:
> reading
>
> ERROR loading xml ccp.Nmr ccp/Nmr.xml
> Traceback (most recent call last):
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py",
> line 169, in ?
> main(filename, max_size, glDirect)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py",
> line 102, in main
> top.initProject(project)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py", line
> 904, in initProject
> Analysis.initProject(self, project)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 206, in initProject
> self.initResonances()
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1059, in initResonances
> resonances = self.project.resonances
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py",
> line 17466, in getResonances
> otherStorage.load()
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py",
> line 8904, in load
> ioModule.load(stream, self.project)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccp/xml/Nmr.py", line 113, in load
> return GeneralXmlIO.load(stream, mapping, parentObject)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py", line
> 370, in load
> result = doLoad(stream, mapping, headObject)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py", line
> 657, in doLoad
> raise ApiError(
> memops.general.Implementation.ApiError: Error loading fileNo DataLocation
> object found from key:
> [18]
>
> My suspicion is that the shenanigans with using the new version might have
> corrupted some of the files in the project but I have no idea how to fix
> them. Any suggestions welcome.
>
|