Hello,
It turns out that the problem is an inconsistency that version 1 allowed
(in fact so much so that even checkValid() doesn't catch it). So that
constraint (serial 1026) had two items that were both pointing to the same
two resonances, but in the opposite order (version 2 code uses sets not
lists so that cannot happen now). With Rasmus' help I removed the
offending bits in the xml file and then the upgrade worked, so fortunately
that was the only example of this problem. I'll send you the link in a
subsequent email.
Wayne
On Wed, 29 Jul 2009, Gary Thompson wrote:
> Hi
>
> we tried to convert a 1.0 project to a 2.0 project using the online server
> and got the following error:
>
> Job failed: ApiError: Cannot add child - key already in use:
> ccp.nmr.NmrConstraint.DistanceConstraintItem:<ccp.nmr.NmrConstraint.DistanceConstraint
> [1, 1, 1026]>:frozenset([<ccp.nmr.NmrConstraint.FixedResonance [1, 2]>,
> <ccp.nmr.NmrConstraint.FixedResonance [1, 4]>])
> File "/data/ccpn/www/cgi-bin/upgrade/upgrade", line 575, in
> convertMajorProject
> doMajorConvert(dataStem)
> File "/data/ccpn/www/cgi-bin/upgrade/upgrade", line 549, in doMajorConvert
> p = Converters.doMajorUpgradeToCurrent(oldPath, oldTag, newDir=newDir)
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/format/compatibility/Converters.py",
> line 76, in doMajorUpgradeToCurrent
> globalMapping=globalMapping, oldTags=oldTags)
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/format/compatibility/part1/Converters1.py",
> line 95, in majorUpgradeToCurrent
> return upgrader.majorUpgrade(doSave=doSave)
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/format/compatibility/part1/Converters1.py",
> line 204, in majorUpgrade
> self.transferData()
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/format/compatibility/part1/Converters1.py",
> line 618, in transferData
> oldVersionStr=self.oldVersionStr)
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/general/Util.py",
> line 1008, in transferData
> linkTopToParent=True)
> File
> "/data/ccpn/upgrade/cvsroot_branch_2_0_3/ccpn/python/memops/xml/Implementation.py",
> line 4750, in linkChildData
> + ": %s:%s:%s" % (obj.getQualifiedName(), obj.getParent(), key)
>
>
> however, the response from the server gives no information as to what to do
> next... It seems that the original project isn't valid ....
>
>
> regards
> gary
>
|