Closed brando90 closed 2 years ago
CC'ing myself.
The random part makes me wonder a bit, that could be due to a timing issue but it's still a bit weird.
In any case, dill seems to call some functions that trigger the progressbar to run. My guess would be that pickle attempts to iterate the progressbar which logically triggers it because that is part of the expected API.
I would guess that making the progressbar pickleable would fix it, but I fear that could make for false promises. While most parts should be pickle-safe, I am not a 100% certain...
Is there any use for making the progressbar dill/pickle safe?
The new beta release has a fix for the issue. I'm still testing it so I'm not entirely sure when it will be stable though :)
Description
when I try to check if objects that reference a bar is pickable I get random prints of progress bars. e.g.
This doesn't seem correct to me.
Code
Versions
import sys; print(sys.version)
,import sys; print(sys.version) 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ]
import progressbar; print(progressbar.__version__)
related: