[Bug 1585387] Re: TypeError in prefetch() when trying to push branch to a remote location

Vincent Ladeuil 1585387 at bugs.launchpad.net
Wed May 25 06:47:29 UTC 2016

*** This bug is a duplicate of bug 1579093 ***

** This bug has been marked a duplicate of bug 1579093
   TypeError: prefetch() takes exactly 2 arguments (1 given)

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.

  TypeError in prefetch()  when trying to push branch to a remote

Status in bzr package in Ubuntu:

Bug description:
  bladernr at galactica:~/development/trunks/maas-cert-server$ bzr push --create-prefix sftp://
  bzr: ERROR: exceptions.TypeError: prefetch() takes exactly 2 arguments (1 given)

  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 1121, 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/builtins.py", line 1393, in run
      use_existing_dir=use_existing_dir, no_tree=no_tree)
    File "/usr/lib/python2.7/dist-packages/bzrlib/push.py", line 94, in _show_push_branch
    File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1415, in create_clone_on_transport
    File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 195, in clone_on_transport
      make_working_trees=make_working_trees, shared_repo=want_shared)
    File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1407, in initialize_on_transport_ex
      result = self.initialize_on_transport(transport)
    File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1321, in initialize_on_transport
      return self._initialize_on_transport_vfs(transport)
    File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1463, in _initialize_on_transport_vfs
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockable_files.py", line 164, in lock_write
      token_from_lock = self._lock.lock_write(token=token)
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 674, in lock_write
      return self.wait_lock()
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 603, in wait_lock
      return self.attempt_lock()
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 552, in attempt_lock
      result = self._attempt_lock()
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 271, in _attempt_lock
      info = self.peek()
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 531, in peek
      info = self._read_info_file(self._held_info_path)
    File "/usr/lib/python2.7/dist-packages/bzrlib/lockdir.py", line 521, in _read_info_file
    File "/usr/lib/python2.7/dist-packages/bzrlib/transport/sftp.py", line 422, in get_bytes
      f = self.get(relpath)
    File "/usr/lib/python2.7/dist-packages/bzrlib/transport/sftp.py", line 414, in get
  TypeError: prefetch() takes exactly 2 arguments (1 given)

  bzr 2.7.0 on python 2.7.11 (Linux-4.4.0-22-generic-x86_64-with-
  arguments: ['/usr/bin/bzr', 'push', '--create-prefix', 'sftp://
  plugins: bash_completion[2.7.0], builddeb[2.8.6], builder[0.7.3],
      changelog_merge[2.7.0], grep[2.7.0], launchpad[2.7.0],
      netrc_credential_store[2.7.0], news_merge[2.7.0], po_merge[2.7.0],
  encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

  *** 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
      including this traceback and a description of the problem.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: bzr 2.7.0-2ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue May 24 17:56:52 2016
  InstallationDate: Installed on 2016-02-11 (103 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
  PackageArchitecture: all
  SourcePackage: bzr
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list