tkinter exception when using pyraf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-stdlib-extensions (Ubuntu) |
Fix Released
|
Undecided
|
Chris S |
Bug Description
Binary package hint: python-tk
Hi,
I have a problem when I'm using pyraf with feisty and all python (I didn't have this problem with edgy).
I just upgrade my computer to feisty with update-manager. I have iraf installed on my computer (an astronomical software) and it's working fine (still) but a very nice interface has been provided byt STSCI pyraf to use iraf with python. This software was wroking fine until the upgrade. Since each time I'm trying to use the different plot function in pyraf it's not working and I have a Tkinter exception:
Exception in Tkinter callback
Traceback (most recent call last):
File "lib-tk/
return self.func(*args)
File "/usr/lib/
self.runTask()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
(self, iraf.getVarDict()), redirKW)
File "/usr/lib/
irafprocess
File "/usr/lib/
self.slave()
File "/usr/lib/
xmit()
File "/usr/lib/
wcs = gki.kernel.
File "/usr/lib/
return self.stdgraph.
File "/usr/lib/
if not self.stdgraph: self.openKernel()
File "/usr/lib/
self.window()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.top.status = msgiobuffer.
File "/usr/lib/
self.
File "lib-tk/
self.
TclError: expected floating-point number but got "1.0"
--> Exception in Tkinter callback
PANIC in `/usr/local/
Traceback (most recent call last):
File "lib-tk/
return self.func(*args)
File "lib-tk/
func(*args)
File "/usr/lib/
self.
File "/usr/lib/
self.
AttributeError: PyrafCanvas instance has no attribute 'redraw'
I contact SCTSCI to find a solution to the problem and the person in charge ask me to do some test but run out of idea to solve this problem. It's seems that it's feisty dependant so it's why I'm putting this bug here. I think it's a very important bug because I know a lot of astronome using ubuntu and pyraf.
Here you'll find a copy of the mail exchange:
-------
Hi,
I have a problem with ubuntu feisty and pyraf. I'm not sure which is
responsible of this problem.
It's not impossible to plot anything with pyraf since the installation of
feisty. The error message is:
Traceback (most recent call last):
File "lib-tk/
return self.func(*args)
File "lib-tk/
func(*args)
File "/usr/lib/
idleRedraw
File "/usr/lib/
immediateRedraw
AttributeError: PyrafCanvas instance has no attribute 'redraw'
I tried with the version 2.4 and I have exactly the same problem.
I used the trac version and the official version 2.4 with the same result.
You can ask me to do any test,
Thanks
Nicolas
-------
Hi Nicolas,
Could you try running a test please?
python
>>>import Tkinter
>>>Tkinter.
Does it work?
And which plotting command is giving the error?
Does this work?
pyraf
-->prow dev$pix 12
-------
the first test is working fine, no error message, no warning and it's opening
the window.
The second test is not working and the error message is:
--> prow dev$pix 12
Traceback (innermost last):
File "<CL script CL1>", line 1, in <module>
iraf.
File "lib-tk/
self.
TclError: expected floating-point number but got "1.0"
--> Exception in Tkinter callback
PANIC in `/usr/local/
reader
Traceback (most recent call last):
File "lib-tk/
return self.func(*args)
File "lib-tk/
func(*args)
File "/usr/lib/
idleRedraw
self.
File "/usr/lib/
immediateRedraw
self.
AttributeError: PyrafCanvas instance has no attribute 'redraw'
error: graphics window `graphics1' doesn't exist
Thanks to look at my problem
-------
oups I forgot to tell you the command to plot:
I was just trying to do a simple:
--> splot dev$pix 1
Nicolas
ps: iraf is working fine
-------
Hi Hicolas,
I see a Tcl error message. What versions of python and Tcl/Tk are you running? If you are not sure, run the following:
python
>>> import Tkinter
>>> tk=Tkinter.Tk()
>>> tk.getvar(
>>> tk.getvar(
-------
From the package it seems that the tcl/tk are the 8.4.15-ubuntu1 version. It's
confirm by the commands you send.
The result are here. Do I have to fill a bug report for ubuntu? If yes what I
have to tell them exactly?
python
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> tk = Tkinter.Tk()
>>> tk.getvar(
u'/usr/lib/tk8.4'
>>> tk.getvar(
'/usr/lib/tcl8.4'
Thanks,
-------
Hi Nicolas,
The test below works for me with tcl/tk 8.4 and python 2.5.1 final on Solaris. Let me know if it gives an error message.
python
--> import Tkinter
--> canvas=
--> canvas.
--> canvas.
-------
It's working here too. The window who has been open is still blank but I don't
have any error message:
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
>>> canvas=
>>> canvas.
>>> canvas.
>>>
-------
Unfortunately I am running out of ideas. Is there an easy way to upgrade to python 2.5.1 final? I don't see anythin gin the release notes between 2.5.1.c1 and 2.5.1 that could cause or fix this but who knows...
-------
Thanks in advance to help to correct this bug.
Nicolas
Changed in python-stdlib-extensions (Ubuntu): | |
status: | Fix Committed → Fix Released |
With the STSCI we found a workaround this bug and it seems to be related to the well known bug https:/ /launchpad. net/ubuntu/ +source/ scribus/ +bug/37711
at least the solution is the same:
LC_ALL pyraf
and everything is working fine. So it's seems that the bug with the locale are not only related to qt/scim but to other library. I thinking that this bug is becoming to be very annoying and can be disastrous to the distribution (ubuntu is the only one touch by this bug!) or perhaps only the english speaker can use ubuntu?
At least it's working for me and perhaps that will help some people.
Thanks for ubuntu, my comments are only there because I like a lot this distribution but it's very difficult for me to advise this distribution to this kind of problem.