Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbus_next.errors.InterfaceNotFoundError: interface not found on this object: org.freedesktop.DBus.Properties #1

Open
xb0s0n opened this issue Jun 24, 2022 · 0 comments

Comments

@xb0s0n
Copy link

xb0s0n commented Jun 24, 2022

Hi,

This bit of code is exactly what I was looking for recording data from these little temp sensors - but i'm having noob issues getting it to run clean.

running on a pi 3 (b??)

pi@raspberrypi:~ $ bluetoothctl
Agent registered
[CHG] Controller B8:27:EB:A1:72:81 Pairable: yes
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan o
off on
[bluetooth]# scan o
off on
[bluetooth]# scan o
off on
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:A1:72:81 Discovering: yes
[NEW] Device 66:94:2E:09:12:29 66-94-2E-09-12-29
[NEW] Device A3:E4:00:00:0A:E4 ThermoBeacon
[NEW] Device E6:E9:F0:0D:1C:53 HRM-Dual:633819
[NEW] Device 59:E3:6E:E2:94:8F 59-E3-6E-E2-94-8F
[NEW] Device DC:72:23:C1:29:2F DC-72-23-C1-29-2F
[NEW] Device 00:12:6F:4E:B2:95 Mu-so Qb BT 1DCC
[bluetooth]# connect A3:E4:00:00:0A:E4
Attempting to connect to A3:E4:00:00:0A:E4
[CHG] Device A3:E4:00:00:0A:E4 Connected: yes
Connection successful
[CHG] Device E6:E9:F0:0D:1C:53 RSSI: -87
[NEW] Primary Service (Handle 0xeec4)
/org/bluez/hci0/dev_A3_E4_00_00_0A_E4/service0008
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[NEW] Characteristic (Handle 0x006c)
/org/bluez/hci0/dev_A3_E4_00_00_0A_E4/service0008/char0009

root@raspberrypi:/home/pi# python sensor_blue_adv.py scan 5 hci0 A4:47:00:00:0A:60
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/dbus_next/proxy_object.py", line 217, in get_interface
intr_interface = next(i for i in self.introspection.interfaces if i.name == name)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/sensor_blue_adv.py", line 195, in
loop.run_until_complete(scan(int(sys.argv[2]), sys.argv[3], sys.argv[4]))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/pi/sensor_blue_adv.py", line 60, in scan
sb = sb_obj.get_interface('org.freedesktop.DBus.Properties')
File "/usr/local/lib/python3.9/dist-packages/dbus_next/aio/proxy_object.py", line 159, in get_interface
return super().get_interface(name)
File "/usr/local/lib/python3.9/dist-packages/dbus_next/proxy_object.py", line 219, in get_interface
raise InterfaceNotFoundError(f'interface not found on this object: {name}')
dbus_next.errors.InterfaceNotFoundError: interface not found on this object: org.freedesktop.DBus.Properties
root@raspberrypi:/home/pi#

bluez-firmware/stable,now 1.2-4+rpt8 all [installed,automatic]
bluez-hcidump/stable,now 5.55-3.1+rpt1 armhf [installed]
bluez-obexd/stable,now 5.55-3.1+rpt1 armhf [installed,automatic]
bluez-tools/stable,now 2.0~20170911.0.7cb788c-4 armhf [installed]
bluez/stable,now 5.55-3.1+rpt1 armhf [installed]
libbluetooth3/stable,now 5.55-3.1+rpt1 armhf [installed,automatic]
pi-bluetooth/stable,now 0.1.19 all [installed]
python3-bluez/stable,now 0.23-3 armhf [installed]

pi@raspberrypi:~ $ pip3 list
Package Version


certifi 2020.6.20
chardet 4.0.0
colorzero 1.1
dbus-next 0.2.3
distro 1.5.0
gattlib 0.20201113
gpiozero 1.6.2
idna 2.10
pip 20.3.4
PyBluez 0.23
python-apt 2.2.1
requests 2.25.1
RPi.GPIO 0.7.0
setuptools 52.0.0
six 1.16.0
spidev 3.5
ssh-import-id 5.10
urllib3 1.26.5
wheel 0.34.2

Do i need specific versions to get this to run or am i missing certain packages?

Many thanks and thanks for coding this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant