dbus-python

Can't install dbus-python on Ubuntu with Python3.8

不问归期 提交于 2020-06-17 09:15:09
问题 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 install -y dbus ... works well timofei@timofei:~/Downloads$ python Python 3.8.0 (default, Oct 28 2019, 16:14:01) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import dbus Traceback (most recent

using dbus and polkit to run a root privilege python service that calls a root script

巧了我就是萌 提交于 2019-12-11 16:49:42
问题 I have written a python script that downloads deb files from launchpad, and then calls out to a shell script to use alien to convert the debs to rpms. The shell script uses alien, and so it needs to be run as root. The program uses a thread pool to download the deb files asynchronously, using threadpool.apply_async, and then uses a processing pool to call the shell script asynchronously, so the whole thing happens reasonably quickly. It all works well, but the shell script that calls alien