incompatible with python docker sdk #1304
Labels
duplicate 🗐
Seen it before
invalid ⛔
Not-an-issue or upstream (not-our-issue)
need-feedback 📢
We need your response (question)
I am trying to run a python program using
tqdm
through the docker python sdk: https://docker-py.readthedocs.io/en/stable/index.html.The are doing some weird stuff with the
stdout
andstderr
, it looks to me like those are being passed through some form of socket and then captured and returned as a stream ofbytes
.This seems to not go well with
tqdm
, I am not an expert on this, but it looks like output only really gets returned when an newline is detected (but I might be wrong here).I am not sure if this is even the right place or if it would be a more suitable to file an issue with the docker sdk people, but I thought I have to start somewhere.
Here code to reproduce what I am talking about:
It only returns the status bar at the very end. I hope I used the entry point properly with the
tqdm
docker image, but I also tested this with some other images and it produced the same result.I run this with
Python 3.8.10
and the docker sdk version5.0.3
installed withpip install docker
.I was hoping there would be some work around, maybe replace
\r
with something like\r\n
and then parse it in the output, but not sure how I would go about that expect for adding additionalprint
statements myself.By the way
tqdm
is a really great tool, thanks for putting so much work into it.The text was updated successfully, but these errors were encountered: