It looks like when you compiled Analysis it unfortunately picked up a very
old version of Python (Python 1.5 I think). The Analysis installation
script asks for the Python directory. It first checks in /usr and if it
finds one there it asks the user if that is ok, otherwise it just asks the
user for the Python directory. (The script is not clever enough to
figure out that the Python in /usr might be 1.5, I guess that could be
added.) What is needed for Analysis is a Python directory which is >= 2.2
and also has Tcl/Tk compiled in with it. (If you use the distributed
Python and Tcl/Tk the installation script should lead you through
compiling those.)
So somehow the wrong Python was used. If you look in the ccpnmr1.0/c
directory you will find a file environment.txt, and near the bottom you
should find something like:
# Python
PYTHON_DIR = /home/wb104/python
PYTHON_INCLUDE_FLAGS = -I$(PYTHON_DIR)/include/python2.3
My guess is that in your case PYTHON_DIR probably says /usr. It should
point to a valid Python directory (valid in the sense given above). If
you correct that then from the ccpnmr1.0 directory go into ccpnmr/global,
ccpnmr/analysis and ccpnmr/clouds directories in turn and do "make clean"
in each followed by "make" in each. (In the next release there is going
to be a top-level Makefile which will mean you only need to do this at the
top and not worry about going into each of the directories in turn.)
Perhaps I should add that I am reading the error messages below to mean
that the code was compiled with the old Python and is being run with the
new Python. It's possible it's the other way around (the error message is
not that clear). In which case the solution is a lot easier. Just make
sure you are running Analysis with the 2.2 Python. If you are running
Analysis using the script in the bin directory then take a look at the
script "analysis" in there. It probably just says "python" at the
beginning. I thought that was all that was needed but it seems that you
actually need there instead $CCPNMR_TOP_DIR/bin/python. So that might
just sort it out for you. Alternatively make sure that the 2.2 Python
executable is before the 1.5 Python executable on your path.
Wayne
On Wed, 23 Feb 2005, Justin T Douglas wrote:
> Hi,
>
> I recently updated to Analysis1.0.1. When I start the
> program I get the following warnings. Did I do
> something wrong during installation?
>
> Justin
>
>
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py:48:
> RuntimeWarning: Python C API version mismatch for
> module BlockFile: This Python has API version 1011,
> module BlockFile has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py:48:
> RuntimeWarning: Python C API version mismatch for
> module ContourFile: This Python has API version 1011,
> module ContourFile has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py:48:
> RuntimeWarning: Python C API version mismatch for
> module PeakList: This Python has API version 1011,
> module PeakList has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py:48:
> RuntimeWarning: Python C API version mismatch for
> module SliceFile: This Python has API version 1011,
> module SliceFile has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py:48:
> RuntimeWarning: Python C API version mismatch for
> module WinPeakList: This Python has API version 1011,
> module WinPeakList has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/DataAnalysisBasic.py:48:
> RuntimeWarning: Python C API version mismatch for
> module FitMethod: This Python has API version 1011,
> module FitMethod has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PrintWindow.py:48:
> RuntimeWarning: Python C API version mismatch for
> module PdfHandler: This Python has API version 1011,
> module PdfHandler has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/PrintWindow.py:48:
> RuntimeWarning: Python C API version mismatch for
> module PsHandler: This Python has API version 1011,
> module PsHandler has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowDraw.py:48:
> RuntimeWarning: Python C API version mismatch for
> module ContourStyle: This Python has API version 1011,
> module ContourStyle has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowDraw.py:48:
> RuntimeWarning: Python C API version mismatch for
> module ContourLevels: This Python has API version
> 1011, module ContourLevels has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py:48:
> RuntimeWarning: Python C API version mismatch for
> module GlHandler: This Python has API version 1011,
> module GlHandler has version 1007.
> """
> /home/justin/Programs/ccpn/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisGui.py:48:
> RuntimeWarning: Python C API version mismatch for
> module MemCache: This Python has API version 1011,
> module MemCache has version 1007.
> """
> CCPNMR Analysis Version 1.0. Release 1 (Copyright
> 2003-2004 CCPN)
> Distribution created Wed Feb 23 11:20:09 2005
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Sports - Sign up for Fantasy Baseball.
> http://baseball.fantasysports.yahoo.com/
>
|