On Fri, May 8, 2015 at 5:05 PM, Skip Montanaro <skip.montan...@gmail.com> wrote:
>> [1] https://github.com/fluentpython/asyncio-tkinter
>
> Thanks for the reference. I had found that, but couldn't clone it. It took
> me awhile before I realized it was a Mercurial repo, not a Git repo.

That link [1] is for a Git repo. The Mercurial repo [2] where I found
the example originally has the broken code without my fixes. Victor
Stinner, who owns that repo, refused my pull request saying that he'd
prefer not to commit to maintaining the asyncio-tkinter adapter by
Dino Viehland. I understand his position, since Dino's code is really
a proof-of-concept.

[2] https://bitbucket.org/haypo/asyncio_staging

> I can run the tkapp2.py program, but only the "count sequentially" button
> works for me. Pushing either the callbacks or futures buttons, I get an "out
> of stack space" traceback:
>
> Traceback (most recent call last):
>   File "/home/skipm/.local/lib/python3.5/concurrent/futures/_base.py", line
> 297, in _invoke_callbacks
>     callback(self)
>   File "tkapp2.py", line 130, in words_loaded
>     self.after(0, words_loaded_update_ui)
>   File "/home/skipm/.local/lib/python3.5/tkinter/__init__.py", line 607, in
> after
>     return self.tk.call('after', ms, name)
> _tkinter.TclError: out of stack space (infinite loop?)
>
> I'm using Python 3.5 (whatever the cpython tip is as of a couple hours ago)
> and Tcl/Tk 8.5 on an openSuSE 12.2 system. I haven't looked into it, though
> I know basically squat about Tcl/Tk and even less about asyncio, so the odds
> of me figuring out the problem are likely slim.
>
> I don't see this problem on my Mac (OSX Yosemite, Python 3.5 a couple days
> older, Tcl/Tk 8.5).

This is working for me on OSX 10.9 with both Python 3.4 and Python 3.5
using the tkinter and the asyncio packages from the Python the
respective standard libraries. I hand-tested it again just now (sorry,
there are no automated tests for this toy example + POC).

Best,

Luciano


-- 
Luciano Ramalho
|  Author of Fluent Python (O'Reilly, 2015)
|     http://shop.oreilly.com/product/0636920032519.do
|  Professor em: http://python.pro.br
|  Twitter: @ramalhoorg

Reply via email to