Hello,
Wim is on the road this week and next (if I remember corrrectly) so might
not see this right away.
Unfortunately what the code is doing there is generic enough that it's not
obvious what is going wrong. But it looks like (at a guess) that the
funny chemComp is not being found. But why it is not being found I don't
know. Is its XML file located in the project-specific directory for the
first project and not in a similar location in the second project? That
might cause a problem like this (but I don't know the details of how this
stuff is being copied over by the dataShifter so I could be wrong). If
that's the problem then it's possible that just copying the XML file over
from the first project to the second one before you run the dataShifter
would work. (Or it might need some more finessing, because it might not
just pick this up automagically.)
Wayne
On Mon, 9 Feb 2009, Justin Douglas wrote:
> Hi Wim,
>
> I think I'm using the latest version of dataShifter. I checked the update
> server and there were no updates.
>
> At any rate, I'd like to transfer a molecule from one project to another.
> It is a highly modified RNA that was not simple to make, hence it would be
> nice if I could seamlessly transfer this between projects. I get the
> following error when I try in dataShifter.
>
> Thanks,
>
> J
>
>
> ERROR in ccp.molecule.Molecule.MolResidue.__init__
> WARNING Error in clean-up of incorrectly created object.
> Data may be left in an illegal state
> ERROR: copyObjects could not create or map new MolResidue...
> <ccp.molecule.Molecule.Molecule ['MACU']>
> {'seqCode': 1, 'chemComp': None, 'linking': 'none', 'descriptor': 'neutral',
> 'se
> qInsertCode': ' ', 'applicationData': ()}
> <ccp.molecule.Molecule.MolResidue ['MACU', 1]>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/sw/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__
> return self.func(*args)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 1776, in <lambda>
> button = Tkinter.Button(master, text = shiftLabelText, command = lambda
> butt
> onKeyword = buttonKeyword, toProjectNum =
> shiftCol:self.shiftData(buttonKeyword,
> toProjectNum), state = buttonState)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 1848, in shiftData
> copyClass =
> CopyClass(ccpnObject,toProject,(self.guiParent,self.multiDialog,
> self.messageReporter,self.dataEntry),{},verbose = self.verbose)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 194, in __init__
> self.copyObject()
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 211, in copyObject
> self.toObject =
> createInProject(self.ccpnObject,self.toProject,copyOrder,sel
> f.createdObjectDict, self.toProjectResInfo, self.dialogInfo,
> self.toLinkedObject
> Data, postponedObjects = self.postponedObjects, ignorePresets =
> self.ignorePrese
> ts, verbose = self.verbose, ignoreAttrs = self.ignoreAttrs)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 636, in
> createInProject
>
> copyObject(linkedCcpnObject,toProject,createdObjectDict,postponedLinkDict,me
> taInfo,toProjectResInfo,postponedObjects,dialogInfo,toLinkedObjectData,
> ignorePr
> esets = ignorePresets, verbose = verbose)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 1464, in copyObject
> newObjects =
> setPresetLinks(metaRole,[otherObject],toProject,keywds,createdO
> bjectDict,toProjectResInfo,postponedObjects, dialogInfo, toLinkedObjectData,
> ver
> bose = verbose)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 848, in
> setPresetLinks
> CopyClass(refObject,toProject,None,toLinkedObjectData,createdObjectDict
> = cr
> eatedObjectDict,ignorePresets = ignorePresets, verbose = verbose)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 194, in __init__
> self.copyObject()
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 211, in copyObject
> self.toObject =
> createInProject(self.ccpnObject,self.toProject,copyOrder,sel
> f.createdObjectDict, self.toProjectResInfo, self.dialogInfo,
> self.toLinkedObject
> Data, postponedObjects = self.postponedObjects, ignorePresets =
> self.ignorePrese
> ts, verbose = self.verbose, ignoreAttrs = self.ignoreAttrs)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 636, in
> createInProject
>
> copyObject(linkedCcpnObject,toProject,createdObjectDict,postponedLinkDict,me
> taInfo,toProjectResInfo,postponedObjects,dialogInfo,toLinkedObjectData,
> ignorePr
> esets = ignorePresets, verbose = verbose)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> ccpnmr2.0/python/ccpnmr/format/gui/DataShifter.py", line 1549, in copyObject
> newObject = createClass(newParent,**keywds)
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/ccp/api/molecule/Molecule.py",
> line
> 3497, in __init__
> File
> "/Volumes/pardi-home/douglas/Documents/Programs/software/analysis/ccpnmr/
> temporaryReleaseDir/ccpnmr/ccpnmr2.0/python/ccp/api/molecule/Molecule.py",
> line
> 5029, in setChemComp
> ApiError: ccp.molecule.Molecule.MolResidue.setChemComp:
> value is not of class ccp.molecule.ChemComp.ChemComp: None
>
|