Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JBSchueler opened this issue Aug 29, 2019 · 1 comment
Open

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

JBSchueler opened this issue Aug 29, 2019 · 1 comment

Comments

@JBSchueler
Copy link

  • 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:~ $
@JBSchueler
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant