Questions tagged [dbus-python]
20 questions
19
votes
3 answers
No package 'dbus-1' found
$ python3 -m pip install dbus-python
Collecting dbus-python
Using cached dbus-python-1.2.16.tar.gz (576 kB)
Building wheels for collected packages: dbus-python
Building wheel for dbus-python (setup.py) ... error
ERROR: Command errored out…

Rajesh Chaudhary
- 894
- 2
- 11
- 17
4
votes
1 answer
Can't install dbus-python on Ubuntu with Python3.8
I want to install HP driver (hplip) on my Ubuntu.
It tries to install d-bus python package, but fails and says to install it manually.
Installation with "apt" works fine, but maybe not for my main Python version and that's why hplip failed:
sudo apt…

Timofey Kargin
- 161
- 4
- 15
2
votes
2 answers
Receiving dbus signals with pythion
I'm trying to write some python to listen to signals.
Using dbus-monitor, as shown below, I can filter the signals I want.
dbus-monitor…

bshort
- 25
- 3
2
votes
1 answer
getProperties method not found for NetworkManager
I am going through dbus-python tutorial.
https://dbus.freedesktop.org/doc/dbus-python/tutorial.html#interfaces-and-methods
The example provided does not work for me. I replaced the eth0 with 1 but still it throws an error.
import dbus
bus =…

Daemon
- 1,575
- 1
- 17
- 37
2
votes
2 answers
What is recommended to use pydbus or dbus-python and what are the differences?
I'm trying to implement a dbus service that will be then used in a Gtk-application.
There are two python modules (pydbus vs. dbus-python) claiming to do just that. I've been unable to find any pro and contra list of both implementations.
My short…

enaut
- 431
- 4
- 15
2
votes
0 answers
dbus-python - simple example for sending a (broadcast) dbus signal
I'm looking for a dbus-python equivalent
of dbus-send --system --type=signal
When searching for dbus-python and sending signal,
all the examples involve defining a dbus service clients can connect to
(eg…

rat_cake
- 21
- 3
2
votes
1 answer
dbus-python how to return array of dictionaries
I am on Ubuntu 16.04 and using Python Dbus. I want to return a list of dictionaries over DBus to my client but seem to only be able to return an array of strings. If I changed my dbus signature decorator to 'as{v}', I get an exception: "ValueError:…

PhilBot
- 748
- 18
- 85
- 173
1
vote
0 answers
issue in installing dbus-python package on rocky linux 8.5 with python3.7.11
issue with installing dbus-python, is there any rpm required for it?
the rpm python3-dbus works well with python3.6, do we have any replacement python pakcage for python3.7.11
error:
Package 'glib-2.0', required by 'virtual:world', not…

Rohit Dwivedi
- 94
- 8
1
vote
1 answer
How to set Ipv4 addresses with dbus-python (Hotspot and ethernet)
(fairly new to networking)
I'm trying to setup a small, yet somewhat complicated network settings on my ubuntu 18.04 machine.
The topology of the network: Ubuntu machine (called "the server") will act as the DHCP server for both hotspot and…

Yves Halimi
- 11
- 2
1
vote
1 answer
How to get systemd service information inside dbus callback function
I have following python script to monitor "PropertiesChanged" signal from all systemd services.
#!/usr/bin/env python
import sys
import dbus
import traceback
import dbus.mainloop.glib
from gi.repository import GLib
def…

sandeep nagendra
- 422
- 5
- 15
0
votes
0 answers
Possible to write to "hidden" BlueZ characteristic via D-Bus in Python or other?
I need to write data to a BlueZ characteristic through D-Bus that does not show up after Service Discovery on a Bluetooth LE device. Is it possible?
"What I've done so far"
I have a Bluetooth device that is controlled by an Android app written in…

cas
- 1
0
votes
0 answers
Scanning custom ad type in advertising data with dbus-python/pydbus bluez
I have a peripheral device that advertises custom data using a custom ad type of 0x42 in its scan response. I implemented a scanner using the Python library bluepy (https://github.com/IanHarvey/bluepy) and was able to retrieve all advertising data,…

Quentin Rozand
- 1
- 2
0
votes
1 answer
Unable to install dbus-python. Ninja version error?
I'm trying to build dbus-python from source since I'm unable to install through pip when running pip3 install dbus-python:
error: metadata-generation-failed
Once the repo cloned, I run python3 setup.py build and get the following error:
ERROR:…

Mateo Molinari
- 11
- 1
0
votes
1 answer
Register a Bluetooth agent with Python DBus to hci1 (not hci0)
I have been using copy, paste, and magic to register a Bluetooth agent via Python DBUs which works great for hci0, but I cannot for the life of me see how I can get this agent to work for other Bluetooth controllers, i.e hci1. I have tried selecting…

SpmP
- 527
- 1
- 6
- 16
0
votes
1 answer
dbus.Array() not working for a list of Strings for Python 3.7
I have written a server to publish on avahi via dbus. The same code working perfectly with Python 2.7, but throws error with Python 3.7
ERROR:dbus.connection:Unable to set arguments (dbus.Int32(-1), dbus.Int32(-1), dbus.UInt32(0), 'SETup',…

SGP
- 83
- 10