open() got an unexpected keyword argument 'name' running 'info -v'

Bug #586602 reported by Martin Pool on 2010-05-27
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Loom
Critical
Vincent Ladeuil

Bug Description

info -z on a remote loom fails with a TypeError inside open_branch:

mbp@lithe% bzr info -v lp:~barry/computer-janitor/loomified
Repository branch (format: unnamed)
Location:
  shared repository: bzr+ssh://bazaar.launchpad.net/~barry/computer-janitor/loomified/
  repository branch: bzr+ssh://bazaar.launchpad.net/~barry/computer-janitor/loomified/

Related branches:
  parent branch: /home/barry/projects/janitor/trunk
     stacked on: /~computer-janitor-hackers/computer-janitor/trunk

Format:
       control: bzr remote bzrdir
        branch: Remote: Loom branch format 7
    repository: Remote: Repository format 2a - rich roots, group compression and chk inventories
\ 7kB 1kB/s |
apport is set to ignore crashes in this version of bzr.
bzr: ERROR: exceptions.TypeError: open() got an unexpected keyword argument 'name'

Traceback (most recent call last):
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 909, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 1107, in run_bzr
    ret = run(*run_argv)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 687, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 702, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 1122, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/builtins.py", line 1500, in run
    verbose=noise_level, outfile=self.outf)
  File "/home/mbp/bzr/trunk/bzrlib/info.py", line 350, in show_bzrdir_info
    outfile)
  File "/home/mbp/bzr/trunk/bzrlib/info.py", line 374, in show_component_info
    _show_locking_info(repository, branch, working, outfile)
  File "/home/mbp/bzr/trunk/bzrlib/info.py", line 183, in _show_locking_info
    (branch and branch.get_physical_lock_status()) or
  File "/home/mbp/bzr/trunk/bzrlib/remote.py", line 2331, in get_physical_lock_status
    self._ensure_real()
  File "/home/mbp/bzr/trunk/bzrlib/remote.py", line 2279, in _ensure_real
    ignore_fallbacks=self._real_ignore_fallbacks, name=self._name)
  File "/home/mbp/bzr/trunk/bzrlib/bzrdir.py", line 1870, in open_branch
    _found=True, ignore_fallbacks=ignore_fallbacks)
TypeError: open() got an unexpected keyword argument 'name'

bzr 2.2.0dev1 on python 2.6.5 (Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid)
arguments: ['/home/mbp/bin/bzr', 'info', '-v', 'lp:~barry/computer-janitor/loomified']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  bash_completion /home/mbp/bzr/trunk/bzrlib/plugins/bash_completion [2.2.0dev1]
  bisect /home/mbp/.bazaar/plugins/bisect [1.1.0.pre.0]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  commitfromnews /home/mbp/.bazaar/plugins/commitfromnews [unknown]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  explorer /home/mbp/.bazaar/plugins/explorer [1.1.0dev]
  fail /home/mbp/.bazaar/plugins/fail [unknown]
  grep /home/mbp/.bazaar/plugins/grep [0.1.0dev]
  gtk /home/mbp/.bazaar/plugins/gtk [0.99.0dev1]
  launchpad /home/mbp/bzr/trunk/bzrlib/plugins/launchpad [2.2.0dev1]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [1.4.0dev]
  netrc_credential_store /home/mbp/bzr/trunk/bzrlib/plugins/netrc_credential_store [2.2.0dev1]
  news_merge /home/mbp/bzr/trunk/bzrlib/plugins/news_merge [2.2.0dev1]
  plugin_info /home/mbp/.bazaar/plugins/plugin_info [1.3.0dev]
  pqm /home/mbp/.bazaar/plugins/pqm [1.4.0dev]
  progressdemo /home/mbp/.bazaar/plugins/progressdemo [unknown]
  qbzr /home/mbp/.bazaar/plugins/qbzr [0.17.0dev]
  search /home/mbp/.bazaar/plugins/search [1.7.0dev]
  svn /home/mbp/.bazaar/plugins/svn [1.0.3dev]
  upload /home/mbp/.bazaar/plugins/upload [1.0.0dev]
  usertest /home/mbp/.bazaar/plugins/usertest [unknown]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
