FS#22547 - [terminator] won't launch without "python2-bonobo" package

Attached to Project: Community Packages
Opened by Doug Penner (DarwinSurvivor) - Saturday, 22 January 2011, 01:37 GMT
Last edited by Ionut Biru (wonder) - Thursday, 10 February 2011, 18:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Dan Griffiths (Ghost1227)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
terminator does not run unless the "python2-bonobo" package is installed.
With the package installed, terminator runs without error, without it you get an import error for "bonobo.ui"

Additional info:
python2-bonobo 2.28.1-6
terminator 0.95-2
python2 2.7.1-4

Steps to reproduce:
attempt to start terminator without the python2-bonobo package installed.
   error (0.6 KiB)
This task depends upon

Closed by  Ionut Biru (wonder)
Thursday, 10 February 2011, 18:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  terminator-0.95-4
Comment by Stefan Joosten (Ultraman) - Sunday, 23 January 2011, 19:50 GMT
  • Field changed: Percent Complete (100% → 0%)
python2-bonobo is not needed for terminator to run properly.
I do not have python2-bonobo installed on my system and terminator is working fine.
python2-bonobo might be made an optional dependency if it enables certain features of terminator. But it is not required to run.

Copied from my terminal emulator (which is terminator!):
stefan@aether ~ $ pacman -Q terminator
terminator 0.95-2
stefan@aether ~ $ pacman -Q python2-bonobo
error: package "python2-bonobo" not found

python2-bonobo pulls in libbonoboui, which pulls in libgnome, which pulls in all kinds of GNOME dependencies, including gnome-vfs that relies on hal. And hal is a dep lots of people are trying to get rid of...

So I would like this dependency of python2-bonobo to be made optional.
I can run terminator just fine without it. Perhaps DarwinSurvivor is using GNOME Terminal type profiles that might require python2-bonobo bindings to work properly?
Comment by Goh Choon Yoong (cygoh) - Monday, 24 January 2011, 04:31 GMT
Voted. Agree with Stefan.
Comment by Filipp Andjelo (scorp) - Monday, 24 January 2011, 08:16 GMT
I'm using a very lightweight system here without any desktop environment, only remote X. Terminator is one of my favorite tools, but today on update, pacman suddenly wanted to pull a half of GNOME on my system. I can run terminator without bonobo too. Adding python2-bonobo is fatal for lightweight system users, please remove it again, since it has deepest GNOME dependencies.
Comment by Doug Penner (DarwinSurvivor) - Monday, 24 January 2011, 13:34 GMT
Ok, fair enough.
@Stefan Joosten: by "gnome-terminal type profiles", what do you mean by that? Are you saying it could be something in my .bashrc that is causing this? Because xterm ran fine when terminator was crashing and as far as I know, xterm sources the same .bashFOO files when it runs.
Comment by Stefan Joosten (Ultraman) - Monday, 24 January 2011, 14:10 GMT
Doug Penner: I thought you might be using something in your Terminal Profile that would require python-bonobo bindings to work properly. An option, script or plugin perhaps?
Or maybe you have something else from GNOME running that might interfere here?

Voted also. ;-)
Comment by Doug Penner (DarwinSurvivor) - Monday, 24 January 2011, 21:03 GMT
I have deleted my .conf/terminator folder and am still getting the error. I also tried running terminator from a user account that has never been used with terminator, gnome or almost any other graphical apps at all and I *still* got the error.

I looked through /usr/bin/terminator and /usr/lib/python2.7/site-packages/terminatorlib/terminator.py and the error is coming from the second one where it looks for a gnome-session (I run openbox, so I don't know why it would need a gnome-session).

Does anyone know what bonobo is even USED for?!? All I can figure out is that gnome (and possibly GTK) uses it for stuff.
Comment by Balló György (City-busz) - Monday, 24 January 2011, 21:05 GMT
terminator should not depends on python2-bonobo, it's a missing dependency of python2-libgnome. See  FS#22594 . I propose the following depends and optdepends for terminator:
depends=('pygtk' 'vte' 'xdg-utils')
optdepends=('dbus-python: dbus support'
'python2-gconf: use the default GNOME settings'
'python2-libgnome: GNOME session support'
'python-notify: required for ActivityWatch plugin')
Comment by Filipp Andjelo (scorp) - Tuesday, 25 January 2011, 15:09 GMT
The problem is solved, why don't you remove the dependency and close this thread?
Comment by Filipp Andjelo (scorp) - Wednesday, 26 January 2011, 08:36 GMT
Comment by Filipp Andjelo (scorp) - Monday, 07 February 2011, 07:10 GMT
What's going on here? Would you please finally close this issue ?!
Comment by Doug Penner (DarwinSurvivor) - Monday, 07 February 2011, 12:10 GMT
The problem is not completely solved, I am still experiencing the problem and can't figure out what the cause is. I am in agreement that the dependency is not required, but the fact still remains that it seems to be on my system.
Comment by Balló György (City-busz) - Monday, 07 February 2011, 14:14 GMT
The maintainer (Ghost1227) stepped down[1], so maybe an another TU should adopt this task.

[1] http://mailman.archlinux.org/pipermail/arch-dev-public/2011-January/019120.html
Comment by Ionut Biru (wonder) - Monday, 07 February 2011, 14:23 GMT
what do i have to do here? Just remove python2-bonobo from depends and add the optdepends that György suggested?
Comment by Filipp Andjelo (scorp) - Monday, 07 February 2011, 15:36 GMT
I would say yes, bcs python2-bonobo has nothing to do with terminator. It seems to use python2-libgnome if it's there, which uses libgnome again. This package seems not to be made well at least, because of that we get an error about bonobo. But its fatal to pull the dependency into terminator, since you'll need half of gnome and hal (!) on top. Terminator is running fine without bonobo. By the way I have one gnome system here without libgnome and without bonobo, but with terminator running fine :)

