git: No module named git.mapping

Bug #1744090 reported by Saša Janiška
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Attempt to import git repo into brz branch gives:

$  brz pull -Derror -d financije-bzr/ financije-git/
brz: ERROR: ImportError: No module named git.mapping

Traceback (most recent call last):
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 1007, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 1193, in run_bzr
    ret = run(*run_argv)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 756, in run_argv_aliases
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 780, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 1310, in run
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 183, in open
  File "/home/gour/.bazaar/plugins/brz-git/", line 424, in open_branch
    repo = self.open_repository()
  File "/home/gour/.bazaar/plugins/brz-git/", line 479, in open_repository
    return self._gitrepository_class(self)
  File "/home/gour/.bazaar/plugins/brz-git/", line 333, in _get_gitrepository_class
    from .repository import LocalGitRepository
  File "/home/gour/.bazaar/plugins/brz-git/", line 42, in <module>
    from .commit import (
  File "/home/gour/.bazaar/plugins/brz-git/", line 50, in <module>
    from .mapping import (
  File "/home/gour/.bazaar/plugins/brz-git/", line 518, in <module>
    default_mapping = mapping_registry.get_default()()
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 104, in get_default
    return self.get(self._get_default_key())
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 177, in get
    return self._dict[self._get_key_or_default(key)].get_obj()
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 74, in get_obj
    self._obj = get_named_object(self._module_name, self._member_name)
  File "/home/gour/.local/lib/python2.7/site-packages/breezy/", line 51, in get_named_object
    obj = __import__(module_name, {}, {}, from_list)
ImportError: No module named git.mapping

I'm using trunk versions of both brz & brz-git.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I can't reproduce this with trunk, so am assuming it's fixed. Can you verify?

Changed in brz-git:
status: New → Fix Released
Revision history for this message
Saša Janiška (gour) wrote :

Should I also have dulwich from the trunk or 0.18.6 is good-enough?

Jelmer Vernooij (jelmer)
Changed in brz-git:
milestone: none → integration
milestone: integration → none
Jelmer Vernooij (jelmer)
affects: brz-git → brz
Changed in brz:
milestone: none → 3.0.0
summary: - No module named git.mapping
+ git: No module named git.mapping
Jelmer Vernooij (jelmer)
Changed in brz:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.