Package: python3-bluez
Version: 0.23-4+b1
Severity: important

Dear Maintainer,

I've just upgraded to python3.10 and every time when sending data over a 
bluetooth
socket (using pybluez), the following error is raised:

  sock.send(b"\r\n" + msg.encode("ASCII") + b"\r\n")
  File "<string>", line 3, in send
  SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

PY_SSIZE_T_CLEAN seems to be required starting from python 3.10:
https://docs.python.org/3/whatsnew/3.10.html#id2

This makes the bluetooth sockets unusable, and as I would say that blueooth
sockets are a major part of this package, I set the severity to "important".

This bug has already been reported 
(https://github.com/pybluez/pybluez/issues/426)
and fixed (https://github.com/pybluez/pybluez/pull/427) upstream. Sadly there 
is no
new upstream release yet, the last release was in 2019 and discussions about a 
new
release seem to dangle half a year now 
(https://github.com/pybluez/pybluez/issues/416)

Until there is a new upstream release, could you please cherry-pick the 
relevant fix
so the package can at least be used?

The issue linked in the discussion about a new release with setuptools >= 58
(https://github.com/pybluez/pybluez/issues/413) does not affect debian yet, but 
might
also be worth considering.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-bluez depends on:
ii  libbluetooth3    5.64-2
ii  libc6            2.33-7
ii  python3          3.10.4-1+b1
ii  python3-gattlib  0~20201113-1.1

python3-bluez recommends no packages.
python3-bluez suggests no packages.

-- no debconf information

Reply via email to