Print

Print


Hello,

The example we had in the lab here seems to have somehow fixed itself (not
sure what that was about!).  So this is a bit of a stab in the dark.  But
we think that the problem might be that one or more of the source code
files (these end in *.py) is incompatible with the Python compiled files
(these end in *.pyc or *.pyo) and the Python inspection mechanism (used
just to report a deprecation message) is falling over as a result.  So as
a first step I would recommend doing the following, starting in the ccpnmr
directory (there may be no pyc files, or no pyo files, so some of the rm
statements below might do nothing):

  > cd ccpnmr1.0/python
  > rm */*/*.pyc
  > rm */*/*.pyo
  > rm */*/*/*.pyc
  > rm */*/*/*.pyo
  > rm */*/*/*/*.pyc
  > rm */*/*/*/*.pyo

(Remember pyc and pyo not py!)

Then try starting up again and see what happens.  If this still fails can
you gzip tar the project up (so the PROJECT.xml file and the PROJECT/
directory, but not the spectrum data files) and send it to us?  If it
fails for the same reason then don't bother with the error message
but if it fails for another reason then send us the new error message as
well.

Wayne

On Fri, 19 Oct 2007, Gina Pagani wrote:

> Hi, I just inherited project that has been dormant since last summer.
> Wen trying to load the old project files, I get the error shown at the
> end of the email.
> I am new to analysis software, but have gone through the tutorial.
> any thoughts?
> Gina Pagani
> Cocco lab
> UC Irvine
>
> Error dereferencing link to Method from key:
> [4]
> Error dereferencing method for object ccp.nmr.Nmr.PeakIntensity with
> (partial) key :
> ['auto1192820709.14', 1, 1, 1, 1, None]
>
> last xml element read:
> </_StorageUnit>
>
>
> parser state was:
> setting links and multiattributes
>
> ERROR loading xml ccp.nmr.Nmr ccp/Nmr.xml
> Exception in Tkinter callback
> Traceback (most recent call last):
>    File "/usr/local/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
>      return self.func(*args)
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py"
> , line 227, in ok
>    File
> "/usr/local/ccpnmr/ccpnmr1.0/python/memops/editor/OpenProjectPopup.py", line
> 142, in ap
> ply
>      self.callback(self.project)
>    File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 929, in ini
> tProject
>      Analysis.initProject(self, project)
>    File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line
> 406, in initProj
> ect
>      self.initTopObjects(project)
>    File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py", line
> 195, in initTopO
> bjects
>      if not project.currentNmrProject:
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/api/Implementatio
> n.py", line 18782, in getCurrentNmrProject
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/api/Implementatio
> n.py", line 13173, in findFirstNmrProject
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/api/Implementatio
> n.py", line 9066, in load
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/ccp/xml/nmr/Nmr.py",
> lin
> e 114, in load
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.
> py", line 425, in load
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.
> py", line 614, in doLoad
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/format/xml/XmlIO.
> py", line 1100, in loadDelayedData
>    File
> "/usr/local/ccpnmr/temporaryReleaseDir/ccpnmr/ccpnmr1.0/python/memops/general/Implement
> ation.py", line 285, in getByKey
>    File "/usr/local/lib/python2.4/inspect.py", line 819, in stack
>      return getouterframes(sys._getframe(1), context)
>    File "/usr/local/lib/python2.4/inspect.py", line 800, in getouterframes
>      framelist.append((frame,) + getframeinfo(frame, context))
>    File "/usr/local/lib/python2.4/inspect.py", line 775, in getframeinfo
>      lines, lnum = findsource(frame)
>    File "/usr/local/lib/python2.4/inspect.py", line 437, in findsource
>      if pat.match(lines[lnum]): break
> IndexError: list index out of range
>