@Doug: may be we could compare our systems to get the problem solved, what do you think?
Comment by Ionut Biru (wonder) - Monday, 07 February 2011, 15:43 GMT
gnome itself works fine without libgnome but some other stuff from libgnome are needed like the schemas. That's why i split that up into libgnome and libgnome-data and the second is needed mostly for gnome-terminal
Comment by Doug Penner (DarwinSurvivor) - Tuesday, 08 February 2011, 04:51 GMT
@Filipp that would be great, what type of information do you think would be helpful? I'm assuming "pacman -Qe" to start? Also, should we continue this here, is there a more appropriate place (forum, etc)?
Comment by Filipp Andjelo (scorp) - Wednesday, 09 February 2011, 21:32 GMT Comment by Doug Penner (DarwinSurvivor) - Thursday, 10 February 2011, 12:32 GMT
Hmm, I did some cleaning yesterday (removing hal) and I was able to remove libgnome as well as python2-bonobo and terminator is still running. My best guess is that if terminator detects that libgnome is installed (the terminator script appears, be reading it, to be detecting SOMETHING gnome-ish) that it tries to use bonobo.

I have attached a section of my pacman log showing what was removed in case anyone stumbles upon this later with the same issue.

I will also make a note on the forum you linked to in case anyone reading that is looking for some hints.
Comment by Ionut Biru (wonder) - Thursday, 10 February 2011, 12:50 GMT
ok. so i'll have to remove python2-bonobo and add those optdepends. right?
Comment by Doug Penner (DarwinSurvivor) - Thursday, 10 February 2011, 12:59 GMT
Sounds like it. It's kind of weird, if I'm right (and please correct me if I'm wrong), it appears as though terminator requires bonobo ONLY if libgnome is installed...

Might be best off possibly leaving it in opt-depends and making a note in the PKGBUILD that it is required if using libgnome (if it is in fact libgnome causing the issue, it could be one of the other gnome packages that I removed it's hard to tell).

But it definitely doesn't need to be a full dependency. :D
Comment by Filipp Andjelo (scorp) - Thursday, 10 February 2011, 13:03 GMT
I've installed libgnome with libbonobo yesterday to check it out, but terminator was running fine without python2-bonobo. So now I'm not even sure if python2-bonobo is worth to be in optdepends of terminator. Officially terminator has no dependency on libbonobo in any kind.
Comment by Filipp Andjelo (scorp) - Thursday, 10 February 2011, 14:14 GMT
Ahh yes, its definitely not a full dependency, imho it's not even optdepends, because it is not terminator expecting python2-bonobo. It appears sometimes (yet don't understand when, I couldn't reproduce it on my system) if terminator wants s.t. from libgnome. Terminator itself has not one line of code requesting bonobo! I think, actually it could be gnome-terminal which makes problems. If this one is installed on the system, then terminator is trying to get something from it. May be that one is trying to use bonobo?!
Comment by Balló György (City-busz) - Thursday, 10 February 2011, 14:15 GMT
@wonder: yes, please do it.

Terminator never requires python2-bonobo directly. The error message came from python2-libgnome, which is fixed in  FS#22594 .
Comment by Ionut Biru (wonder) - Thursday, 10 February 2011, 16:35 GMT Comment by Balló György (City-busz) - Thursday, 10 February 2011, 17:02 GMT
But Ubuntu does't have it [1]. I still think that python2-bonobo required by python2-libgnome only. And Gentoo depends on python2-libgnome, not on bonobo, but in fact, python2-libgnome is used optionally by terminator, so it should not a dependency.

The  FS#22594  solves the original report about "import error for bonobo.ui". If anyone has another error message, please paste it here.

[1] https://launchpad.net/ubuntu/natty/i386/terminator/0.95-1

Loading...