tcl / tk without threads??!!

Paulo Cavalcanti promac at gmail.com
Fri Aug 7 22:12:09 UTC 2009


On Fri, Aug 7, 2009 at 7:04 PM, Paulo Cavalcanti <promac at gmail.com> wrote:

>
>
> On Fri, Aug 7, 2009 at 6:27 PM, Paulo Cavalcanti <promac at gmail.com> wrote:
>
>>
>> Can someone explain why tcl/tk is
>> compiled using:
>>
>> %configure --disable-threads
>>
>> This breaks some python programs, which use threads and Tk, with the
>> following error:
>>
>> Unhandled exception in thread started by <function updateClock at
>> 0x7fb431cc28c0>
>> Traceback (most recent call last):
>>   File ".//08-clock-bezier.py", line 188, in updateClock
>>     setClock (h,m,s)
>>   File ".//08-clock-bezier.py", line 173, in setClock
>>     clock.itemconfigure("hands", fill=colors[sector])
>>   File "/usr/lib64/python2.5/lib-tk/Tkinter.py", line 2243, in
>> itemconfigure
>>     return self._configure(('itemconfigure', tagOrId), cnf, kw)
>>   File "/usr/lib64/python2.5/lib-tk/Tkinter.py", line 1188, in _configure
>>     self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
>> _tkinter.TclError: out of stack space (infinite loop?)
>>
>> Please, check this issue:
>>
>>
>> http://mail.python.org/pipermail/python-bugs-list/2008-September/060100.html
>>
>> It happens on F10 and F11.
>>
>> Thanks.
>>
>>
> and, yes. Recompiling tcl using
>
>  %configure --enable-threads
>
> fix the issue. I have just tested it.
>

and this is the link for a program that makes the problem show up:

http://orion.lcg.ufrj.br/python/labs2/08-clock-bezier.py

-- 
Paulo Roma Cavalcanti
LCG - UFRJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20090807/edb1e98f/attachment.html 


More information about the devel mailing list