[BUG]ZeroDivisionError: integer division or modulo by zero
See original GitHub issueDescribe the bug
At startup i get the error: ZeroDivisionError: integer division or modulo by zero
To Reproduce
Start bpytop
Expected behavior
start normaly
Screenshots
Info (please complete the following information):
-
bpytop version:
bpytop -v
bpytop version: 1.0.50 -
psutil version:
bpytop -v
(version 5.7.0 or above is required) psutil version: 5.7.3 -
(Linux) Linux distribution and version: Linux version 4.19.107-Unraid (root@Develop) (gcc version 9.2.0 (GCC)) #1 SMP Thu Mar 5 13:55:57 PST 2020
-
(OSX/FreeBSD) Os release version:
-
Terminal used: terminator
-
Font used: Ubuntu Regular 11
-
Python version,
python3 --version
(version 3.6 or above is required): Python 3.9.0
Additional context
contents of ~/.config/bpytop/error.log
27/11/20 (01:35:56) | ERROR: Data collection thread failed with exception: integer division or modulo by zero
Traceback (most recent call last):
File "/usr/lib64/python3.9/site-packages/bpytop.py", line 2600, in _runner
collector._draw()
File "/usr/lib64/python3.9/site-packages/bpytop.py", line 2873, in _draw
CpuBox._draw_fg()
File "/usr/lib64/python3.9/site-packages/bpytop.py", line 1752, in _draw_fg
out += (f'{THEME.inactive_fg} ⡀⡀⡀⡀⡀{Mv.l(5)}{THEME.gradient["temp"][min_max(cpu.cpu_temp[0][-1], 0, cpu.cpu_temp_crit) * 100 // cpu.cpu_temp_crit]}{Graphs.temps[0](None if cls.resized else cpu.cpu_temp[0][->
ZeroDivisionError: integer division or modulo by zero
27/11/20 (01:35:57) | WARNING: Exiting with errorcode (1). Runtime 0:00:02
(try running bpytop with --debug
flag if error.log is empty)
hope i get all right 😃 when you need additional information feel free to ask 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@wuast94 Should be fixed in v1.0.51
python3 -c “import psutil; print(psutil.sensors_temperatures())”:
sensors: