Package: python3-sireader
Version: 1.0.1-1
Severity: important

conecting a sportident base station gives a TypeError. Some parts of the code 
base are
not yet compatible with the python 3 conversion from string to unicode. The 
wire proctocol
should use the new binary data type.

In [2]: si = sireader.SIReaderReadout()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-12de8db6a695> in <module>()
----> 1 si = sireader.SIReaderReadout()

/usr/lib/python3/dist-packages/sireader.py in __init__(self, *args, **kwargs)
    779 
    780     def __init__(self, *args, **kwargs):
--> 781         super(type(self), self).__init__(*args, **kwargs)
    782 
    783         self.sicard = None

/usr/lib/python3/dist-packages/sireader.py in __init__(self, port, debug, 
logfile)
    314             for port in scan_ports:
    315                 try:
--> 316                     self._connect_reader(port)
    317                     return
    318                 except (SIReaderException, SIReaderTimeout) as msg:

/usr/lib/python3/dist-packages/sireader.py in _connect_reader(self, port)
    450         try:
    451             # try at 38400 baud, extended protocol
--> 452             self._send_command(SIReader.C_SET_MS, SIReader.P_MS_DIRECT)
    453         except (SIReaderException, SIReaderTimeout):
    454             try:

/usr/lib/python3/dist-packages/sireader.py in _send_command(self, command, 
parameters)
    713                                                                     
hexlify(crc),
    714                                                                     ))
--> 715             self._serial.write(cmd)
    716         except (SerialException, OSError) as  msg:
    717             raise SIReaderException('Could not send command: %s' % msg)

/usr/lib/python3/dist-packages/serial/serialposix.py in write(self, data)
    473         while t > 0:
    474             try:
--> 475                 n = os.write(self.fd, d)
    476                 if timeout:
    477                     # when timeout is set, use select to wait for being 
ready

TypeError: 'str' does not support the buffer interface


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/4 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-sireader depends on:
ii  python3-serial  2.6-1.1
pn  python3:any     <none>

python3-sireader recommends no packages.

python3-sireader suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to