Package: python3-serial
Version: 2.5-2.1
Severity: important

Dear Maintainer,

the RFC2217 support of pyserial, at least when used with Python 3, is
completely broken. Even just importing serial.rfc2217 fails:

=== Begin ===
sascha.silbe@twin:~$ python3
Python 3.2.3 (default, Feb 20 2013, 14:44:27) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial.rfc2217
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/serial/rfc2217.py", line 90, in <module>
    IAC_DOUBLED = to_bytes([IAC, IAC])
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 55, in 
to_bytes
    b.append(item)  # this one handles int and str
TypeError: an integer is required
=== End ===

Importing serial.rfc2217 happens automatically when passing a
rfc2217:// URL to serial.serial_for_url():

=== Begin ===
sascha.silbe@twin:~$ python3
Python 3.2.3 (default, Feb 20 2013, 14:44:27) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>> serial.serial_for_url('rfc2217://localhost:4001')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/serial/__init__.py", line 45, in 
serial_for_url
    from . import rfc2217  # late import, so that users that don't use it don't 
have to load it
  File "/usr/lib/python3/dist-packages/serial/rfc2217.py", line 90, in <module>
    IAC_DOUBLED = to_bytes([IAC, IAC])
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 55, in 
to_bytes
    b.append(item)  # this one handles int and str
TypeError: an integer is required
=== End ===


I've verified that it still happens with python3-serial 2.6-1 from sid.


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-serial depends on:
ii  python3  3.2.3-6

python3-serial recommends no packages.

Versions of packages python3-serial suggests:
pn  python3-wxgtk2.8 | python3-wxgtk  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to