piface / pifacecad

PiFace Control and Display
GNU General Public License v3.0
46 stars 38 forks source link

sysinfo.py error : could not convert string to float: #32

Open JBSchueler opened 5 years ago

JBSchueler commented 5 years ago

while trying to execute the sysinfo.py example I get this error...

pi@raspberrypi:~ $ python ./pifacecad/examples/sysinfo.py
Traceback (most recent call last):
  File "./pifacecad/examples/sysinfo.py", line 75, in <module>
    show_sysinfo()
  File "./pifacecad/examples/sysinfo.py", line 56, in show_sysinfo
    cad.lcd.write(":{}".format(get_my_free_mem()))
  File "./pifacecad/examples/sysinfo.py", line 35, in get_my_free_mem
    used_mem = float(run_cmd(USED_MEM_CMD))
ValueError: could not convert string to float:
pi@raspberrypi:~ $
pi@raspberrypi:~ $ python3 ./pifacecad/examples/sysinfo.py
Traceback (most recent call last):
  File "./pifacecad/examples/sysinfo.py", line 75, in <module>
    show_sysinfo()
  File "./pifacecad/examples/sysinfo.py", line 56, in show_sysinfo
    cad.lcd.write(":{}".format(get_my_free_mem()))
  File "./pifacecad/examples/sysinfo.py", line 35, in get_my_free_mem
    used_mem = float(run_cmd(USED_MEM_CMD))
ValueError: could not convert string to float:
pi@raspberrypi:~ $
JBSchueler commented 5 years ago

Probably related to #26 which seems to be closed...