-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[feat]: Request for more output in stdout/stderr for non-interactive process #11121
Comments
Definitely an update of package installed would be good at a minimum. Adding some kind of rudimentary fixed-length percent update, e.g. output 100 full stops for each package, would be a significant improvement in monitoring the uv process' progress without an interactive terminal. Unless there is some other way for the calling process to see current download updates (even active polling)? |
We have an interactive progress bar for downloads, i assume that's not showing for you? Screencast.from.2025-01-31.11-16-49.webmCan you share which platform and terminal you're using; Are you applying any redirects of stdout/stderr? |
Hey, thanks for the quick response! The indicatif progress is great whenever we're observing via terminal on any platform. The issue we're facing is when stdout/stderr are not connected to a terminal, there is simply no output at all. We're using |
Apologies, forgot to answer everything. Tested on Windows 11 & Ubuntu 24. If we spawn If there is a proper / better way to interpret current state / progress from a calling process, we'd be happy to use that. |
Hm it's weird that we wouldn't write output when using @Gankra is considering allowing interaction with current state from a parent process using a json-lines output, but that's a bit separate. |
To be clear, there is some amount of output right now using |
Oh.. yeah the progress bars don't work in a non-interactive mode (and I wouldn't expect them to). They require repeated drawing in the terminal. I don't think we'll implement simple visibility into progress in this context — the json-lines output format is the way to go here. |
Ah sorry, by nothing, I meant nothing from the point where uv starts downloading until it exits (even if it's 20 packages). |
JSON output would be great! What sort of output would it look like? { name: "pyyaml", progress: "0.25" , state: "downloading" } Something like that? |
Summary
Hi!
We are using uv to install python venvs and pytorch in our desktop application. I previously posted our issue of not getting interactive output in a regular subprocess #9129.
Would it be possible to include more detailed output? Doesn't have to be interactive. The issue is that right now when we install a requirements.txt file, we don't see any output until everything is finished.
If I launch
uv pip instal torch torchvision torchaudio
, nothing is written to stdout or stderr until it's finished. Since torch with cuda is large, this can take a while.What would be ideal is:
Example
No response
The text was updated successfully, but these errors were encountered: