Your message dated Mon, 17 Sep 2012 13:40:43 +0000 with message-id <[email protected]> and subject line Bug#687799: fixed in pyserial 2.5-3 has caused the Debian Bug report #687799, regarding python3-serial: Setting custom baud rates is 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.) -- 687799: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687799 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python3-serial Version: 2.5-2.1 Severity: important Dear Maintainer, Setting a custom baudrate, for example using this code: ser = serial.Serial('/dev/ttyUSB0', 117647, timeout=100) ... results in an exception: Traceback (most recent call last): File "./bus.py", line 24, in <module> ser = serial.Serial('/dev/ttyUSB0', 117647, timeout=100) File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 260, in __init__ self.open() File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 280, in open self._reconfigurePort() File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 413, in _reconfigurePort set_special_baudrate(self, custom_baud) File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 50, in set_special_baudrate buf[6] = (buf[7] / baudrate) TypeError: integer argument expected, got float I believe this is because the meaning of the / operator has changed in 3.x. Changing line 50 of serialposix.py to read this fixes the exception: buf[6] = int(buf[7] / baudrate) Chris -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, 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-5 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 ---Source: pyserial Source-Version: 2.5-3 We believe that the bug you reported is fixed in the latest version of pyserial, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <[email protected]> (supplier of updated pyserial package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Mon, 17 Sep 2012 14:49:13 +0200 Source: pyserial Binary: python-serial python3-serial Architecture: source all Version: 2.5-3 Distribution: unstable Urgency: low Maintainer: Matthias Klose <[email protected]> Changed-By: Matthias Klose <[email protected]> Description: python-serial - pyserial - module encapsulating access for the serial port python3-serial - pyserial - module encapsulating access for the serial port Closes: 644291 647738 674801 687799 Changes: pyserial (2.5-3) unstable; urgency=low . * Drop alternative dependency on python-wxgtk2.6. Closes: #647738. * Fix setting custom baudrate with Python 3.x. Closes: #687799. * Fix spelling errors in the package description. Closes: #644291. * Remove the miniterm example for Python3; removed upstream too. Closes: #674801. Checksums-Sha1: a3349af4011dd868523b8ae114eaee728b5d0252 1171 pyserial_2.5-3.dsc 32dad554f86b4a4ebb2e2900a37565dc0b3cc425 3803 pyserial_2.5-3.diff.gz f9d6a73ec4838ca586e324b69efa63ac18cb3933 80322 python-serial_2.5-3_all.deb 4f1204c2732900327f5aab86849cd1d40b9f69a8 47682 python3-serial_2.5-3_all.deb Checksums-Sha256: 97c788602af3cf76bc7ecaab7dedb288e956226fb075b18e369b7f3f75bcddf9 1171 pyserial_2.5-3.dsc 8bd4a3236222d05b10500b1bde706eb3c34f57bfdb5f5eca29cef300217f71e5 3803 pyserial_2.5-3.diff.gz 25b68910e8ccd20fad1117826a5f5a73c4301907d3980696a1261626fe7d2e12 80322 python-serial_2.5-3_all.deb 724c4977c7dc779471ef6fd688aead690fdf766cd69b83ae60c6b8788d91184c 47682 python3-serial_2.5-3_all.deb Files: d63fe3bff6e7668a6f8b6d18eb24bd9a 1171 python optional pyserial_2.5-3.dsc 2c18391bd44fa2f7750713d11d966afa 3803 python optional pyserial_2.5-3.diff.gz 804444ab3869a22a5c76fcdfc8f8e302 80322 python optional python-serial_2.5-3_all.deb 412bd2e8ce725a989d8d15bbb732fe13 47682 python optional python3-serial_2.5-3_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlBXIPIACgkQStlRaw+TLJwVmwCcCc4vborJjIeqpq9PfEzGRh2x b2kAn3loozHe9EMhGiWdJlfuWe6fba0F =JfON -----END PGP SIGNATURE-----
--- End Message ---

