-
Notifications
You must be signed in to change notification settings - Fork 0
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
Python3 Code #1
Comments
Converted for Python 3:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
This Python code is great, many thanks. However, I write most of my code using Python3. Could you possibly convert the ultraship_u2v2.py file for use with Python3? I tried running it with my Python3 code and there seems to be an issue with the self._buf data type.
File "scales.py", line 38, in <module> s = scale.read().strip("+ ") File "/home/pi/ultraship/ultraship_u2v2.py", line 113, in read self.fill_buffer() File "/home/pi/ultraship/ultraship_u2v2.py", line 66, in fill_buffer self._buf += c TypeError: Can't convert 'bytes' object to str implicitly
I tried changing the line to
self._buf += str(c)
, but self._buf still has type=bytesThe text was updated successfully, but these errors were encountered: