The state of pySerial

MRAB python at mrabarnett.plus.com
Thu May 30 11:45:16 EDT 2013


On 30/05/2013 02:32, Ma Xiaojun wrote:
> I've already mailed the author, waiting for reply.
>
> For Windows people, downloading a exe get you pySerial 2.5, which
> list_ports and miniterm feature seems not included. To use 2.6,
> download the tar.gz and use standard "setup.py install" to install it
> (assume you have .py associated) . There is no C compiling involved in
> the installation process.
>
> For whether Python 3.3 is supported or not. I observed something like:
> http://paste.ubuntu.com/5715275/ .
>
> miniterm works for Python 3.3 at this time.
>
The problem there is that 'desc' is a bytestring, but the regex pattern
can match only a Unicode string (Python 3 doesn't let you mix
bytestrings and Unicode string like a Python 2).

The simplest fix would probably be to decode 'desc' to Unicode.



More information about the Python-list mailing list