Progress bar bug breaks torch installation on Travis CI
See original GitHub issueEnvironment
- pip version: 18.1
- Python version: 3.5.6, 3.6.7, 3.7.1
- OS: Ubuntu Xenial
- CI: Travis
Description
Installing torch
with pip on Travis CI results in the following error:
Collecting torch>=0.4 (from -r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/f5/3b/0b8de6e654c2983898564226792c6f09d9bcaba97b7b29c40e4ed4ae43ed/torch-1.0.0-cp37-cp37m-manylinux1_x86_64.whl (591.8MB) 73% |███████████████████████▌ | 434.3MB 36.8MB/s eta 0:00:05 The job exceeded the maximum log length, and has been terminated.
Expected behavior
This shouldn’t be problematic. All other Python dependencies were successfully installed via pip on Travis CI.
How to Reproduce
- Create an empty GitHub repository
- Add a
.travis.yml
file that tries topip install torch
during theinstall
phase - Add Travis CI via GitHub Apps integration and initiate a build
Output
One of the times I submitted, I got lucky and saw the following log:
It appears that there is a bug in the progress bar. This may only affect very large downloads like torch
.
Known Workarounds
The following workaround solved the problem for me:
$ pip install --progress-bar off ...
It would be good to get the progress bar fixed though.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top GitHub Comments
The progress bar output in the Travis log looks just as “broken” for other downloads, too. The only difference is they don’t take as long, so the amount of garbage in the log is insufficient to go over the log size limit.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.