Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tried on windows 10 #7

Open
sigmounte opened this issue Oct 11, 2021 · 2 comments
Open

tried on windows 10 #7

sigmounte opened this issue Oct 11, 2021 · 2 comments

Comments

@sigmounte
Copy link

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>

@meawoppl
Copy link
Owner

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

@jtotri
Copy link

jtotri commented Feb 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants