You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a VA18B multimeter the error "a bytes-like object is required, not 'int' "
occurs in function TEVA18Btemperature in source file comm.py at this line:
s201 = binascii.hexlify(r[1])
I have found that if this line (and the following eight or so similar lines) is changed to
s201 = binascii.hexlify(r[1].to_bytes(1,'big'))
then the exception goes away and the temperatures are correctly read.
I'm using PyCharm 2021.2 on Windows to debug this but first found the error when I installed Artisan on a linux machine recently.
The text was updated successfully, but these errors were encountered:
When using a VA18B multimeter the error "a bytes-like object is required, not 'int' "
occurs in function TEVA18Btemperature in source file comm.py at this line:
s201 = binascii.hexlify(r[1])
I have found that if this line (and the following eight or so similar lines) is changed to
s201 = binascii.hexlify(r[1].to_bytes(1,'big'))
then the exception goes away and the temperatures are correctly read.
I'm using PyCharm 2021.2 on Windows to debug this but first found the error when I installed Artisan on a linux machine recently.
The text was updated successfully, but these errors were encountered: