Hello,
I'm not sure why that variable isotopeScales is messed up but if there has
been a previous save of settings then specView uses the value of
isotopeScales stored in the settings file (which is somewhere in ~/.qt I
think) and if that was saved incorrectly then one is stuffed when one
tries to start up again. So my guess is that is what has gone wrong. For
now I would recommend editing:
/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py
And just comment out lines 1068,1069:
#if isotopeScales:
# self.isotopeScales = isotopeScales
Mind you, if that variable has been stuffed perhaps others have as well.
This is a problem I have hit once or twice with other variables and I
think the program needs to be a lot more robust in this regard.
Wayne
On Fri, 22 Feb 2013, Dr Andy Herbert wrote:
> Hi,
>
> I recently installed the latest version of specview and the software seemed
> to open correctly. I then tried with no success to open a spectrum - Bruker
> format if memory serves. Now when I try and open specview I get the
> following traceback.
>
> specView
> Model read finished. Duration 21.280381918
> Model validity check skipped
> Traceback (most recent call last):
> File
> "/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py",
> line 284, in showEvent
> self.setSpectra([spectrum,])
> File
> "/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py",
> line 842, in setSpectra
> self.activePanel.setSpectra(spectra)
> File
> "/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecPanel.py",
> line 256, in setSpectra
> self.glWidget.navToCenter(False)
> File
> "/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecGlPanel.py",
> line 2683, in navToCenter
> isoScales = self._getXyIsotopeScales()
> File
> "/exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecGlPanel.py",
> line 2496, in _getXyIsotopeScales
> defaultIso = isotopeScales['Other']
> KeyError: 'Other'
> Fatal Python error: PyEval_SaveThread: NULL tstate
> /exports/nas/exports/cse/chem/groups/bionmr/apps/ccpnmr/ccpnmr3.0/bin/specView:
> line 5: 14289 Aborted
> ${CCPNMR_TOP_DIR}/python2.6/bin/python2.6 -O
> ${CCPNMR_TOP_DIR}/ccpnmr3.0/python/ccpnmr/specView/SpecView.py $*
>
> I'm not sure what I did to mess this up.
>
> Hope you can help.
>
> Best wishes
>
> Andy
>
> --
> Dr Andy Herbert
> Department of Chemistry
> University of Edinburgh
> West Mains Road
> Edinburgh
> UK
> EH9 3JJ
> Tel: +44 (0)131 650 4704 or 650 4792
> Email: [log in to unmask]
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
|