Hello,
Normally I would have thought that deleting the setting file like you have
done would sort it. Well, assuming that is *the* settings file (it sounds
like it is). (It is somewhere different on my Mac.)
That u'\x00' is a null character. Where it is coming from I have no clue.
I'm going to have to ask Tim about this one.
Wayne
On Fri, 22 Feb 2013, Dr Andy Herbert wrote:
> and if I remove:
>
> ~/.config/CCPN/SpecView.conf
>
> Then the program starts with the following traceback.
>
> Model read finished. Duration 1.8530459404
> Model validity check skipped
> Traceback (most recent call last):
> File
> "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py",
> line 284, in showEvent
> self.setSpectra([spectrum,])
> File
> "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py",
> line 843, in setSpectra
> self.updateSidePanel()
> File
> "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/SpecViewMain.py",
> line 317, in updateSidePanel
> self.displayPanel.updateContents()
> File
> "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/DisplayPanel.py",
> line 397, in updateContents
> self.updateIsotopeScales()
> File
> "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/ccpnmr/specView/gui/DisplayPanel.py",
> line 201, in updateIsotopeScales
> if value != entryWidget.get():
> File "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/memops/qtgui/Entry.py",
> line 72, in get
> return self.convertText(self.text())
> File "/home/aherber2/apps/ccpnmr/ccpnmr3.0/python/memops/qtgui/Entry.py",
> line 132, in convertText
> return float(text)
> UnicodeEncodeError: 'decimal' codec can't encode character u'\x00' in
> position 1: invalid decimal Unicode string
>
>
> After this, I have a new Specview.conf which then means that on subsequent
> attempts I get the previously posted trace ending with isotopeScales['Other']
>
>
> Best wishes
>
> Andy
>
> Quoting Wayne Boucher <[log in to unmask]> on Fri, 22 Feb 2013 11:59:32
> +0000:
>
>> 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.
>>
>>
>
>
>
> --
> 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.
|