First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 32038
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Duncan Coutts (RETIRED) <dcoutts@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
meldapp.py.diff patch to meldapp.py, changing "both_horiz" to "both-horiz" patch Duncan Coutts (RETIRED) 2003-10-28 05:27 0000 546 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 32038 depends on: Show dependency tree
Bug 32038 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-10-26 07:22 0000
When I run meld (version 0.8.3 or version 0.9.0) it gives the following
traceback:

Traceback (most recent call last):
  File "/usr/bin/meld", line 73, in ?
    meldapp.main()
  File "/usr/lib/meld/meldapp.py", line 809, in main
    app = MeldApp()
  File "/usr/lib/meld/meldapp.py", line 492, in __init__
    self.toolbar.set_style( self.prefs.get_toolbar_style() )
  File "/usr/lib/meld/meldapp.py", line 463, in get_toolbar_style
    style = {"both":gtk.TOOLBAR_BOTH, "both_horiz":gtk.TOOLBAR_BOTH_HORIZ,
KeyError: both-horiz

I thought this might be because the ebuild for dev-util/meld-.0.8.3 and
dev-util/meld-.0.9.0 (and probably dev-util/meld-.0.8.5 too) have old
dependencies.

The meld web page (http://meld.sourceforge.net/install.html) says that meld
requires:
pyorbit-1.99.6
pygtk-1.99.17
gnome-python-1.99.17

however the ebuild (at least for 0.9.0) says:
    >=dev-python/gnome-python-1.99.15
    >=dev-python/pygtk-1.99.15
    >=dev-python/pyorbit-1.99.0"

Howver I get the same problem even after upgrading to gnome-python-2.0.0,
pygtk-2.0.0 and pyorbit-2.0.0

Reproducible: Always
Steps to Reproduce:
1. emerge =dev-util/meld-0.8.3
2. meld

or

1. emerge =dev-util/meld-0.9.0
2. meld

Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/meld", line 73, in ?
    meldapp.main()
  File "/usr/lib/meld/meldapp.py", line 809, in main
    app = MeldApp()
  File "/usr/lib/meld/meldapp.py", line 492, in __init__
    self.toolbar.set_style( self.prefs.get_toolbar_style() )
  File "/usr/lib/meld/meldapp.py", line 463, in get_toolbar_style
    style = {"both":gtk.TOOLBAR_BOTH, "both_horiz":gtk.TOOLBAR_BOTH_HORIZ,
KeyError: both-horiz

Expected Results:  
opened a meld window

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,
2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://212.219.56.162/sites/www.ibiblio.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.3/sites/www.ibiblio.org/gentoo/
http://194.83.57.7/sites/www.ibiblio.org/gentoo/
http://194.83.57.11/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm
berkdb slang readline arts tetex bonobo svga java ruby postgres X sdl gpm tcpd
pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla
ldap cdr alsa -kde -qt gtk2 apache2"

------- Comment #1 From foser (RETIRED) 2003-10-26 11:27:15 0000 -------
can't reproduce this, what gtk+ & python versions are you using ?

------- Comment #2 From Duncan Coutts (RETIRED) 2003-10-26 11:50:42 0000 -------
Im using:
gtk+-2.2.4-r1
python-2.2.3-r1

I've asked the meld author if he has any idea what's going on.
Will report here if he can think of anything.

------- Comment #3 From Alastair Tse (RETIRED) 2003-10-28 02:23:14 0000 -------
can you try merging python, pygtk and gnome-python with less optimisations?
maybe say "-march=i686 -O2 -pipe" 

it seems like something wrong with a basic operation in python or the pygtk/gnome-python
modules.

also, what does this output?

gconftool-2 --get /desktop/gnome/interface/toolbar_style

------- Comment #4 From Duncan Coutts (RETIRED) 2003-10-28 05:13:34 0000 -------
$ gconftool-2 --get /desktop/gnome/interface/toolbar_style
both-horiz

------- Comment #5 From Duncan Coutts (RETIRED) 2003-10-28 05:27:30 0000 -------
Created an attachment (id=19888) [edit]
patch to meldapp.py, changing "both_horiz" to "both-horiz"

Sent to me by the meld author steve9000@users.sourceforge.net
It fixes the problem for me. :-)

------- Comment #6 From Duncan Coutts (RETIRED) 2003-10-28 05:34:07 0000 -------
steve9000 at users sourceforge net told me:

> Hi Duncan, it seems the spelling changed fromboth_horiz to both-horiz.
> You can manually change the line:
>
> -style = {"both":gtk.TOOLBAR_BOTH, "both_horiz":gtk.TOOLBAR_BOTH_HORIZ,
> +style = {"both":gtk.TOOLBAR_BOTH, "both-horiz":gtk.TOOLBAR_BOTH_HORIZ,

Cheers Steve.

------- Comment #7 From foser (RETIRED) 2003-10-28 06:22:47 0000 -------
i thought it was ok to use both for now... weird that i have the same packages
and not this problem.

------- Comment #8 From Alastair Tse (RETIRED) 2003-10-30 01:22:28 0000 -------
this happens only when you have the toolbar settings in gnome "text beside
icons".

i've committed the patch. thanks for your report and help.

------- Comment #9 From Duncan Coutts (RETIRED) 2003-11-10 17:29:44 0000 -------
meld-0.9.0-r1 builds and works fine now
thanks guys

First Last Prev Next    No search results available      Search page      Enter new bug