lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Raspberry python3.7: light.py fails to execute at `struct`

Open dpinna13 opened this issue 3 years ago • 0 comments

As is in python3.7, the example in the readme fails to run as:

    packet = struct.pack(">BBBBBB",
NameError: name 'struct' is not defined 

adding import struct in light.py solves the error, and the example runs successfully as sudo.

dpinna13 avatar May 06 '21 22:05 dpinna13