nschloe / stressberry

Stress tests for the Raspberry Pi :sweat_smile:
GNU General Public License v3.0
322 stars 28 forks source link

Error (TypeError: 'NoneType' object is not subscriptable) when running stressberry-plot #133

Open MohammedFadin opened 1 year ago

MohammedFadin commented 1 year ago

Hi Everyone,

on Raspberry Pi, I'm getting the following error after executing "MPLBACKEND=Agg stressberry-plot -f out.dat -o out.png"

root@rasberry:~/stress-test# MPLBACKEND=Agg stressberry-plot -f out.dat -o out.png
Traceback (most recent call last):
  File "/usr/local/bin/stressberry-plot", line 8, in <module>
    sys.exit(plot())
             ^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/stressberry/cli/plot.py", line 23, in plot
    temperature_data = d["temperature"]
                       ~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

I'm using the latest version of Stressberry and stress as well.