AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

Bug #288427 reported by Russ Brown
2
Affects Status Importance Assigned to Milestone
Loom
Fix Released
Critical
Unassigned

Bug Description

I get this error when attempting to run bzr record:

bzr: ERROR: exceptions.AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 849, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 795, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 495, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/rbrown/.bazaar/plugins/loom/commands.py", line 243, in run
    abranch.record_loom(message)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/rbrown/.bazaar/plugins/loom/branch.py", line 580, in record_loom
    ('file', 0, False, None))
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 368, in record_entry_contents
    file_obj, stat_value = tree.get_file_with_stat(ie.file_id, path)
AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

bzr 1.8 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'record', 'Saving loom']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bookmarks /home/rbrown/.bazaar/plugins/bookmarks [unknown]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.8.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  diffstat /home/rbrown/.bazaar/plugins/diffstat [0.2.0]
  ebuyer /home/rbrown/.bazaar/plugins/ebuyer [0.8.1]
  extmerge /home/rbrown/.bazaar/plugins/extmerge [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  interactive /home/rbrown/.bazaar/plugins/interactive [1.2.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /home/rbrown/.bazaar/plugins/loom [1.4.0dev0]
  qbzr /home/rbrown/.bazaar/plugins/qbzr [0.9.5dev0]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.4.0dev0]
  stats /home/rbrown/.bazaar/plugins/stats [unknown]

It might not be relevant, but the branch I'm working on is a checkout (I'm hoping that loom operations will automatically propagate to the upstream branch).

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 288427] [NEW] AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

 importance critical

Changed in bzr-loom:
importance: Undecided → Critical
Revision history for this message
Colin D Bennett (colinb) wrote :
Download full text (3.3 KiB)

I also get this same error:

cdb@tsunami ~/grub/work/gsoc08 $ bzr record "New font engine UTF-8 support."
bzr: ERROR: exceptions.AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

Traceback (most recent call last):
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/cdb/.bazaar/plugins/loom/commands.py", line 243, in run
    abranch.record_loom(message)
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/cdb/.bazaar/plugins/loom/branch.py", line 580, in record_loom
    ('file', 0, False, None))
  File "/home/cdb/src/bzr/bzr.dev/bzrlib/repository.py", line 368, in record_entry_contents
    file_obj, stat_value = tree.get_file_with_stat(ie.file_id, path)
AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

bzr 1.9dev on python 2.5.2 (linux2)
arguments: ['/home/cdb/bin/bzr', 'record', 'New font engine UTF-8 support.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.8.0]
  extmerge /home/cdb/.bazaar/plugins/extmerge [unknown]
  gnulog /home/cdb/.bazaar/plugins/gnulog.py [unknown]
  gtk /home/cdb/.bazaar/plugins/gtk [0.96.0dev1]
  launchpad /home/cdb/src/bzr/bzr.dev/bzrlib/plugins/launchpad [unknown]
  loom /home/cdb/.bazaar/plugins/loom [1.4.0dev0]
  qbzr /home/cdb/.bazaar/plugins/qbzr [0.9.5dev0]
  svn /home/cdb/.bazaar/plugins/svn [0.4.14dev0]
  vimdiff /home/cdb/.bazaar/plugins/vimdiff [unknown]
*** 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.

This is a lightweight checkout from the branch in my local no-trees shared repository. Here is the 'bzr info' on the checkout, the branch, and the repo:

cdb@tsunami ~/grub/work/gsoc08 $ bzr info
Lightweight checkout (format: 1.6 or 1.6.1-rich-root or dirstate or dirstate-tags or pack-0.92 or rich-root or rich-root-pack)
Location:
  light checkout root: .
   checkout of branch: /home/cdb/grub/repo/gsoc08
    shared repository: /home/cdb/grub/repo

Related branches:
    push branch: bzr+ssh://gibibit.com/home/skylen/www/grub/bzr/gsoc08
  parent branch: /home/cdb/grub/repo/trunk-clean
  submit branch: /home/cdb/grub/repo/trunk-clean
cdb@tsunami ~/grub/work/gsoc08 $ bzr info /home/cdb/grub/repo/gsoc08
Repository branch (format: unnamed)
Location:
  shared repository: /home/cdb/grub/repo
  repository branch: /home/cdb/grub/repo/gsoc08

Related branches:
    push branch: bzr+ssh://gibibit.com/home/skylen/www/grub/bzr/gsoc08
  parent branch: /home/cdb/grub/repo/trunk-clean
  submit branch: /home/cdb/grub/r...

Read more...

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 288427] Re: AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

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

Colin D Bennett wrote:
> I also get this same error:
>
>
> cdb@tsunami ~/grub/work/gsoc08 $ bzr record "New font engine UTF-8 support."
> bzr: ERROR: exceptions.AttributeError: 'LoomMetaTree' object has no attribute 'get_file_with_stat'

This problem doesn't exist on my lp:~abentley/bzr-loom/stuff branch.

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

iEYEARECAAYFAkkKyxgACgkQ0F+nu1YWqI3p/wCdE3w53GjTwdZzeRqcOYwMmYcX
zq0Ani7eVxWLOjRlLfFyqi8qOagpn2Xf
=EbWW
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote :

Sorry for taking so long about closing the report off - fixed way way back.

Changed in bzr-loom:
status: New → Fix Released
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.