bzr baz-import-branch failure

James Henstridge james at jamesh.id.au
Mon Oct 30 07:06:59 GMT 2006


On 30/10/06, Erik de Castro Lopo <erikd+bzr at mega-nerd.com> wrote:
> Hi all,
>
> I'm trying to do an import of a local branch under GNU Arch (tla, not baz)
> using:
>
>     bzr baz-import-branch libsndfile--mdev--1.0 \
>                 erikd at miles--2004/libsndfile--mdev--1.0
>
> which resulted in the following nasty backtrace:
>
>     Unable to load plugin 'extmerge' from '/home/erikd/.bazaar/plugins'
>     importing erikd at miles--2004/libsndfile--mdev--1.0 into /home/erikd/Bzr/libsndfile--mdev--1.0
>     Cleaning up
>     bzr: ERROR: exceptions.TypeError: name must be a str, but was: bzrlib.plugins.bzrtools.pybaz.Revision('erikd at miles--2004/libsndfile--mdev--1.0--base-0')
>
>     Traceback (most recent call last):
>       File "/home/erikd/Install/lib/python/bzrlib/commands.py", line 623, in run_bzr_catch_errors
>         return run_bzr(argv)
>       File "/home/erikd/Install/lib/python/bzrlib/commands.py", line 585, in run_bzr
>         ret = run(*run_argv)
>       File "/home/erikd/Install/lib/python/bzrlib/commands.py", line 291, in run_argv_aliases
>         return self.run(**all_cmd_args)
>       File "/home/erikd/.bazaar/plugins/bzrtools/__init__.py", line 585, in run
>         reuse_history_list)
>       File "/home/erikd/.bazaar/plugins/bzrtools/baz_import.py", line 746, in baz_import_branch
>         reuse_history_from=reuse_history_list)
>       File "/home/erikd/.bazaar/plugins/bzrtools/baz_import.py", line 434, in import_version
>         max_count=max_count, standalone=standalone):
>       File "/home/erikd/.bazaar/plugins/bzrtools/baz_import.py", line 594, in iter_import_version
>         tree, baz_inv, log = get_revision(revdir, revision)
>       File "/home/erikd/.bazaar/plugins/bzrtools/baz_import.py", line 682, in get_revision
>         log = get_log(tree, revision)
>       File "/home/erikd/.bazaar/plugins/bzrtools/baz_import.py", line 677, in get_log
>         assert str(log.revision) == str(revision), (log.revision, revision)
>       File "/home/erikd/.bazaar/plugins/bzrtools/pybaz/_patchlog.py", line 176, in _get_revision
>         assert self.__revision == self['Archive']+'/'+self['Revision']
>       File "/home/erikd/.bazaar/plugins/bzrtools/pybaz/_patchlog.py", line 155, in __getitem__
>         return self._parse()[header]
>       File "/home/erikd/.bazaar/plugins/bzrtools/pybaz/_patchlog.py", line 134, in _parse
>         revision = _factory().Revision(self.__revision)
>       File "/usr/lib/python2.4/site-packages/pybaz/_builtin.py", line 140, in Revision
>         _check_param_type('name', name, str)
>       File "/usr/lib/python2.4/site-packages/pybaz/_builtin.py", line 83, in _check_param_type
>         raise TypeError("%s must be a %s, but was: %r"
>     TypeError: name must be a str, but was: bzrlib.plugins.bzrtools.pybaz.Revision('erikd at miles--2004/libsndfile--mdev--1.0--base-0')
>
>     bzr 0.13.0dev0 on python 2.4.3.final.0 (linux2)
>     arguments: ['/home/erikd/Install/bin/bzr', 'baz-import-branch', 'libsndfile--mdev--1.0', 'erikd at miles--2004/libsndfile--mdev--1.0']
>
>     ** please send this report to bazaar-ng at lists.ubuntu.com
>
> Bzr is working correctly otherwise, apart from this complaint about
> extmerge not being installed (I'm waiting for that archive to come
> back on line).
>
> Any help appreciated.

Some of the frames in the traceback refer to a pybaz module in
/home/erikd/.bazaar/plugins/bzrtools/pybaz while others are for
/usr/lib/python2.4/site-packages/pybaz.  It is likely that this is
causing the confusion.  Is there any reason why you have a copy of
pybaz in ~/.bazaar/plugins/bzrtools?

James.




More information about the bazaar mailing list