HPSS calls: 26 (10 vfs) SmartSSHClientMedium(bzr+ssh://<email address hidden>/)

Martin Pool (mbp) wrote :
Download full text (3.6 KiB)

Branch follows similarly:

mbp@lithe% bzr branch lp:~barry/computer-janitor/loomified ~/testdata/computer-janitor

apport is set to ignore crashes in this version of bzr.
bzr: ERROR: exceptions.TypeError: initialize() got an unexpected keyword argument 'name'

Traceback (most recent call last):
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 909, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 1107, in run_bzr
    ret = run(*run_argv)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 687, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/mbp/bzr/trunk/bzrlib/commands.py", line 702, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/builtins.py", line 1244, in run
    source_branch=br_from)
  File "/home/mbp/bzr/trunk/bzrlib/bzrdir.py", line 1267, in sprout
    revision_id=revision_id, repository_policy=repository_policy)
  File "/home/mbp/bzr/trunk/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/mbp/bzr/trunk/bzrlib/branch.py", line 1232, in sprout
    result = to_bzrdir.create_branch()
  File "/home/mbp/bzr/trunk/bzrlib/bzrdir.py", line 1715, in create_branch
    return self._format.get_branch_format().initialize(self, name=name)
TypeError: initialize() got an unexpected keyword argument 'name'

bzr 2.2.0dev1 on python 2.6.5 (Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid)
arguments: ['/home/mbp/bin/bzr', 'branch', 'lp:~barry/computer-janitor/loomified', '/home/mbp/testdata/computer-janitor']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  bash_completion /home/mbp/bzr/trunk/bzrlib/plugins/bash_completion [2.2.0dev1]
  bisect /home/mbp/.bazaar/plugins/bisect [1.1.0.pre.0]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  commitfromnews /home/mbp/.bazaar/plugins/commitfromnews [unknown]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1.0dev]
  explorer /home/mbp/.bazaar/plugins/explorer [1.1.0dev]
  fail /home/mbp/.bazaar/plugins/fail [unknown]
  grep /home/mbp/.bazaar/plugins/grep [0.1.0dev]
  gtk /home/mbp/.bazaar/plugins/gtk [0.99.0dev1]
  launchpad /home/mbp/bzr/trunk/bzrlib/plugins/launchpad [2.2.0dev1]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [1.4.0dev]
  netrc_credential_store /home/mbp/bzr/trunk/bzrlib/plugins/netrc_credential_store [2.2.0dev1]
  news_merge /home/mbp/bzr/trunk/bzrlib/plugins/news_merge [2.2.0dev1]
  plugin_in...

Read more...

affects: bzr → bzr-loom
Changed in bzr-loom:
status: New → Fix Released
importance: Undecided → Critical
assignee: nobody → Vincent Ladeuil (vila)
milestone: none → 2.2
Scott Hannahs (shannahs) wrote :

This doesn't seem to be fixed for me. I am using loom 2.2.1dev. From what I can tell here, this is a loom problem and not a bzr problem.

% bzr branch lp:ocsinventory-unix-agent
bzr: ERROR: exceptions.TypeError: initialize() got an unexpected keyword argument 'name'

Traceback (most recent call last):
  File "/sw/lib/python2.6/site-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/sw/lib/python2.6/site-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/sw/lib/python2.6/site-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/sw/lib/python2.6/site-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/sw/lib/python2.6/site-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/sw/lib/python2.6/site-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/sw/lib/python2.6/site-packages/bzrlib/builtins.py", line 1232, in run
    source_branch=br_from)
  File "/sw/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 1193, in sprout
    revision_id=revision_id, repository_policy=repository_policy)
  File "/sw/lib/python2.6/site-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/sw/lib/python2.6/site-packages/bzrlib/branch.py", line 1164, in sprout
    result = to_bzrdir.create_branch()
  File "/sw/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 1597, in create_branch
    return self._format.get_branch_format().initialize(self)
  File "/sw/lib/python2.6/site-packages/bzrlib/plugins/loom/branch.py", line 779, in initialize
    super(LoomFormatMixin, self).initialize(a_bzrdir, name=None)
TypeError: initialize() got an unexpected keyword argument 'name'

bzr 2.1.0 on python 2.6.6 (Darwin-10.7.0-i386-64bit)
arguments: ['/sw/bin/bzr', 'branch', 'lp:ocsinventory-unix-agent']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /sw/lib/python2.6/site-packages/bzrlib/plugins/launchpad [2.1.0]
  loom /sw/lib/python2.6/site-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /sw/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0]
  news_merge /sw/lib/python2.6/site-packages/bzrlib/plugins/news_merge [2.1.0]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
%

Jelmer Vernooij (jelmer) wrote :

Hi Scott,

You need either an older version of bzr-loom or a newer version of bzr.

Scott Hannahs (shannahs) wrote :

Well, I tried version 2.1 of bzr-loom but that gave a different problem that suggested I update. So I guess I am off to do the latter suggestion. What a PITA, since this is all just so I can get the source code to try a different bug hunt.

Scott Hannahs (shannahs) wrote :

I now have the latest and greatest of both and finally got my repository synchronized and now I can get going. Thanks for the help.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers