Bzr and DBus
James Henstridge
jamesh at canonical.com
Wed May 7 02:37:56 BST 2008
2008/5/7 Andrew Bennetts <andrew at canonical.com>:
> Russel Winder wrote:
> [...]
>
> > "/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
> > 28, in <module>
> > import dbus.service
> > ImportError: No module named dbus.service
> >
> > I am guessing that bzr-dbus is the problem. Does it perhaps amend the
> > search path and forget the standard Python library?
>
> I wonder if it's possible that /usr/lib/python2.5/site-packages/bzrlib/plugins
> is on PYTHONPATH? Then "import dbus" could find the bzrlib plugin, rather than
> the top-level dbus package.
The simple experiments I tried don't seem to point at that:
>>> import sys.no_such_module
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named no_such_module
>>> import no_such_package.no_such_module
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named no_such_package.no_such_module
So the fact that Russel's traceback was saying that it couldn't find
"dbus.service" rather than "service" seems to indicate that it
couldn't even import the top level "dbus" module.
James.
More information about the bazaar
mailing list