bzr push fails with AttributeError

Bug #30214 reported by Stuart Bishop
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Medium
Unassigned

Bug Description

18:32:07~/lp/configs/configs $ bzr push
bzr: ERROR: exceptions.AttributeError: 'BzrBranch' object has no attribute 'controlfilename'
  at /home/stub/.bazaar/plugins/bzrtools/bzrtools.py line 103
  in get_push_data
18:32:11~/lp/configs/configs $ bzr --version
bzr (bazaar-ng) 0.8pre
Copyright 2005,06 Canonical Development Ltd.
http://bazaar-ng.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
Stuart Bishop (stub) wrote : .bzr.log info

bzr 0.8pre invoked on python 2.4.2.final.0 (linux2)
  arguments: ['/usr/bin/bzr', 'push']
  working dir: u'/home/stub/lp/configs/configs'
looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
Plugin name __init__ already loaded
add plugin name bzrk
load plugin (None, '/usr/lib/python2.4/site-packages/bzrlib/plugins/bzrk', ('', '', 5))
registered plugin command visualise
loaded succesfully
looking for plugins in /home/stub/.bazaar/plugins
add plugin name bzrtools
add plugin name vimdiff
load plugin (None, '/home/stub/.bazaar/plugins/bzrtools', ('', '', 5))
registered plugin command push
registered plugin command shelve
registered plugin command unshelve
registered plugin command clean-tree
registered plugin command graph-ancestry
registered plugin command fetch-ghosts
registered plugin command patch
registered plugin command baz-import-branch
registered plugin command baz-import
loaded succesfully
load plugin (None, '/home/stub/.bazaar/plugins/vimdiff', ('', '', 5))
registered plugin command gvimdiff
registered plugin command vimdiff
loaded succesfully
lock read: <bzrlib.lockable_files.LockableFiles object at 0xb76f220c> (None)
trying to create missing branch lock u'/home/stub/lp/configs/configs/.bzr/branch-lock'
not a branch in: u'/home/stub/lp/configs/configs/' Not a branch: /home/stub/lp/configs/configs/
lock read: <bzrlib.lockable_files.LockableFiles object at 0xb76f5c0c> (None)
unlock: <bzrlib.lockable_files.LockableFiles object at 0xb76f5c0c> (1)
got branch format u'Bazaar-NG branch, format 6\n'
[25279] Wed 18:32:10.917 ERROR: exceptions.AttributeError: 'BzrBranch' object has no attribute 'controlfilename'
  at /home/stub/.bazaar/plugins/bzrtools/bzrtools.py line 103
  in get_push_data
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 572, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 534, in run_bzr
    ret = cmd_obj.run_argv(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 233, in run_argv
    return self.run(**all_cmd_args)
  File "/home/stub/.bazaar/plugins/bzrtools/push.py", line 40, in run
    bzrtools.push(cur_branch, location, overwrite=overwrite)
  File "/home/stub/.bazaar/plugins/bzrtools/bzrtools.py", line 254, in push
    push_location = get_push_data(cur_branch)
  File "/home/stub/.bazaar/plugins/bzrtools/bzrtools.py", line 103, in get_push_data
    filename = br.controlfilename("x-push-data")
AttributeError: 'BzrBranch' object has no attribute 'controlfilename'

return code 3

Revision history for this message
James Blackwell (jblack) wrote : Re: [Bug 30214] bzr push fails with AttributeError

Can you try upgrading your bzrtools and seeing if that fixes it?

On Wed, Feb 01, 2006 at 11:34:15AM -0000, Stuart Bishop wrote:
> Public bug reported:
> https://launchpad.net/malone/bugs/30214
>
> Affects: bzr (upstream)
> Severity: Normal
> Priority: (none set)
> Status: Unconfirmed
>
> Description:
> 18:32:07~/lp/configs/configs $ bzr push
> bzr: ERROR: exceptions.AttributeError: 'BzrBranch' object has no attribute 'controlfilename'
> at /home/stub/.bazaar/plugins/bzrtools/bzrtools.py line 103
> in get_push_data
> 18:32:11~/lp/configs/configs $ bzr --version
> bzr (bazaar-ng) 0.8pre
> Copyright 2005,06 Canonical Development Ltd.
> http://bazaar-ng.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.

--
My home page: <a href="http://jblack.linuxguru.net">James Blackwell</a>
Gnupg 06357400 F-print AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400

Revision history for this message
Stuart Bishop (stub) wrote :

Looks like my bzrtools package had become uninstalled leaving an antique version on my PYTHONPATH (possibly just .pyc files - too late now to check unfortunately).

Working now with a modern bzrtools package installed.

Changed in bzr:
status: Unconfirmed → Rejected
Revision history for this message
James Blackwell (jblack) wrote :
Download full text (3.1 KiB)

Also check to see if bzr.dev is recent enough. I just got a report from
somebody that upgraded bzrtools that bzr.dev no longer worked.

On Wed, Feb 01, 2006 at 11:35:45AM -0000, Stuart Bishop wrote:
> Public bug report changed:
> https://launchpad.net/malone/bugs/30214
>
> Comment:
> bzr 0.8pre invoked on python 2.4.2.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'push']
> working dir: u'/home/stub/lp/configs/configs'
> looking for plugins in /usr/lib/python2.4/site-packages/bzrlib/plugins
> Plugin name __init__ already loaded
> Plugin name __init__ already loaded
> Plugin name __init__ already loaded
> add plugin name bzrk
> load plugin (None, '/usr/lib/python2.4/site-packages/bzrlib/plugins/bzrk', ('', '', 5))
> registered plugin command visualise
> loaded succesfully
> looking for plugins in /home/stub/.bazaar/plugins
> add plugin name bzrtools
> add plugin name vimdiff
> load plugin (None, '/home/stub/.bazaar/plugins/bzrtools', ('', '', 5))
> registered plugin command push
> registered plugin command shelve
> registered plugin command unshelve
> registered plugin command clean-tree
> registered plugin command graph-ancestry
> registered plugin command fetch-ghosts
> registered plugin command patch
> registered plugin command baz-import-branch
> registered plugin command baz-import
> loaded succesfully
> load plugin (None, '/home/stub/.bazaar/plugins/vimdiff', ('', '', 5))
> registered plugin command gvimdiff
> registered plugin command vimdiff
> loaded succesfully
> lock read: <bzrlib.lockable_files.LockableFiles object at 0xb76f220c> (None)
> trying to create missing branch lock u'/home/stub/lp/configs/configs/.bzr/branch-lock'
> not a branch in: u'/home/stub/lp/configs/configs/' Not a branch: /home/stub/lp/configs/configs/
> lock read: <bzrlib.lockable_files.LockableFiles object at 0xb76f5c0c> (None)
> unlock: <bzrlib.lockable_files.LockableFiles object at 0xb76f5c0c> (1)
> got branch format u'Bazaar-NG branch, format 6\n'
> [25279] Wed 18:32:10.917 ERROR: exceptions.AttributeError: 'BzrBranch' object has no attribute 'controlfilename'
> at /home/stub/.bazaar/plugins/bzrtools/bzrtools.py line 103
> in get_push_data
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 572, in run_bzr_catch_errors
> return run_bzr(argv)
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 534, in run_bzr
> ret = cmd_obj.run_argv(argv)
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 233, in run_argv
> return self.run(**all_cmd_args)
> File "/home/stub/.bazaar/plugins/bzrtools/push.py", line 40, in run
> bzrtools.push(cur_branch, location, overwrite=overwrite)
> File "/home/stub/.bazaar/plugins/bzrtools/bzrtools.py", line 254, in push
> push_location = get_push_data(cur_branch)
> File "/home/stub/.bazaar/plugins/bzrtools/bzrtools.py", line 103, in get_push_data
> filename = br.controlfilename("x-push-data")
> AttributeError: 'BzrBranch' object has no attribute 'controlfilename'
>
> return code 3

--
My home page: <a href="http://jblack.linuxguru.net">James Blackwell</a>
Gnupg 06357400 F-print AAE4 8C76 58DA 5902 761D 247A ...

Read more...

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.