Bzr and DBus
John Arbash Meinel
john at arbash-meinel.com
Fri May 9 16:21:35 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Russel Winder wrote:
| 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 :-)
|
We weren't complaining about 'dbus' the addon, we were complaining about 'dbus'
the plugin. We were unable to load the plugin because of a missing dependency.
We *could* spew the full import traceback every time we try to load the plugin,
but that is probably worse that "could not load". Maybe if we just printed the
last line of the traceback?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgka/8ACgkQJdeBCYSNAAPUtACgob5Uhz4CYjf48Mlna0ZDtdmb
mxkAoKVjt88tx897C5EzaG4nUvas30Xg
=DHSP
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list