That could be one of several things. The error message ought to be
better. Failing that, we can find out what the real problem is by editing
the file
ccpnmr1.0/python/ccpnmr/analysis/Analysis.py
There is code starting around line 91:
try:
from memops.c.BlockFile import BlockFile
from ccpnmr.c.ContourFile import ContourFile
from ccpnmr.c.PeakList import PeakList as CPeakList
from ccpnmr.c.SliceFile import SliceFile
from ccpnmr.c.WinPeakList import WinPeakList as CWinPeakList
except:
print 'Warning, the Analysis module will not work, you need to compile C
code.'
BlockFile = ContourFile = CPeakList = SliceFile = CWinPeakList = None
Just below the "except" put a new line with "raise" as shown below (the
whitespace matters):
try:
from memops.c.BlockFile import BlockFile
from ccpnmr.c.ContourFile import ContourFile
from ccpnmr.c.PeakList import PeakList as CPeakList
from ccpnmr.c.SliceFile import SliceFile
from ccpnmr.c.WinPeakList import WinPeakList as CWinPeakList
except:
raise
print 'Warning, the Analysis module will not work, you need to compile C
code.'
BlockFile = ContourFile = CPeakList = SliceFile = CWinPeakList = None
and the proper error message should be printed on your screen. Once we
know that we ought to be able to figure out how to fix it.
Wayne
On Wed, 24 Aug 2005, Eve Brook wrote:
> Hi
>
> I've been trying to install the latest version of analysis to interpret
> some relaxation data. Using the CCPN supplied versions of Tcl/Tk and
> Python compilation and installation of analysis completes without errors.
> However on running analysis I get the following:
>
> Warning, the Analysis module will not work, you need to compile C code.
> Warning, the ViewStructureFrame module will not work, you need to compile
> C code.
> Warning, the WindowPopup module will not work, you need to compile C code.
> CCPNMR Analysis Version 1.0. Release 5 (Copyright 2003-2004 CCPN)
>
> Analysis starts but when I open my project I get the following errors:
>
> >>> Warning: spectrum "wgt1_0.008625" missing some information required to
> contour spectrum
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr4/eveb/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr4/eveb/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line
> 220, in ok
> if (not self.apply()):
> File
> "/usr4/eveb/ccpnmr/ccpnmr1.0/python/memops/editor/OpenProjectPopup.py",
> line 142, in apply
> self.callback(self.project)
> File
> "/usr4/eveb/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 859, in initProject
> Analysis.initProject(self, project)
> File "/usr4/eveb/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 207, in initProject
> self.initSpectra()
> File "/usr4/eveb/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 726, in initSpectra
> self.initPeakList(peakList, initialising=True)
> File "/usr4/eveb/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 1290, in initPeakList
> self.setupCPeakList(peakList)
> File "/usr4/eveb/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
> line 547, in setupCPeakList
> peakList.cPeakList = CPeakList(npoints)
> TypeError: 'NoneType' object is not callable
>
> This project opens fine in version 1.0.3 so there is nothing wrong with
> the data.
>
> What do the "you need to compile C code" errors mean? Is this why my
> project doesn't open or is something else wrong as well?
>
>
> Thanks
>
>
> Eve
> --
>
|