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
i had to add "(" around the print , but i'm not a python expert , could you help ?
d:\dev\python\onewireproxy>python tool.py
Using serial port: /dev\COM1
Dumping eeprom
Polling for chip. . .
Traceback (most recent call last):
File "d:\dev\python\onewireproxy\tool.py", line 169, in
dump2433()
File "d:\dev\python\onewireproxy\tool.py", line 47, in dump2433
waitForChip()
File "d:\dev\python\onewireproxy\tool.py", line 28, in waitForChip
if pollForChip(): break
File "d:\dev\python\onewireproxy\tool.py", line 22, in pollForChip
sp.write("x")
File "C:\Users\sigmounte\AppData\Local\Programs\Python\Python310\lib\site-packages\serial\serialwin32.py", line 310, in write
data = to_bytes(data)
File "C:\Users\sigmounte\AppData\Local\Programs\Python\Python310\lib\site-packages\serial\serialutil.py", line 65, in to_bytes
raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'x'
d:\dev\python\onewireproxy>
The text was updated successfully, but these errors were encountered:
Hello! Thanks for reporting this issue. I can fix this pretty easily tomorrow I think. (It a pretty old snippet, and I never tested it in Python 3)
In the future, surrounding your traceback with 3 backticks will help others read your issue much easier. If you want you can edit the issue report and update the formatting :)
i had to add "(" around the print , but i'm not a python expert , could you help ?
d:\dev\python\onewireproxy>python tool.py
Using serial port: /dev\COM1
Dumping eeprom
Polling for chip. . .
Traceback (most recent call last):
File "d:\dev\python\onewireproxy\tool.py", line 169, in
dump2433()
File "d:\dev\python\onewireproxy\tool.py", line 47, in dump2433
waitForChip()
File "d:\dev\python\onewireproxy\tool.py", line 28, in waitForChip
if pollForChip(): break
File "d:\dev\python\onewireproxy\tool.py", line 22, in pollForChip
sp.write("x")
File "C:\Users\sigmounte\AppData\Local\Programs\Python\Python310\lib\site-packages\serial\serialwin32.py", line 310, in write
data = to_bytes(data)
File "C:\Users\sigmounte\AppData\Local\Programs\Python\Python310\lib\site-packages\serial\serialutil.py", line 65, in to_bytes
raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'x'
d:\dev\python\onewireproxy>
The text was updated successfully, but these errors were encountered: