Dear all,
While working on the assignment, some of the saved versions while loading become unresponsive with the message `mainWindow.clearMarks()` no matter what you are trying to do. Is there a fix for that?
Best,
Panagiota
(09-27-2019, 03:09 pm)Panagiota Wrote: And when loading the project I get the following error message:
Error reading project ccp.nmr.Nmr.Shift.checkValid: resonance:
value cannot be None: <ccp.nmr.Nmr.Shift [`default`, 1, None]>
WARNING: Error initialising object <CL:default>. `NoneType` object has no attribute `serial`1 (AbstractWrapperObject._initializeAll:929)
(09-28-2019, 09:07 am)Panagiota Wrote:(09-27-2019, 03:09 pm)Panagiota Wrote: And when loading the project I get the following error message:
Error reading project ccp.nmr.Nmr.Shift.checkValid: resonance:
value cannot be None: <ccp.nmr.Nmr.Shift [`default`, 1, None]>
WARNING: Error initialising object <CL:default>. `NoneType` object has no attribute `serial`1 (AbstractWrapperObject._initializeAll:929)
Dear all,
I am using the CcpNmr AnalysisAssign version 3.0.0 updated in MacOS X. As Panagiota, I had the same problem, while working in backbone assignment, the `pick and assign` and `backbone assignment` modules become unresponsive (no navigation at all in the spectra). Also, the chemicalshiftlists `CL:default` turns out empty. Is there a solution for this problem?
Errors when loading the project:
WARNING: Error initialising object <CL:default>. `NoneType` object has no attribute `serial`1 (AbstractWrapperObject._initializeAll:929)
WARNING: Ambiguous shortcut overload: W1.
Error when I click in the residue to navigate in the spectra:
INFO : mainWindow.clearMarks() (Logging._info:109)
Best,
Micael
Micael S. Silva, MSc
MolBioS PhD Student FCT - NOVA, Portugal
(Bio) Molecular Structure and Interactions by NMR Group UCIBIO@REQUIMTE
Hi Panagiota and Micael,
is there some sort of pattern to this?
The best thing might be for you to send us an affected project (ccpnmr3@gmail.com), so we can have a look at it in more detail.
Thanks,
Vicky
(10-15-2019, 03:08 pm)Hi Vicky,Actually these errors were eliminated after the last updates.Thanks,Panagiota--------------------VickyH Wrote: Hi Panagiota and Micael,
is there some sort of pattern to this?
The best thing might be for you to send us an affected project (ccpnmr3@gmail.com), so we can have a look at it in more detail.
Thanks,
Vicky
(10-15-2019, 03:08 pm)VickyH Wrote: Hi Panagiota and Micael,
is there some sort of pattern to this?
The best thing might be for you to send us an affected project (ccpnmr3@gmail.com), so we can have a look at it in more detail.
Thanks,
Vicky
(10-15-2019, 03:29 pm)Panagiota Wrote:(10-15-2019, 03:08 pm)Hi Vicky,Actually these errors were eliminated after the last updates.Thanks,Panagiota--------------------VickyH Wrote: Hi Panagiota and Micael,
is there some sort of pattern to this?
The best thing might be for you to send us an affected project (ccpnmr3@gmail.com), so we can have a look at it in more detail.
Thanks,
Vicky
Dear Vicky,
I started a new project, and up to now, there is no error at all. In the project where the module becomes unresponsive, it seems a problem from a directly deletion of peaks from a peaklist and/or when I undo some action (command + z).
Best,
Micael
We have hit a similar problem with the same error on startup. I`ve sent you the project in question.
Brian
Hi All,
the issue seems to be if you `Undo` an assignment. (If the NmrAtom in question isn`t already assigned to something else you can end up with an entry in the chemical shift table with no chemical shift associated with it - which the program doesn`t like!) Hopefully, we`ll be able to upload a fix to the Update Server soon. But in the mean time, it may be wise to remove assignments explicitly rather than using the Undo function. You can easily remove assignments with right-click / Deassign Peak(s) or in the Peak Assigner (shortcut AP) or by deleting an NmrAtom (though I notice that if you do this latter operation the other modules aren`t automatically updated - only once you reopen or refresh them in some way - another bug!).
Vicky
I think I found a solution to our broken project, but won`t claim a full understanding of why it`s a problem.
The error message comes from one of the checks in the setup of an instance of class Shift that happens at line 134895 of ccpnmodel/ccpncore/api/ccp/nmr/Nmr.py. By inserting a line to tell me what the _ID of the Shift that was problematic was, I could find it in the ccpnv3/ccp/nmr/Nmr/<longname>.xml file and it was an NMR.Shift that indeed had no NMR.Resonance.shifts that referenced it. Deleting the rogue NMR.Shift seems to restore the project to a workable state.
If Vicky`s right about this coming from an undo (although we don`t think so in this case) then the code is perhaps reversing the creating of the resonance, but not cleaning up the shift list?
Cross-referencing an instance of this in the issue tracker:
https://bitbucket.org/ccpnmr/issue-track...ls-to-open
(10-24-2019, 02:40 pm)bosmith Wrote: I think I found a solution to our broken project, but won`t claim a full understanding of why it`s a problem.
The error message comes from one of the checks in the setup of an instance of class Shift that happens at line 134895 of ccpnmodel/ccpncore/api/ccp/nmr/Nmr.py. By inserting a line to tell me what the _ID of the Shift that was problematic was, I could find it in the ccpnv3/ccp/nmr/Nmr/<longname>.xml file and it was an NMR.Shift that indeed had no NMR.Resonance.shifts that referenced it. Deleting the rogue NMR.Shift seems to restore the project to a workable state.
If Vicky`s right about this coming from an undo (although we don`t think so in this case) then the code is perhaps reversing the creating of the resonance, but not cleaning up the shift list?
I`m having the same problem. What was the code you inserted to tell you the _ID of the shift that was problematic?
Best,
Kat
Hi Kat,
I did this (.s indicate indentation `cos geshi doesn`t seem to be switched on for this forum)
...value = dataDict.get(`resonance`)
...if (value is None):
......print(dataDict[`_ID`])
......raise ApiError(```%s.checkValid: resonance:
.........value cannot be None``` % self.qualifiedName
.........+ `: %s` % (self,)
......)