No attribute get_bytes

Bug #408445 reported by Ted Gould
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Trying to merge a bundle into a branch.

$ bzr merge ../generalize.bundle
bzr: ERROR: exceptions.AttributeError: 'AbsentContentFactory' object has no attribute 'get_bytes_as'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3671, in run
    mergeable, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 164, in from_mergeable
    mergeable.get_merge_request(tree.branch.repository)
  File "/usr/lib/python2.6/dist-packages/bzrlib/merge_directive.py", line 607, in get_merge_request
    verified = self._maybe_verify(repository)
  File "/usr/lib/python2.6/dist-packages/bzrlib/merge_directive.py", line 612, in _maybe_verify
    if self._verify_patch(repository):
  File "/usr/lib/python2.6/dist-packages/bzrlib/merge_directive.py", line 593, in _verify_patch
    self.base_revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/merge_directive.py", line 190, in _generate_diff
    diff.show_diff_trees(tree_1, tree_2, s, old_label='', new_label='')
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 427, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 834, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 857, in _show_diff
    executable) in sorted(iterator, key=changes_key):
  File "/usr/lib/python2.6/dist-packages/bzrlib/revisiontree.py", line 256, in iter_changes
    for result in self.target.inventory.iter_changes(self.source.inventory):
  File "/usr/lib/python2.6/dist-packages/bzrlib/inventory.py", line 1864, in iter_changes
    self.id_to_entry.iter_changes(basis.id_to_entry):
  File "/usr/lib/python2.6/dist-packages/bzrlib/chk_map.py", line 278, in iter_changes
    self._ensure_root()
  File "/usr/lib/python2.6/dist-packages/bzrlib/chk_map.py", line 124, in _ensure_root
    self._root_node = self._get_node(self._root_node)
  File "/usr/lib/python2.6/dist-packages/bzrlib/chk_map.py", line 137, in _get_node
    bytes = self._read_bytes(node)
  File "/usr/lib/python2.6/dist-packages/bzrlib/chk_map.py", line 148, in _read_bytes
    bytes = stream.next().get_bytes_as('fulltext')
AttributeError: 'AbsentContentFactory' object has no attribute 'get_bytes_as'

bzr 1.17 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'merge', '../generalize.bundle']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  avahi /usr/lib/python2.6/dist-packages/bzrlib/plugins/avahi [0.3dev]
  dbus /usr/lib/python2.6/dist-packages/bzrlib/plugins/dbus [0.1dev]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.2.final]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [1.17]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [1.17]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.5.3]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7dev]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.6.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.

Bazaar information:

$ bzr version
Bazaar (bzr) 1.17
  Python interpreter: /usr/bin/python 2.6.2
  Python standard library: /usr/lib/python2.6
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/ted/.bazaar
  Bazaar log file: /home/ted/.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 408445] [NEW] No attribute get_bytes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ted Gould wrote:
> Public bug reported:
>
>
> Trying to merge a bundle into a branch.
>
> $ bzr merge ../generalize.bundle
> bzr: ERROR: exceptions.AttributeError: 'AbsentContentFactory' object has no attribute 'get_bytes_as'

bundles are not yet compatible with --2a format repositories. This is a
known critical bug (bug #393349). There is a patch pending review, and
it should be present in the next release.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkp3EBwACgkQJdeBCYSNAAOFsgCdEa+20rGJLFygkXkX+yWwnjsf
MNcAoKiGYc7q5sIFwQOWfCZaxSBwYZeF
=n+DC
-----END PGP SIGNATURE-----

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.