Hello,
What kind of spectrum file were you trying to open? The program thinks
you are trying to open an Azara format par file there, and was that what
you were trying to do? I can see that that bit of code would fall over if
it hasn't found what it wanted, but I just tried to open a Bruker file
claiming it was Azara format and it fell over before it got to that stage.
Wayne
On Mon, 2 Mar 2009, Magnus [iso-8859-1] Kjærgaard wrote:
> When I try to open a spectrum I get the following error:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/local/ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line
> 1403, in __call__
> return self.func(*args)
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/popups/OpenSpectrum.py",
> line 204, in openSpectra
> spectrum = self.openSpectrum(exptName, specName, fileName, windowOpt,
> shiftList)
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/popups/OpenSpectrum.py",
> line 454, in openSpectrum
> params = clazz(file)
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/spectra/params/AzaraParams.py",
> line 16, in __init__
> ExternalParams.__init__(self, externalParams)
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/spectra/params/ExternalParams.py",
> line 79, in __init__
> self.makeNewParams()
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/spectra/params/ExternalParams.py",
> line 144, in makeNewParams
> self.parseFile()
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/spectra/params/AzaraParams.py",
> line 23, in parseFile
> procParData.read()
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/azara/processingParsIO.py",
> line 137, in read
> self.parseFields(fields)
> File
> "/usr/local/ccpnmr/ccpnmr2.0/python/ccp/format/azara/processingParsIO.py",
> line 161, in parseFields
> if not numFields:
> UnboundLocalError: local variable 'numFields' referenced before assignment
>
>
> It has worked for me before, and I'm not aware that I have changed any
> settings. Also the problem is independent of the spectrum I try to open
> and the project that I'm in...
>
> Magnus
>
|