I think I'll soup up the installation script to warn people about Python
1.5. The script itself ought to run with Python 1.5 (although
occasionally when I do upgrades I forget and code to a newer style)
because that might be the only thing people have on their computer when
they get started. But if so, Python 2.2 (or higher) definitely needs to
be compiled. (And also whatever Python is used needs to have Tcl/Tk
compiled in with it.)
Wayne
On Wed, 23 Feb 2005, Justin T Douglas wrote:
> I first tried to install Analysis without any 3rd
> party software (answering 'no' to all the questions
> the installation script asks). Then, predictably,
> Analysis would not open. Tim suggested that this was
> likely because I was using an old version of Python
> (you are correct 1.5). So I installed Python2.2 from
> the CCPN website and reran the installation script.
> The script correctly guessed where I had installed
> Python2.2 and everything else proceeded smoothly.
>
> It seems that the correct Python was used because the
> environment.txt says the following:
>
> # Python
> PYTHON_DIR =
> /home/justin/Programs/ccpn/ccpnmr/python2.2
> PYTHON_INCLUDE_FLAGS =
> -I$(PYTHON_DIR)/include/python2.2
>
> I did follow your advice and recompile the code in
> ccpnmr/ccpnmr1.0/c/ccpnmr/global, clouds and analysis
> via the "make clean" and "make".
>
> Now Analysis opens without error messages. It seems
> like your first diagnosis was correct.
>
> > the code was compiled with the old Python and
> > is being run with the
> > new Python.
>
> I would presume that when I ran the installation
> script the first time everything was compiled with
> Python1.5. Just to make you aware the INSTALL file
> says
>
> "To install the code go into the ccpnmr directory (the
> top-level
> directory of the distribution) and run the
> installCode.py script:
>
> python installCode.py analysis
>
> This assumes that your computer has a working version
> of Python
> (any version >= 1.5 should work), which is normally
> the case."
>
> In any case I compiled everything with Python1.5, but
> when I tried to run Analysis, it wouldn't work. Then
> when I installed Python2.2 I could run Analysis
> (albeit, run Analysis improperly), even though it was
> compiled with Python1.5. Perhaps you should strongly
> recommend users install Python2.2 or greater before
> running the installation script?
>
> Thank you very much,
>
> Justin
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
>
|