fury-gl / fury

FURY - Free Unified Rendering in pYthon.
https://fury.gl
Other
230 stars 163 forks source link

Download progress bar tries to use the tput command to determine the width of the terminal to adjust the width of the progress bar, however, when run on windows, this leaves an error message #738

Closed Sailesh-2209 closed 1 year ago

Sailesh-2209 commented 1 year ago

Description

When using any command that downloads textures, images or any other content, a download progress bar is displayed. The progress bar width is set dynamically based on the width of the terminal. The width of the terminal is determined by using the tput command, which is only available on Unix like machines and not on windows. This causes an error message to be printed out on the terminal every time the download progress bar is shown.

image

Way to reproduce

[If reporting a bug, please include the following important information:]

fetch_viz_textures()


- [ ] Operating system and versions (run `python -c "from fury import get_info; print(get_info())"`)
      {'fury_version': '0.8.0', 'pkg_path': 'C:\\Users\\saile\\Documents\\Sailesh\\OpenSource\\fury-test\\venv\\lib\\site-packages\\fury', 'commit_hash': 'b937ff3418e7c64b0fa89921a54c083ff78dc055', 'sys_version': '3.9.12 (main, Apr  4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]', 'sys_executable': 'C:\\Users\\saile\\Documents\\Sailesh\\OpenSource\\fury-test\\venv\\Scripts\\python.exe', 'sys_platform': 'win32', 'numpy_version': '1.24.1', 'scipy_version': '1.10.0', 'vtk_version': '9.2.5', 'matplotlib_version': '3.6.3'}