-
Notifications
You must be signed in to change notification settings - Fork 284
unresponsive after gevent.monkey.patch_all() #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for this. Not sure what's going on, but this needs some investigation. |
I experienced the same issue, I could workaround it temporarily by doing:
(of course, threads are not replaced by greenlets in this case, but this was ok for me) Unfortunately it brought another problem: in the posix event loop some threads are created, I decided to go for my own gevent-friendly event loop, hopefully I will soon make a PR for the |
Definitely interested in a fix. Thank you for looking into it more deeply than I did. |
…t#112) The gevent-compliant event loop is activated by passing `gevent=True` to the `embed` method of `repl` module. The event loop code is heavily inspired from the prompt-toolkit POSIX event loop, adapted to gevent. More details in file `contrib/gevent_eventloop.py`
I finally made a PR, I hope it helps - I do not have much time to dedicate on this, but at least you should see how I solved the problem. I realize a new event loop should probably go to the prompt-toolkit project ? |
as it says, after I run:
ptpython becomes unresponsive with no error message. There may be a clue from running ptipython I get this error message before the terminal becomes unresponseive:
I'm using git clones of ptpython and prompt-toolkit from about an hour ago.
The text was updated successfully, but these errors were encountered: