explorer fails to start when bzr < 1.16

Bug #433300 reported by Jesse N. Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Low
Ian Clatworthy

Bug Description

This is the terminal output:
jesse@jesse-desktop:~/Build/qbzr$ bzr explorer

(<unknown>:27643): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",
bzr: ERROR: exceptions.ImportError: cannot import name parent_directories

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jesse/.bazaar/plugins/explorer/__init__.py", line 126, in run
    window = explorer.QExplorerMainWindow(location=location, profile=hat,
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 106, in __getattribute__
    obj = _replace()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 89, in _replace
    obj = factory(self, scope, name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 192, in _import
    module = __import__(module_python_path, scope, scope, [member])
  File "/home/jesse/.bazaar/plugins/explorer/lib/explorer.py", line 31, in <module>
    from bzrlib.plugins.explorer.lib import (
  File "/home/jesse/.bazaar/plugins/explorer/lib/wt_browser.py", line 21, in <module>
    from bzrlib.osutils import parent_directories
ImportError: cannot import name parent_directories

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [unknown]
  explorer /home/jesse/.bazaar/plugins/explorer [0.8]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /home/jesse/.bazaar/plugins/qbzr [0.14.2]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [unknown]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.3]
  upload /usr/lib/python2.6/dist-packages/bzrlib/plugins/upload [0.1]
  xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
jesse@jesse-desktop:~/Build/qbzr$ bzr explorer

(<unknown>:27645): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",
bzr: ERROR: exceptions.ImportError: cannot import name parent_directories

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jesse/.bazaar/plugins/explorer/__init__.py", line 126, in run
    window = explorer.QExplorerMainWindow(location=location, profile=hat,
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 106, in __getattribute__
    obj = _replace()
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 89, in _replace
    obj = factory(self, scope, name)
  File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 192, in _import
    module = __import__(module_python_path, scope, scope, [member])
  File "/home/jesse/.bazaar/plugins/explorer/lib/explorer.py", line 31, in <module>
    from bzrlib.plugins.explorer.lib import (
  File "/home/jesse/.bazaar/plugins/explorer/lib/wt_browser.py", line 21, in <module>
    from bzrlib.osutils import parent_directories
ImportError: cannot import name parent_directories

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [unknown]
  explorer /home/jesse/.bazaar/plugins/explorer [0.8]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /home/jesse/.bazaar/plugins/qbzr [0.14.2]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [unknown]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.3]
  upload /usr/lib/python2.6/dist-packages/bzrlib/plugins/upload [0.1]
  xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

You need to upgrade to bzr 1.16 or later. I'll look at adding the function in question to explorer as I'm sure this will bite others as well.

Changed in bzr-explorer:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Fixed in rev 279.

Changed in bzr-explorer:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
milestone: none → 0.8.2
status: Triaged → Fix Released
summary: - bzr crashes when I try to use the explorer
+ explorer fails to start when bzr < 1.16
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.