Skip to content

Howto: Install pydbus for python3.4 on Centos EL7

Harry G. Coin edited this page Feb 22, 2017 · 1 revision

Installing pydbus on Centos EL7 for python3.4 doesn't follow the usual steps. Because of the goals of Centos, users in production environments prefer to enable as few repositories as possible. Python3.4 is the only 3 series supported in the basic repositories, but the necessary packages to support pydbus are not included in any of them. The specific rpms needed for pydbus that are the last to support the python 3.4 abi are part of the fedora 23 release.

Here are the steps to install pydbus for python3.4 on Centos EL7 for x86_64:

After clean install, as root:

yum install epel-release
yum -y upgrade
yum install python34
yum install python34-pip
mkdir ~/pydbusreqs;cd ~/pydbusreqs
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/Packages/p/python3-gobject-3.18.0-1.fc23.x86_64.rpm
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/Packages/p/python3-gobject-base-3.18.0-1.fc23.x86_64.rpm
wget https://dl.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/Packages/p/python3-cairo-1.10.0-12.fc23.x86_64.rpm
rpm -i *rpm
pip3.4 install --upgrade pip
pip3.4 install pydbus

To check, as a non-root:

$ uname -r
3.10.0-514.2.2.el7.x86_64
$python3.4
Python 3.4.5 (default, Nov  9 2016, 16:24:59) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pydbus
>>> 
Clone this wiki locally