bzr: ERROR: No module named dir

Bug #1001784 reported by Timmie
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Expired
Undecided
Unassigned

Bug Description

$ bzr info

bzr: ERROR: No module named dir
You may need to install this Python library separately.

$ uname -r
3.2.0-24-generic

$bzr version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.2.0-24-generic-x86_64-with-Ubuntu-12.04-precise
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib

Revision history for this message
Vincent Ladeuil (vila) wrote :

Is there a more complete traceback in .bzr.log ('bzr version' will tell you where it's located for you) ?

This smells like a PYTHONPATH including the current dir and loading unexpected modules (I can't remember any module named 'dir' though).

Alternatively running 'bzr -Derror info' should display it or, if you feel adventurous, 'BZR_PDB=1 bzr info' should give you a pdb prompt.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
Revision history for this message
Timmie (timmie) wrote :

bzr -Derror info
bzr: ERROR: exceptions.ImportError: No module named dir

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1158, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1854, in run
    verbose=noise_level, outfile=self.outf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/info.py", line 378, in show_bzrdir_info
    outfile)
  File "/usr/lib/python2.7/dist-packages/bzrlib/info.py", line 394, in show_component_info
    format = describe_format(control, repository, branch, working)
  File "/usr/lib/python2.7/dist-packages/bzrlib/info.py", line 499, in describe_format
    format = controldir.format_registry.make_bzrdir(key)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 1348, in make_bzrdir
    return self.get(key)()
  File "/usr/lib/python2.7/dist-packages/bzrlib/registry.py", line 177, in get
    return self._dict[self._get_key_or_default(key)].get_obj()
  File "/usr/lib/python2.7/dist-packages/bzrlib/registry.py", line 74, in get_obj
    self._obj = get_named_object(self._module_name, self._member_name)
  File "/usr/lib/python2.7/dist-packages/bzrlib/pyutils.py", line 51, in get_named_object
    obj = __import__(module_name, {}, {}, from_list)
ImportError: No module named dir

Timmie (timmie)
Changed in bzr:
status: Expired → Incomplete
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

can you try running with BZR_DISABLE_PLUGINS=X set, where X is either svn, hg or git ? One of those plugins is breaking bzr.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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