Hello,
That's the result of an old bug (a misspelling mistake of the key for the
appData). To fix this you can change it the value to 0 but the better
solution is to change the AppDataInt to an AppDataBoolean (at the top and
bottom) and the False to false. (This bug was only spotted because of the
2.2 to 2.4 transition. Before that Python treated booleans as ints.)
Wayne
On Fri, 2 Dec 2005, Simon Evans wrote:
> hello
>
> when I tried to open my project this morning I got the following error (and
> it did not open):
>
> last xml element read:
> <AppDataInt _ID="_37" value="False" serial="35">
>
>
> parser state was:
> reading
>
> Traceback (most recent call last):
> File "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py",
> line 166, in ?
> main(filename, max_size)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py",
> line 96, in main
> applicationName=applicationName)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/ccp/general/Io.py", line 606, in
> readXmlCcpProjectFile
> applicationName=applicationName)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/general/Io.py", line 164,
> in readXmlProjectFile
> project = loadXmlProjectFile(path, file)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/general/Io.py", line 138,
> in loadXmlProjectFile
> project = xmlLoad(fileHandle)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/xml/Implementation.py",
> line 95, in load
> project = GeneralXmlIO.load(stream, mapping, None)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py",
> line 370, in load
> result = doLoad(stream, mapping, headObject)
> File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.py",
> line 792, in doLoad
> parameters[name] = newMap['fromStr'](value)
> ValueError: invalid literal for int(): False
> >>>
>
> this is the offending section from my project xml:
>
> <AppDataInt _ID="_37" value="False" serial="35">
> <application>CCPNMR_Analysis</application>
> <keyword>peak_find_nonadjacent</keyword>
> </AppDataInt>
>
> by comparing to another project, I could see that it should be '0' and
> having changed it it now works. No idea how that crept in.
>
> simon
>
|