Hello Giacomo,
This is the root of your error:
> ( 3 times ) TkHandler.error: could not get main window, possibly different Python Tcl/Tk and Analysis
> Tcl/Tk Exception in Tkinter callback
And occurs because the version of Tcl/Tk used when compiling python is different from the one used when you compiled analysis.
First, make sure that the python you are using to run analysis is definitely the one that you compiled against (sometimes system python can sneak in here).
So: try
$ /<path to python>/bin/python -i /<ccpnmr root>/AnalysisGui.py
and see if that produces the same error.
Next, try running that python 2.4 by itself:
$ /<path to python>/bin/python
and importing Tkinter - the Tcl/Tk interface
>>> import Tkinter
>>> Tkinter._test()
This should tell you which Tcl/Tk your python 2.4 was compiled against. Hopefully it matches Tk 8.4
Once you've tried this, let us know what happened, although I must add that we can't continue to support Analysis v1 forever and further support will be limited to v2 at some point. The project upgrade mechanisms should work, and if they don't we would be most interested to know why (and then fix). If you could send a project (off list) that fails for you we would be glad to fix it.
Hope that helps,
Dan
On 26 Nov 2009, at 11:27, Giacomo Quilici wrote:
> Good morning, we have some problem in opening old projects of ccpnmr version1. We know that it's possible to convert them into version 2 and in some cases we did it succesfully, but they are a lot and some of them are huge, so it could be better use them with the old version 1.
> We had to remove the software and now we find some trouble in the installation:
>
>
>
> The CCPNMR v.1 has been installed from scratch (many prjects are still in the old format) compiling
>
> Python 2.4
> Tcl 8.4
> Tk 8.4
> Mesa 6.0
>
> and updated.
> the program starts correctly, converts paths (or minor modification are required) and the project is
> opened. the spectra, peaks etc are still there (e.g., peaks can be browsed) but there is no way to see
> anything on the screen.
> the errors that are (many times) prompted in the shell are the following:
>
> ( 3 times ) TkHandler.error: could not get main window, possibly different Python Tcl/Tk and Analysis
> Tcl/Tk Exception in Tkinter callback
>
>
> ( 22 times ) AttributeError: WindowCanvas instance has no attribute 'canvas_width'
>
> Exception in Tkinter callback
>
> Is the thing correctable by means of manual editing of files ? Or what do we require for fixing the
> problem ?
> anyway we will try to convert the project from version 1 to version 2 via the web interface.
>
> Thanks for your attention
>
> Giacomo Quilici
>
> Dulbecco Telethon Institute c/o S. Raffaele Scientific Institute
> Center of Genomics, BioInformatics and BioStatistics
> Biomolecular NMR Laboratory 1B4
> Via Olgettina 58
> 20132 Milano
> Italy
>
>
>
>
>
> Crea e condividi i tuoi filmati con Movie Maker
Daniel O'Donovan
[log in to unmask]
|