Skip to content

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

@JBSchueler

Description

@JBSchueler
  • RPi1
  • Raspbian Buster Lite
  • PiFace Control and Display 2

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:~ $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions