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

unicode strings not supported #1

Open
vegarottesen opened this issue Sep 12, 2020 · 0 comments
Open

unicode strings not supported #1

vegarottesen opened this issue Sep 12, 2020 · 0 comments

Comments

@vegarottesen
Copy link

While pytemperaturecontrol appears to find and communicate with the device, the latest version of Python uses unicode strings, which appears to mess up the communications. Running the example script returns

TypeError: unicode strings are not supported, please encode to bytes: 'version'

From testing here it seems adding a b to line 60 in julabo.py so it reads:
self.serial.write(b'version')
rectifies that problem.
The same modification appears to work with temperature, status etc.

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

1 participant