win32 - ImportError: No module named bdiff

Marcos Chaves marcos.nospam at
Sun Nov 12 19:14:05 CST 2006


I just started with Mercurial today. After installing the win32
package (Mercurial-0.9.1-a27d90c9336e.exe) and cloning the main
repository, if I try 'hg log', this is what i get:

C:\dev\hg>hg log
** unknown exception encountered, details follow
** report bug details to
** or mercurial at
** Mercurial Distributed SCM (version unknown)
Traceback (most recent call last):
  File "hg", line 12, in ?
  File "C:\dev\hg\mercurial\", line 3231, in run
  File "C:\dev\hg\mercurial\", line 3454, in dispatch
    return d()
  File "C:\dev\hg\mercurial\", line 3413, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "C:\dev\hg\mercurial\", line 1835, in log
    changeiter, matchfn = walkchangerevs(ui, repo, pats, getchange, opts)
  File "C:\dev\hg\mercurial\", line 102, in walkchangerevs
    revs = cmdutil.revrange(ui, repo, opts['rev'] or [defrange])
  File "C:\dev\hg\mercurial\", line 56, in revrange
    start = revfix(repo, start, 0)
  File "C:\dev\hg\mercurial\", line 50, in revfix
    return repo.changelog.rev(repo.lookup(val))
  File "C:\dev\hg\mercurial\", line 365, in lookup
    if key in self.tags():
  File "C:\dev\hg\mercurial\", line 248, in tags
    for rev, node, fnode in self._hgtagsnodes():
  File "C:\dev\hg\mercurial\", line 278, in _hgtagsnodes
    fnode = c.filenode('.hgtags')
  File "C:\dev\hg\mercurial\", line 85, in filenode
    if '_manifestdelta' in self.__dict__ or path in self.files():
  File "C:\dev\hg\mercurial\", line 65, in files
    def files(self): return self._changeset[3]
  File "C:\dev\hg\mercurial\", line 46, in __getattr__
    self._changeset =
  File "C:\dev\hg\mercurial\", line 86, in read
    return self.extract(self.revision(node))
  File "C:\dev\hg\mercurial\", line 913, in revision
    text = self.patches(text, bins)
  File "C:\dev\hg\mercurial\", line 832, in patches
    return mdiff.patches(t, pl)
  File "C:\dev\hg\mercurial\", line 61, in __getattribute__
    module = object.__getattribute__(self, 'module')()
  File "C:\dev\hg\mercurial\", line 54, in module
    return object.__getattribute__(self, 'importer').module()
  File "C:\dev\hg\mercurial\", line 30, in module
  File "C:\dev\hg\mercurial\", line 9, in ?
    import bdiff, mpatch
ImportError: No module named bdiff

I hope this helps,


Obs.: thanks to the people on the IRC who helped with the merge tool

More information about the Mercurial mailing list