Hello,
It looks like you are using Python 2.6, and Analysis was probably compiled
against 2.5 (or 2.4) so that would make it unhappy. So:
cd /home/magnusl/CCPN/ccpnmr/ccpnmr2.0/c
[ edit environment.txt and change 2.5 (or whatever) to 2.6 for Python ]
make clean
make
Well, hopefully Python 2.6 on your system has been installed with Tkinter.
So you can do:
> python
>>> import Tkinter
>>> r = Tkinter.Tk()
and if that works then you are ok.
Well, it's possible you will also need to change the Tcl/Tk settings in
environment.txt as well, dependent on what Tcl/Tk version Python 2.6
is using. (If you start up Python and then find its process number and
then do "lsof -p process_number" you can find what Tcl/Tk it is picking
up.)
Wayne
On Mon, 22 Jun 2009, Magnus Lundborg wrote:
> Hello again,
>
> I just noticed that this happens to other projects as well. A few weeks ago I
> updated to Ubuntu 9.04. Perhaps there is some problem with the versions of
> python or tk or something.
>
> /Magnus
>
> Magnus Lundborg wrote:
>> Hello,
>>
>> I just converted a project from 1.0 to 2.0. When I open it in analysis
>> (after having set the spectra paths to point at the right places) the
>> spectra don't show up in the windows. I get this error repeatedly in the
>> terminal:
>> Exception in Tkinter callback
>> Traceback (most recent call last):
>> File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
>> return self.func(*args)
>> File
>> "/home/magnusl/CCPN/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/popups/WindowPopup.py",
>> line 3710, in motion
>> w = canvas.canvas_width
>> AttributeError: WindowCanvas instance has no attribute 'canvas_width'
>>
>> Before that I also got a few instances of:
>>
>> Exception in Tkinter callback
>> Traceback (most recent call last):
>> File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
>> return self.func(*args)
>> File
>> "/home/magnusl/CCPN/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/popups/WindowPopup.py",
>> line 3652, in resize
>> self.setupWidgetHandler(canvas, isCanvas=True)
>> File
>> "/home/magnusl/CCPN/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/popups/WindowPopup.py",
>> line 3293, in setupWidgetHandler
>> widget.handler = self.handlerClass(widget, *self.handlerArgs)
>> error: could not get main window, possibly different Python Tcl/Tk and
>> Analysis Tcl/Tk
>>
>> Do you have any idea what the problem is?
>>
>> Thanks
>> /Magnus
>>
>
>
> --
> Magnus Lundborg, ph.D. Student
> Stockholm University
> Department of Organic Chemistry
> Arrhenius Laboratory
> S-106 91 Stockholm
> Sweden
> E-mail address: [log in to unmask]
>
|