Hi, i'm having this error constantly get thrown whenever i try to run m.health() or any form of m.read_id() .
the full error message is as follows,
read_id: Failed with error: module 'datetime' has no attribute 'UTC'
health: Failed with error: 'NoneType' object is not subscriptable
Check battery is connected and you have correct serial port
i cannot pinpoint exactly what is causing this error, but i managed to fix it by removing "tz=datetime.UTC" from line 588, making that line into "dt = datetime.datetime.fromtimestamp(epoch_time)"
after changing that line, the program successfully reads the battery data without error.
Hi, i'm having this error constantly get thrown whenever i try to run m.health() or any form of m.read_id() .
the full error message is as follows,
read_id: Failed with error: module 'datetime' has no attribute 'UTC'
health: Failed with error: 'NoneType' object is not subscriptable
Check battery is connected and you have correct serial port
i cannot pinpoint exactly what is causing this error, but i managed to fix it by removing "tz=datetime.UTC" from line 588, making that line into "dt = datetime.datetime.fromtimestamp(epoch_time)"
after changing that line, the program successfully reads the battery data without error.