Skip to content

read_id: Failed with error: module 'datetime' has no attribute 'UTC' #49

@meme-002

Description

@meme-002

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions