Package: python3-gattlib
Version: 0~20201113-1+b1
Severity: important
X-Debbugs-Cc: john.k...@multitech.com




-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-10-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-gattlib depends on:
ii  libbluetooth3                                       5.55-3.1
ii  libboost-python1.74.0 [libboost-python1.74.0-py39]  1.74.0-9
ii  libboost-thread1.74.0                               1.74.0-9
ii  libc6                                               2.31-13+deb11u3
ii  libgcc-s1                                           10.2.1-6
ii  libglib2.0-0                                        2.66.8-1
ii  libstdc++6                                          10.2.1-6
ii  python3                                             3.9.2-3

python3-gattlib recommends no packages.

python3-gattlib suggests no packages.


*** /tmp/trace.txt
65050 read(3, "\1\0\0\0\0\0\0\0", 16)   = 8
65049 <... munmap resumed>)             = 0
65050 poll([{fd=3, events=POLLIN}], 1, -1 <unfinished ...>
65049 socket(AF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, BTPROTO_HCI) = 5
65049 ioctl(5, HCIGETDEVINFO, 0x7ffec5b6ef80) = 0
65049 close(5)                          = 0
65049 socket(AF_BLUETOOTH, SOCK_RAW|SOCK_CLOEXEC, BTPROTO_HCI) = 5
65049 bind(5, {sa_family=AF_BLUETOOTH, hci_dev=htobs(0),
hci_channel=HCI_CHANNEL_RAW}, 6) = 0
65049 getsockopt(5, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", [16]) =
0
65049 setsockopt(5, SOL_IP, IP_TTL, "\20\0\0\0\1\300\0\0\0\0\0@\v \0\0", 16) =
0
65049 writev(5, [{iov_base="\1", iov_len=1}, {iov_base="\v \7", iov_len=3},
{iov_base="\1\20\0\20\0\0\0", iov_len=7}], 3) = -1 EPERM (Operation not
permitted)
65049 setsockopt(5, SOL_IP, IP_TTL, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
65049 futex(0x7f3d103f61e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
65049 write(2, "Traceback (most recent call last"..., 35) = 35
65049 write(2, "  File \"/home/jklug/./gattest.py"..., 55) = 55
65049 openat(AT_FDCWD, "/home/jklug/./gattest.py", O_RDONLY|O_CLOEXEC) = 6
65049 fstat(6, {st_mode=S_IFREG|0755, st_size=219, ...}) = 0
65049 ioctl(6, TCGETS, 0x7ffec5b6e240)  = -1 ENOTTY (Inappropriate ioctl for
device)
65049 lseek(6, 0, SEEK_CUR)             = 0
65049 fcntl(6, F_DUPFD_CLOEXEC, 0)      = 7
65049 fcntl(7, F_GETFL)                 = 0x8000 (flags O_RDONLY|O_LARGEFILE)
65049 fstat(7, {st_mode=S_IFREG|0755, st_size=219, ...}) = 0
65049 read(7, "#!/usr/bin/python\n\nfrom gattlib "..., 4096) = 219
65049 close(7)                          = 0
65049 lseek(6, 0, SEEK_SET)             = 0
65049 read(6, "#!/usr/bin/python\n\nfrom gattlib "..., 8192) = 219
65049 close(6)                          = 0
65049 write(2, "    devices = service.discover(2"..., 34) = 34
65049 write(2, "RuntimeError: Set scan parameter"..., 57) = 57
65049 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[],
sa_flags=SA_RESTORER, sa_restorer=0x7f3d11030140}, {sa_handler=0x6402c0,
sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f3d11030140}, 8) = 0
65049 close(5)                          = 0
65049 exit_group(1)                     = ?
65050 <... poll resumed> <unfinished ...>) = ?
65050 +++ exited with 1 +++
#!/usr/bin/python

from gattlib import DiscoveryService

service = DiscoveryService("hci0")

devices = service.discover(2)

for address, name in devices.items():
    print("name: {}, address: {}".format(name, address))

Reply via email to