Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177280 - dev-util/git-1.5.0.7 USE=gtk requires >=dev-python/pygtk-2.8.0
Summary: dev-util/git-1.5.0.7 USE=gtk requires >=dev-python/pygtk-2.8.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-06 05:33 UTC by Tom Samstag
Modified: 2007-05-19 08:12 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 Tom Samstag 2007-05-06 05:33:34 UTC
With <pygtk-2.8.0, running the program gitview (the component of dev-util/git installed by USE=gtk), the program prints the following error and quits:

Running without gtksourceview module
Traceback (most recent call last):
  File "/usr/bin/gitview", line 1026, in ?
    view = GitView( without_diff != 1)
  File "/usr/bin/gitview", line 457, in __init__
    self.window.add(self.construct())
  File "/usr/bin/gitview", line 514, in construct
    menu_bar.set_pack_direction(gtk.PACK_DIRECTION_RTL)
AttributeError: 'gtk.MenuBar' object has no attribute 'set_pack_direction'

According to the pygtk changelog here: http://www.moeraki.com/pygtkreference/pygtk2reference/pygtk-ref-changelog.html , the set_pack_direction attribute was added in pygtk-2.8.0. When I upgraded to pygtk-2.10.3, gitview worked as expected.

Additionally, gitview depends on pycairo, giving this error when pycairo was missing:

Traceback (most recent call last):
  File "/usr/bin/gitview", line 24, in ?
    import cairo
ImportError: No module named cairo

Pycairo was not a direct dependency of <pygtk-2.8.0, but is in the ebuilds of >=pygtk-2.8.0.

Reproducible: Always

Steps to Reproduce:
1. Install <pygtk-2.8.0
2. Install git with USE=gtk
3. Attempt to run gitview
Actual Results:  
gitview errors out with the message above.

Expected Results:  
gitview runs...

Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.11-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r2 x86_64 Mobile AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 01 May 2007 02:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo http://mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://ftp.heanet.ie/pub/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/sync.exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://acm.cs.rpi.edu/gentoo-portage"
USE="X acpi alsa amd64 apm avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus dga directfb dri dvd dvdr emboss encode fam fbcon firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg ldap libg++ mad midi mikmod motif mozsvg mp3 mpeg ncurses nls nptl nptlonly offensive ogg oggvorbis opengl pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sftplogging spell spl ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode v4l vorbis xine xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga radeon fglrx vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2007-05-06 18:36:47 UTC
Will fix, thanks.

- ferdy
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2007-05-19 08:12:57 UTC
Fixed, thanks.

- ferdy