ravelox / pimidi

Raspberry Pi RTP MIDI
164 stars 38 forks source link

Using pimidi with Python 3.7 #80

Closed vldp2000 closed 4 years ago

vldp2000 commented 4 years ago

Hi Dave,

Thanks a lot for implementing the LIST feature. It's very handy in my project. Now I can add few extra led lights to my wireless guitar foot controller to show which client/modules are ready for the communication.

When I tried to use your example Python gave me an error :

bytes = struct.pack( "4s", "LIST" ) struct.error: argument for 's' must be a bytes object

The following type cast fixed the issue: bytes = struct.pack( "4s", b"LIST" )

Thanks a lot for your job.

Cheers, Vlad