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
ResourceWarning: unclosed event loop on macOS, within pytest #12203
Comments
Damn. Thanks. If you can reproduce easily and dont' mind enabling tracemalloc that should change the error message to tell you where this eventloop was created; which should help to debug. |
It looks like the problem vanished again. :/. If it comes out again I'll try to give it a deeper look. Thanks! |
I'm hitting this too and have reproduced it in a small test project available at https://github.com/mattiasa/ipython-issue-12203/ I'm reproducing this on OSX 10.14.6 with both Python 3.6.8 and 3.8.3. To reproduce:
|
I'm not allowed to reopen this issue. Let me know if you want me to file a new issue instead. |
Just to verify, I can reproduce the issue as well, at the same line in prompt_toolkit's application.py:808. Is there any quickfix to just suppress the warning for now? It's really hindering to the debugging process due to all the noise. |
We're getting this in a (linux) docker container, in an Ubuntu 18.04 image with ipython 7.23.1 on Python 3.7.5. Frequently appears in stderr at random:
every couple of inputs while ipdb-ing:
I'm not sure if this issue belongs in the ipython or ipdb repo. |
@craigds could you please give complete reproduction steps here? I.e. the image ID + commands? |
it is a private build based on ubuntu 18.04. i'll try and make a minimal test case i can share |
@MrMino I didn't get anywhere with trying to simplify our largish docker container into anything vaguely shareable. I did try setting
doesn't look very helpful to me, but that's all I have. I made this happen by typing I'm happy to just filterwarnings this away in our app, but thought you might like to see this before I do. |
I managed to reproduce it and created a Dockerfile for it.
It's still there with I think it only happens when |
Any updates on this problem? There are too many noisy warnings during debugging. Or any method to suppress these warnings temporarily? |
@mzr1996 The way to temporarily suppress warnings it to set the environment variable |
I just updated command line tools and macOS to
10.15.4
, I'm within a virtualenv, usingipdb
withinpytest
, Python v. 3.7.7. Don't know if the update is related.I'm getting the following error:
Randomly in the
ipdb
prompt.The text was updated successfully, but these errors were encountered: