-
Notifications
You must be signed in to change notification settings - Fork 87
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
Getting an infinite loop while using pyfakefs together with tqdm on MacOS #570
Comments
Hm, I cannot reproduce this. I had your example program run in the different CI environment, and as you can see, there seems to be no problem. Maybe I misunderstood what you are doing? |
pip list
|
Yes it also works in other CI env (e.g. https://repl.it/join/xrhsucag-introkun). |
Thanks - that will be difficult to reproduce. I don't have a Mac, so I can't reproduce this locally for this specific enviroment... Can you try the same test in a minimal virtualenv, that has only pyfakefs and tqdm? If that also fails, it would rule out that other packages are responsible. |
It's same on clean env:
|
Ok, thanks - so I guess it has somehow to do with |
The CI tests use MacOS 10.15.7 and Python 3.8.6 - maybe the code has changed from 3.8.5 to 3.8.6? I will check. |
Nope, nothing substantially has changed... |
No idea how to do that. 'print(line)' doesn't work with error 'ValueError: I/O operation on closed file.' |
I see - locally I just don't get to this line, so I can't test it here. I currently don't have an idea how to proceed without being able to reproduce the problem, and I don't have more time today... I'll see if I can think of something - sorry I couldn't help. |
I tried both under Linux and Windows (as I wrote - don't have a Mac), with tqdm under Python 3.8, and the resource tracker code didn't get called in both cases. As I have no idea why and how it is called in your case, I'm giving up for the moment. Let me know if you have some new information. |
@introkun - did you get anywhere with this problem? I'm inclined to close the issue if we have no way to reproduce it. |
Closing as not reproducible for now - feel free to reopen if you have more information. |
Describe the bug
Getting an infinite loop while using pyfakefs together with tqdm on MacOS.
I can see in the stdout:
Switching to unittest module it solves the issue.
How To Reproduce
MacOS: Big Sur, 11.0.1 (20B29)
Python (in miniconda): 3.8.5
Your enviroment
The text was updated successfully, but these errors were encountered: