R
Rodrigo
Maybe this is not a bug at all, but i have installed python2.5. 3.01
and 3.1.1. In python 2.5 ser. write('this is a string') works just
fine.
On the other hand, with 3.01 and 3.1.1 (pyserial 2.5 rc1) when i do a
ser.write('this is a string') i get the following error"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/
python3.1/site-packages/serial/serialposix.py", line 466, in write
raise TypeError('expected %s or bytearray, got %s' % (bytes, type
(data)))
TypeError: expected <class 'bytes'> or bytearray, got <class 'str'>
I honestly dont get what im doing wrong here
any feedback much appreciated
regards
r
and 3.1.1. In python 2.5 ser. write('this is a string') works just
fine.
On the other hand, with 3.01 and 3.1.1 (pyserial 2.5 rc1) when i do a
ser.write('this is a string') i get the following error"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/
python3.1/site-packages/serial/serialposix.py", line 466, in write
raise TypeError('expected %s or bytearray, got %s' % (bytes, type
(data)))
TypeError: expected <class 'bytes'> or bytearray, got <class 'str'>
I honestly dont get what im doing wrong here
any feedback much appreciated
regards
r