>
>
> It will not accept resonances with names that contain whitespace. The
> easiest quick fix is to go into the XML file with an editor and change
> the Resonance name - you can see the line of XML it refuses at the top
> of the error message.
Done that, and it worked beautifully. Thanks.
I think the spaces may have got there in the first place due to a script
which Wim wrote for me to import stuff from Sparky.
Vicky
>
> I am home sick and a bit out of communication, and I cannot remember
> if we changed the constraints on Resonance names in the last release,
> or how the name otherwise slipped through and got in there.
>
> Maybe SOmeone else can tell you more.
>
> CHeers,
>
> Rasmus
>
> On Nov 21 2006, Victoria Higman wrote:
>
>> Hi,
>>
>> I tried opening my project (from old version of Analysis) using the
>> new version of Analysis and get the following traceback and am not
>> able to open the project. Anything that can be done about that?
>> Thanks,
>>
>> Vicky
>>
>>
>>
>> >>> last xml element read:
>> <Resonance _ID="_608" serial="1" name=" .Aa.C" isotopeCode="13C"
>> resonanceGroup="_15057">
>>
>>
>> parser state was:
>> reading
>>
>> ERROR loading xml ccp.nmr.Nmr ccp/Nmr.xml
>> Exception in Tkinter callback
>> Traceback (most recent call last):
>> File
>> "/xtools/swx/ccpnmr/python2.4/lib/python2.4/lib-tk/Tkinter.py", line
>> 1345, in __call__
>> return self.func(*args)
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line
>> 224, in ok
>> if (not self.apply()):
>> File
>> "/swx/ccpnmr/ccpnmr1.0/python/memops/editor/OpenProjectPopup.py",
>> line 142, in apply
>> self.callback(self.project)
>> File
>> "/swx/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py", line
>> 913, in initProject
>> Analysis.initProject(self, project)
>> File "/swx/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
>> line 395, in initProject
>> self.initTopObjects(project)
>> File "/swx/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
>> line 188, in initTopObjects
>> if not project.currentNmrProject:
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py",
>> line 18783, in getCurrentNmrProject
>> result = self.findFirstNmrProject()
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py",
>> line 13173, in findFirstNmrProject
>> otherStorage.load()
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/api/Implementation.py",
>> line 9066, in load
>> ioModule.load(stream, self.project)
>> File "/swx/ccpnmr/ccpnmr1.0/python/ccp/xml/nmr/Nmr.py", line 114,
>> in load
>> return GeneralXmlIO.load(stream, mapping, parentObject)
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py",
>> line 425, in load
>> result = doLoad(stream, mapping, headObject)
>> File "/swx/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py",
>> line 907, in doLoad
>> currentObj = classMap['class'](objStack[-1],**parameters)
>> File "/swx/ccpnmr/ccpnmr1.0/python/ccp/api/nmr/Nmr.py", line 87156,
>> in __init__
>> setattr(self, key, value)
>> File "/swx/ccpnmr/ccpnmr1.0/python/ccp/api/nmr/Nmr.py", line 89691,
>> in setName
>> raise ApiError("%s.setName:" % self.qualifiedName +
>> ApiError: ccp.nmr.Nmr.Resonance.setName:Word constraint
>> no_white_space violated by value: .Aa.C
>>
>>
>
--
****************************************************
Dr. Victoria A. Higman
Leibniz-Institut fuer Molekulare Pharmakologie (FMP)
Robert-Roessle-Str. 10
13125 Berlin
Germany
Phone: +49-30-94793 223
E-mail: [log in to unmask]
****************************************************
|