eepromTool-ds2433 icon indicating copy to clipboard operation
eepromTool-ds2433 copied to clipboard

tried on windows 10

Open sigmounte opened this issue 3 years ago • 2 comments

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>

sigmounte avatar Oct 11 '21 19:10 sigmounte

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 :)

meawoppl avatar Oct 11 '21 23:10 meawoppl

Hi, have you had a chance to resolve this yet? I have zero programming skills :(

jtotri avatar Feb 03 '22 15:02 jtotri