Hi Luca!
For the recovered file you sent me, I tried exporting the file as .nef and then imported the same file. The chemical shift list does reappear correctly.
I was working on a different version of my project file an noticed that after saving and exiting the program, if I reopen the project file, the error problem still persists. I saw there were new updates and installed them (only 20 out of 23 were able to install). I am able to open the project file and see my spectra, the problem now seems to be that the chemical shift list is empty. The terminal message for this error is as follows:
==> Loading CCPN project `/home/dkhago/Documents/gp78C_spectra/gp78Cnew_3_2.ccpn`
INFO : Closing /tmp/CcpnProject_m96nd8qi.ccpn/default (Logging._info:109)
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)
So I try to export the project file as a .nef and am unable to do that. The file doesn`t seem to export properly. I have attached the appropriate terminal message. I hope this helps clarify.
INFO : project.exportNef(path=`/home/dkhago/Desktop/gp78Cnew_3_2.nef`, overwriteExisting=True, skipPrefixes=[], expandSelection=False, pidList=[`MC:A`, `CL:default`, `PL:CBCACONH_trosy.1`, `PL:CBCANH.1`, `PL:HaNCoN.1`, `PL:HNCA.1`, `PL:HNCACB_trosy.1`, `PL:HNCO.1`, `PL:NOESY_HSQC.1`, `PL:HSQC_HN_trosy.1`, `PL:HSQC_HN_after_CBCANH.1`, `PL:HSQC_HN_after_HaNCoN.1`, `PL:HSQC_HN_after_HNCO.1`, `PL:HSQC_HN_after_NOESY.1`, `PL:HSQC_HN_before_HNCA.1`, `PL:HSQC_HN_trosy_aftercbcaconh.1`, `PL:HSQC_HN_trosy_afterhncacb.1`, `PL:CBCACONH_XYproj.1`, `PL:CoN_2D.1`, `PL:HaCoN_2D.1`, `PL:HaNCoN_CO_Ny.1`, `PL:HNCO_projYZ.1`, `SU:gp78C.`, `NC:@-`]) (Logging._info:109)
Traceback (most recent call last):
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/ui/gui/widgets/Action.py`, line 75, in <lambda>
self.triggered.connect(lambda checked, *args, **kwds: callback(*args, **kwds))
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/framework/Framework.py`, line 1745, in _exportNEF
pidList=pidList)
File `<decorator-gen-6>`, line 2, in exportNef
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/util/decorators.py`, line 330, in theDecorator
result = func(*args, **kwds)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/Project.py`, line 902, in exportNef
pidList=pidList)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/lib/CcpnNefIo.py`, line 931, in exportNef
pidList=pidList) #, exclusionDict=exclusionDict)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/lib/CcpnNefIo.py`, line 979, in convert2NefString
dataBlock = converter.exportProject(expandSelection=expandSelection, pidList=pidList) #, exclusionDict=exclusionDict)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/lib/CcpnNefIo.py`, line 1368, in exportProject
notes=self.notes, peakClusters=self.peakClusters)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/lib/CcpnNefIo.py`, line 1209, in exportObjects
saveFrames.append(self.chemicalShiftList2Nef(obj))
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/lib/CcpnNefIo.py`, line 1598, in chemicalShiftList2Nef
shifts = sorted(chemicalShiftList.chemicalShifts)
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/_implementation/AbstractWrapperObject.py`, line 893, in _allDescendants
objs = self._getChildren(classes=[className])[className]
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/_implementation/AbstractWrapperObject.py`, line 487, in _getChildren
for className, apiChildren in self._getApiChildren(classes=classes).items():
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/_implementation/AbstractWrapperObject.py`, line 509, in _getApiChildren
for apiObj in childClass._getAllWrappedData(self):
File `/home/dkhago/Desktop/ccpnmr3.0.b5/src/python/ccpn/core/ChemicalShift.py`, line 140, in _getAllWrappedData
key=operator.attrgetter(`resonance.serial`))
AttributeError: `NoneType` object has no attribute `serial`
I am not sure if this is also helpful, but these are the three updates that are unable to be installed, as per the terminal message provided:
Installing /home/dkhago/Desktop/ccpnmr3.0.b5/doc/static/AnalysisShortcuts.pdf
Could not install /home/dkhago/Desktop/ccpnmr3.0.b5/doc/static/AnalysisShortcuts.pdf: write() argument must be str, not None
Installing /home/dkhago/Desktop/ccpnmr3.0.b5/doc/static/AnalysisShortcuts.xlsx
Could not install /home/dkhago/Desktop/ccpnmr3.0.b5/doc/static/AnalysisShortcuts.xlsx: write() argument must be str, not None
Installing /home/dkhago/Desktop/ccpnmr3.0.b5/tutorials/AnalysisShortcuts.pdf
Could not install /home/dkhago/Desktop/ccpnmr3.0.b5/tutorials/AnalysisShortcuts.pdf: write() argument must be str, not None
0 updates installed, 3 not installed, see console for error messages