Bzr and DBus

John Arbash Meinel john at arbash-meinel.com
Fri May 9 15:27:33 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russel Winder wrote:
| Andrew,
|
| On Fri, 2008-05-09 at 18:01 +1000, Andrew Bennetts wrote:
|> Russel Winder wrote:
|
|>> |> bzr push
|>> Using saved location: bzr
|>> +ssh://dimen.russel.org.uk/home/www/www.russel.org.uk/html/Bazaar/SCons_Core/
|>> Unable to load plugin 'dbus' from
|>> '/usr/lib/python2.5/site-packages/bzrlib/plugins'
|>> No new revisions to push.
|>> |>
|> I see you are using “bzr+ssh” — so I'm guessing that it's actually an error on
|> the server side, and the stderr on the server is just being passed through to
|> stderr on the client by openssh.  Try these two commands, and compare their
|> output:
|
| Good point, I had not cottoned on to the fact that the message was
| coming from the server end rather than the client end -- though arguably
| I should have done.  Perhaps there is a hint here that some way of
| "tagging" the messages so that the user knows which bit of Bazaar is
| sending which message might be worth it?  I suspect Bazaar aficionados
| will just know anyway, but it would help people coming to Bazaar.
|
|>  - “bzr rocks”, and
|>  - “ssh dimen.russel.org.uk bzr rocks”
|
| |> bzr rocks
| It sure does!
| |> ssh dimen.russel.org.uk bzr rocks
| Unable to load plugin 'dbus' from
| '/usr/lib/python2.5/site-packages/bzrlib/plugins'
| It sure does!
| |>
|
| OK, there is confirmation, the problem is definitely on the server.
| Graham can now stop worrying and just blame me :-)
|
| On the server (dimen):
|
| |> ll /usr/lib/python2.5/site-packages/bzrlib/plugins
| total 36
| drwxr-xr-x  7 root root 4096 2008-05-03 08:39 ./
| drwxr-xr-x 16 root root 8192 2008-04-30 15:33 ../
| drwxr-xr-x  3 root root 4096 2008-04-30 15:38 builddeb/
| drwxr-xr-x  3 root root 4096 2008-04-30 15:33 bzrtools/
| drwxr-xr-x  3 root root 4096 2008-05-03 08:39 dbus/
| lrwxrwxrwx  1 root root   46 2008-04-30 15:27 __init__.py
| -> /usr/share/pyshared/bzrlib/plugins/__init__.py
| -rw-r--r--  1 root root  192 2008-04-30 15:33 __init__.pyc
| drwxr-xr-x  2 root root 4096 2008-04-30 15:33 launchpad/
| drwxr-xr-x  3 root root 4096 2008-04-30 15:38 svn/
| |>
|
| So it would appear that the dbus module is actually there.
|
| |> python
| Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
| [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
| Type "help", "copyright", "credits" or "license" for more information.
|>>> import dbus
|>>> import dbus.service
|>>>
|


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.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkX1UACgkQJdeBCYSNAAMiNQCgzzYwAdk5RQr5aVVBAutTjJO2
aTsAoIMedagaiBty8UeF2RqSYHeld/KH
=0pnJ
-----END PGP SIGNATURE-----



More information about the bazaar mailing list