Your message dated Sun, 3 Apr 2022 11:38:31 +0200
with message-id <[email protected]>
and subject line Re: Bug#706518: python3-serial: rfc2217 support broken (cannot 
even import serial.rfc2217)
has caused the Debian Bug report #706518,
regarding python3-serial: rfc2217 support broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
706518: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706518
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
On 02.04.22 16:00, Bastian Germann wrote:
Control: retitle -1 python3-serial: rfc2217 support broken

The original issue was solved upstream with https://github.com/pyserial/pyserial/pull/183 in v3.3

thanks, closing.

--- End Message ---

Reply via email to