ok, it's up and running but loading my old (b14) project gives the error:
Error dereferencing peaks for object ccp.Nmr.Shift with key :
[1, None]
last xml element read:
</_StorageUnit>
parser state was:
setting links and multiattributes
ERROR loading xml ccp.Nmr ccp/Nmr.xml
Traceback (most recent call last):
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py", line
73, in ?
top.initProject(project)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
line 741, in initProject
Analysis.initProject(self, project)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line
114, in initProject
self.initResonances()
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line
758, in initResonances
resonances = self.project.resonances
File "/usr/progs/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py", line
9805, in getResonances
otherStorage.load()
File "/usr/progs/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py", line
4789, in load
ioModule.load(stream,self.project)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccp/xml/Nmr.py", line 109, in load
return GeneralXmlIO.load(stream, mapping, parentObject)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py", line
372, in load
result = doLoad(stream, mapping, headObject)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py", line
527, in doLoad
loadDelayedData(objectDict, delayedLoadData)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py", line
910, in loadDelayedData
setattr(obj,tag,targets)
File "/usr/progs/ccpnmr/ccpnmr1.0/python/ccp/api/Nmr.py", line 2536, in
setPeaks
raise ApiError('ccp.Nmr.AbstractMeasurement.peaks list may not contain
duplicates')
memops.general.Implementation.ApiError: ccp.Nmr.AbstractMeasurement.peaks list
may not contain duplicates
what's that all about then?
phil
Quoting Wayne Boucher <[log in to unmask]>:
> Right, this is part of the horrible hack to try and upgrade an old
> installation. Fortunately it's the last thing that is done in
> installCode.py (except for the test run) so it doesn't matter too much
> that it failed. But what it is trying to do is the following (so you can
> do it by hand), assuming you are starting in the top-level ccpnmr
> directory:
>
> (1) cd ccpnmr1.0/data/ccp/chemComp
> (2) If the "nonpolymer" directory exists: rm -r nonpolymer
> (3) ln -s other nonpolymer
>
> This is so that old XML files can be successfully read (the alternative
> would have been lots of horrid Python code).
>
> I can now see a couple of problems with the way installCode.py is trying
> to do this so I will try and fix that. (It's a bit of a nightmare
> because it has three different situations to worry about.) For now
> the above manual method should work.
>
> Wayne
>
> On Wed, 1 Sep 2004, PT Robinson wrote:
>
> > > on ccpnmr's toes by putting some lines in .cshrc. installation is now
> > > complete.
> >
> > disregard. on compiling & installing analysis code:
> >
> > Traceback (most recent call last):
> > File "/usr/my_progs/ccpnmr/installCode.py", line 736, in ?
> > main()
> > File "/usr/my_progs/ccpnmr/installCode.py", line 705, in main
> > doUpgrade()
> > File "/usr/my_progs/ccpnmr/installCode.py", line 582, in doUpgrade
> > files = os.listdir(old_dir)
> > OSError: [Errno 2] No such file or directory:
> > 'ccpnmr1.0/data/ccp/chemComp/nonpolymer'
> >
> > phil
> >
>
|