This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Pip: Wrong Showing of Progressbar when Downloading Modules
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Alex-Python-Programmer, cryvate
Priority: normal Keywords:

Created on 2020-08-28 03:44 by Alex-Python-Programmer, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg376017 - (view) Author: Alex (Alex-Python-Programmer) Date: 2020-08-28 03:44
1. Abstract
Command line in Windows the progress bar doesn't work like usual after about half of the downloading process.
Another remarkble bug is the length of the progressbar seems to be lengthened.

2. Reason(my opinion)
I noticed that this bug only happens when the rightmost character reaches the end of the cmd screen. I infer the reason of this bug from the phenomenon: when the progres bar is going to be lengthened, pip will delete the last line. Pip consider the line as an enter that the program output. However, the cmd consider the line as an enter whether it is output by the program or added by cmd itself because of the rightmost character reaches the end of the cmd screen. When pip make cmd delete the last line, pip want cmd to delete the whole progressbar, but cmd only deletes a part of the progressbar which are in the line 2.

3. Instance
An instance of the bug, showing what happenred when upgrading pip via py -m pip install --upgrade pip. You can see the progress bar wasn't deleted completly. 

C:\Users\******>py -m pip install --upgrade pip
Collecting pip
  Downloading pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
     |█████████████▌                  | 634 kB 21 kB/s eta 0:00:41
     |██████████████                  | 645 kB 21 kB/s eta 0:00:41
     |██████████████                  | 655 kB 21 kB/s eta 0:00:40
     |██████████████                  | 665 kB 21 kB/s eta 0:00:40
     |██████████████▌                 | 675 kB 23 kB/s eta 0:00:3
     |██████████████▌                 | 686 kB 23 kB/s eta 0:00:3
     |███████████████                 | 696 kB 23 kB/s eta 0:00:3
     |███████████████                 | 706 kB 33 kB/s eta 0:00:2
     |███████████████                 | 716 kB 33 kB/s eta 0:00:2
     |███████████████▌                | 727 kB 28 kB/s eta 0:00:
     |████████████████                | 737 kB 28 kB/s eta 0:00:
     |████████████████                | 747 kB 28 kB/s eta 0:00:
     |████████████████                | 757 kB 23 kB/s eta 0:00:
     |████████████████▌               | 768 kB 23 kB/s eta 0:00
     |████████████████▌               | 778 kB 23 kB/s eta 0:00
     |█████████████████               | 788 kB 20 kB/s eta 0:00
     |█████████████████               | 798 kB 20 kB/s eta 0:00
     |█████████████████               | 808 kB 20 kB/s eta 0:00
     |█████████████████▌              | 819 kB 20 kB/s eta 0:0
     |█████████████████▌              | 829 kB 20 kB/s eta 0:0
     |██████████████████              | 839 kB 25 kB/s eta 0:0
     |██████████████████              | 849 kB 25 kB/s eta 0:0
     |██████████████████              | 860 kB 19 kB/s eta 0:0
     |██████████████████▌             | 870 kB 19 kB/s eta 0:
     |███████████████████             | 880 kB 17 kB/s eta 0:
     |███████████████████             | 890 kB 17 kB/s eta 0:
     |███████████████████             | 901 kB 17 kB/s eta 0:
     |███████████████████▌            | 911 kB 17 kB/s eta 0
     |███████████████████▌            | 921 kB 17 kB/s eta 0
     |████████████████████            | 931 kB 12 kB/s eta 0
     |████████████████████            | 942 kB 12 kB/s eta 0
     |████████████████████            | 952 kB 12 kB/s eta 0
     |████████████████████▌           | 962 kB 13 kB/s eta
     |█████████████████████           | 972 kB 13 kB/s eta
     |█████████████████████           | 983 kB 8.9 kB/s eta
     |█████████████████████           | 993 kB 6.7 kB/s eta
     |█████████████████████▌          | 1.0 MB 6.7 kB/s et
     |█████████████████████▌          | 1.0 MB 6.7 kB/s et
     |██████████████████████          | 1.0 MB 6.7 kB/s et
     |██████████████████████          | 1.0 MB 6.7 kB/s et
     |██████████████████████          | 1.0 MB 8.4 kB/s et
     |██████████████████████▌         | 1.1 MB 8.4 kB/s e
     |██████████████████████▌         | 1.1 MB 8.4 kB/s e
     |███████████████████████         | 1.1 MB 8.8 kB/s e
     |███████████████████████         | 1.1 MB 8.8 kB/s e
     |███████████████████████         | 1.1 MB 24 kB/s et
     |███████████████████████▌        | 1.1 MB 24 kB/s e
     |████████████████████████        | 1.1 MB 16 kB/s e
     |████████████████████████        | 1.1 MB 16 kB/s e
     |████████████████████████        | 1.1 MB 14 kB/s e
     |████████████████████████▌       | 1.1 MB 14 kB/s
     |████████████████████████▌       | 1.2 MB 14 kB/s
     |█████████████████████████       | 1.2 MB 14 kB/s
     |█████████████████████████       | 1.2 MB 12 kB/s
     |█████████████████████████       | 1.2 MB 12 kB/s
     |█████████████████████████▌      | 1.2 MB 12 kB/s
     |██████████████████████████      | 1.2 MB 12 kB/s
     |██████████████████████████      | 1.2 MB 12 kB/s
     |██████████████████████████      | 1.2 MB 19 kB/s
     |██████████████████████████▌     | 1.2 MB 19 kB/
     |██████████████████████████▌     | 1.2 MB 20 kB/
     |███████████████████████████     | 1.3 MB 15 kB/
     |███████████████████████████     | 1.3 MB 15 kB/
     |███████████████████████████     | 1.3 MB 15 kB/
     |███████████████████████████▌    | 1.3 MB 15 kB
     |████████████████████████████    | 1.3 MB 20 kB
     |████████████████████████████    | 1.3 MB 20 kB
     |████████████████████████████    | 1.3 MB 14 kB
     |████████████████████████████    | 1.3 MB 14 kB
     |████████████████████████████▌   | 1.3 MB 14 k
     |█████████████████████████████   | 1.4 MB 14 k
     |█████████████████████████████   | 1.4 MB 14 k
     |█████████████████████████████   | 1.4 MB 14 k
     |█████████████████████████████▌  | 1.4 MB 14
     |█████████████████████████████▌  | 1.4 MB 14
     |██████████████████████████████  | 1.4 MB 12
     |██████████████████████████████  | 1.4 MB 9.4
     |██████████████████████████████  | 1.4 MB 9.4
     |██████████████████████████████▌ | 1.4 MB 9.
     |███████████████████████████████ | 1.4 MB 9.
     |███████████████████████████████ | 1.5 MB 9.
     |███████████████████████████████ | 1.5 MB 11
     |███████████████████████████████▌| 1.5 MB 1
     |███████████████████████████████▌| 1.5 MB 1
     |████████████████████████████████| 1.5 MB 1
     |████████████████████████████████| 1.5 MB 1
4 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
  WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:\Use
rs\Administrator\AppData\Local\Programs\Python\Python38\Scripts' which is not on
 PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed pip-20.2.2

C:\Users\******>
msg376029 - (view) Author: Henk-Jaap Wagenaar (cryvate) * Date: 2020-08-28 10:17
Thanks for the report, that does look like unfriendly UX.

pip is maintained separately and then vendored (included/packaged in). Could you please file an issue here instead: https://github.com/pypa/pip/issues (I would do so myself, but as I do not develop on Windows might not be best placed to provide feedback).
msg376548 - (view) Author: Alex (Alex-Python-Programmer) Date: 2020-09-08 06:26
@cryvate: Okay, and the new issue is crated at <https://github.com/pypa/pip/issues/8852>.
History
Date User Action Args
2022-04-11 14:59:35adminsetgithub: 85817
2020-09-08 06:26:47Alex-Python-Programmersetmessages: + msg376548
2020-08-28 13:43:29benjamin.petersonsetstatus: open -> closed
resolution: third party
stage: resolved
2020-08-28 10:17:36cryvatesetnosy: + cryvate
messages: + msg376029
2020-08-28 03:44:36Alex-Python-Programmercreate