You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But looks like it's in psutil. I was able to hack it to work by changing psutil line 1455 with secsleft = int(int(energy_now) / int(power_now) * 3600)
Psutil does a / between int and bytes causing error and crash.
File "/home/purism/.asdf/installs/python/3.8.6/lib/python3.8/site-packages/psutil/__init__.py", line 2288, in sensors_battery
return _psplatform.sensors_battery()
File "/home/purism/.asdf/installs/python/3.8.6/lib/python3.8/site-packages/psutil/_pslinux.py", line 1455, in sensors_battery
secsleft = int(energy_now / power_now * 3600)
TypeError: unsupported operand type(s) for /: 'int' and 'bytes'
The text was updated successfully, but these errors were encountered:
Summary
Description
Issues when using bpytop on Librem5 phone 1st I reported the issue there.
But looks like it's in psutil. I was able to hack it to work by changing psutil line 1455 with
secsleft = int(int(energy_now) / int(power_now) * 3600)
Psutil does a
/
between int and bytes causing error and crash.The text was updated successfully, but these errors were encountered: