Bzr and DBus

Russel Winder russel.winder at concertant.com
Fri May 9 16:19:07 BST 2008


Summary:  Sussed...

On Fri, 2008-05-09 at 09:27 -0500, John Arbash Meinel wrote:

> So since you can ssh to that server, run "bzr rocks" there. And then check you
> ~/.bzr.log to see why it thinks the plugin cannot load. It could be several
> different things, but the import exception should be logged.

Slight problem with the .bzr.log I suspect:  the server machine is not
only the place where the Bazaar branch is, it is also also the NFS
fileserver for my filestore.  Thus it seems I have been getting some
false impressions about what has been going on as tailing the log on one
machine gives different results to doing it on another.   I had been
monitoring the file on the client not on the server.  Monitoring on the
server I see:

 0.285  encoding stdout as sys.stdout encoding 'UTF-8'
0.289  bzr arguments: [u'rocks']
0.289  looking for plugins in /home/users/russel/.bazaar/plugins
0.419  looking for plugins
in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.419  Plugin name __init__ already loaded
0.420  Plugin name __init__ already loaded
[25967] 2008-05-09 15:41:06.095 WARNING: Unable to load plugin 'dbus'
from '/usr/lib/python2.5/site-packages/bzrlib/plugins'
0.672  Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugin.py", line 195, in
load_from_dir
    exec "import bzrlib.plugins.%s" % name in {}
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.5/site-packages/bzrlib/plugins/dbus/__init__.py", line
67, in <module>
    from activity import Activity, LanGateway
  File
"/usr/lib/python2.5/site-packages/bzrlib/plugins/dbus/activity.py", line
29, in <module>
    import gobject
ImportError: No module named gobject

0.700  encoding stdout as sys.stdout encoding 'UTF-8'
0.701  return code 0

python-gobject is not installed.  If it should be then I guess there are
dependency problems in some of the deb files.

Install this and the problem goes away.  Not only does Bazaar now rock,
it does not complain about dbus not being loadable:

503 dimen:~
|> bzr rocks
It sure does!
503 dimen:~
|> 

So I think the problem has now gone -- well except why complain about
dbus not being found when the problem was gobject; why was
python-gobject not installed, the packaging system is supposed to get
all this right; and why give the wrong log data?

Whatever the case, I am now happy on this front -- which is good :-)

-- 
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080509/d7f500c2/attachment.pgp 


More information about the bazaar mailing list