1

I'm trying to use gpiozero LoadAverage to get the average system load for display on a small OLED plate. The problem is, any time I try to assign LoadAverage().load_average to a variable, it generates a

<_io.TextIOWrapper name='/proc/loadavg' mode='r' encoding='UTF-8'>

Any suggestions on how I can get the load average from gpiozero without it generating these messages? I'm not a python programmer so I'm trying to hack stuff together into the adafruit stats.py script.

Scott
  • 7,983
  • 2
  • 26
  • 41
  • Ditto, its some trace in the lower levels, but without a remote debugger, not possible to find the source of the errant printing statement. –  Oct 29 '21 at 18:16
  • There seems to be an open issue on GitHub regarding this issue, in case it's still relevant. see https://github.com/gpiozero/gpiozero/issues/983 – dahoef Nov 28 '21 at 21:23
  • cool thanks - I'll see if their release is updated yet – Scott Dec 13 '21 at 22:32

0 Answers0