On Wed, Jan 1, 2014 at 5:39 PM, Travis McGee <nob...@gmail.com> wrote: > Anyway, I finally got it installed, but when I try to use a statement of the > sort ser.write("string") I get an exception which seems to imply that the > argument needs to be an integer, rather than a string.
Quoting the full exception would help! My suspicion is that it works with byte strings, not Unicode strings. So you could do: ser.write(b"string") or: ser.write("string".encode()) to turn it into a stream of bytes (the latter uses UTF-8, the former would use your source file encoding). ChrisA -- https://mail.python.org/mailman/listinfo/python-list