Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417259 - sys-apps/systemd - systemd-analyze has broken python bindings
Summary: sys-apps/systemd - systemd-analyze has broken python bindings
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 11:55 UTC by Milan Berger
Modified: 2012-05-28 13:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Berger 2012-05-23 11:55:21 UTC
systemd's systemd-analyze seems to have broken python bindings:

`--> systemd-analyze blame
Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 3, in <module>
    import dbus, sys
ImportError: No module named dbus
Comment 1 Milan Berger 2012-05-23 11:57:17 UTC
`--> emerge --info
Portage 2.1.10.62 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.6-ck x86_64)
=================================================================
System uname: Linux-3.2.6-ck-x86_64-AMD_Phenom-tm-_II_X4_810_Processor-with-gentoo-2.1
Timestamp of tree: Mon, 21 May 2012 17:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.4-r3, 3.2.3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X alsa amd64 aspell bash-completion berkdb bzip2 cairo cdparanoia cpudetection cracklib crypt cryptsetup curl cxx divx dlloader dvd dvdread encode fbcon ffmpeg fortran fts3 fuse gdbm gif gpgme gpm gs gtk gtk2 hddtemp iconv icq imagemagick imap ipv6 jpeg lame lm_sensors mad midi mikmod mjpeg mmx mmxext mp3 mpd mpeg multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl otr passfile pcf pdf perl plugins-symlink png python quicktime readline sdl secure-delete smbclient spell sse sse2 ssl symlink tcl tcpd threads truetype type1 unicode utils vdpau vim-syntax vorbis x264 x265 xml xorg xpdf-headers xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[I] dev-python/dbus-python
     Available versions:  0.84.0 1.0.0 ~1.1.0 {doc examples test}
     Installed versions:  1.0.0(08:11:26 PM 05/21/2012)(-doc -examples -test)
     Homepage:            http://www.freedesktop.org/wiki/Software/DBusBindings http://dbus.freedesktop.org/doc/dbus-python/
     Description:         Python bindings for the D-Bus messagebus
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-24 06:07:36 UTC
The post-merge message says which modules you have to install for them. Those messages are for you to read them.
Comment 3 Milan Berger 2012-05-25 17:02:06 UTC
 * You may need to perform some additional configuration for some programs
 * to work, see the systemd manpages for loading modules and handling tmpfiles:
 * 	$ man modules-load.d
 * 	$ man tmpfiles.d
 * 
 * To get additional features, a number of optional runtime dependencies may
 * be installed:
 *   [I] dev-lang/python:2.7
 * & [I] dev-python/dbus-python (for systemd-analyze)
 *   [I] dev-python/pycairo[svg] (for systemd-analyze plotting ability)
 *   [ ] sys-apps/systemd-ui (for GTK+ systemadm UI and gnome-ask-password-agent)


I read them and it seems all I need is installed.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-25 20:58:18 UTC
What is your USE_PYTHON? Maybe dbus-python is installed only for py3 which is not supported by systemd-analyze...
Comment 5 Milan Berger 2012-05-28 13:01:55 UTC
Thank you Michał, that fixed it.