ERROR: exceptions.AttributeError: 'KnitPackRepository' object has no attribute 'revision_parents'

Bug #328343 reported by linas
4
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
bzr-rebase (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij
Nominated for Intrepid by Jelmer Vernooij

Bug Description

Was attempting a 'bzr rebase', against a repo in launchpad.
This has always worked till today. The differences are:

-- today, I'm running Ubuntu 8.10 instead of Ubuntu 8.04
-- there's a conflict between a file in the main repo, and one of my files.

I'm pretty sure I'd done rebase in the past with file conflicts, and it
worked. I'm assuming the new bzr in ubuntu 8.10 is not compatible
with the older rebase ??

Details:

 bzr rebase
Rebasing on bzr+ssh://<email address hidden>/%7Eopencog-dev/opencog/staging/
bzr: ERROR: exceptions.AttributeError: 'KnitPackRepository' object has no attribute 'revision_parents'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/rebase/__init__.py", line 180, in run
    wt.branch.repository.revision_parents,
AttributeError: 'KnitPackRepository' object has no attribute 'revision_parents'

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'rebase']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
*** 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 debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to https://bugs.launchpad.net/bzr/+filebug

0.189 encoding stdout as sys.stdout encoding 'UTF-8'
0.191 bzr arguments: [u'rebase']
0.192 looking for plugins in /home/linas/.bazaar/plugins
0.192 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.192 Plugin name __init__ already loaded
0.192 Plugin name __init__ already loaded
0.891 encoding stdout as sys.stdout encoding 'UTF-8'
1.237 opening working tree '/home/linas/src/novamente/src/opencog-stage5/staging'
[ 4736] 2009-02-11 19:40:02.361 INFO: Rebasing on bzr+ssh://<email address hidden>/%7Eopencog-dev/opencog/staging/
1.538 ssh implementation is OpenSSH
5.234 Deprecated method called
Called from:
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/rebase/__init__.py", line 132, in run
    if rebase_plan_exists(wt):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/rebase/rebase.py", line 43, in rebase_plan_exists
    return wt._control_files.get(REBASE_PLAN_FILENAME).read() != ''
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/symbol_versioning.py", line 179, in decorated_method
    trace.mutter_callsite(4, "Deprecated method called")
5.760 Using fetch logic to copy between KnitPackRepository('bzr+ssh://<email address hidden>/%7Eopencog-dev/opencog/staging/.bzr/repository/')(<RepositoryFormatKnitPack4>) and KnitPackRepository('file:///home/linas/src/novamente/src/opencog-stage5/staging/.bzr/repository/')(<RepositoryFormatKnitPack4>)
6.033 Using fetch logic to copy between KnitPackRepository('bzr+ssh://<email address hidden>/%7Eopencog-dev/opencog/staging/.bzr/repository/')(<RepositoryFormatKnitPack4>) and KnitPackRepository('file:///home/linas/src/novamente/src/opencog-stage5/staging/.bzr/repository/')(<RepositoryFormatKnitPack4>)
8.706 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/rebase/__init__.py", line 180, in run
    wt.branch.repository.revision_parents,
AttributeError: 'KnitPackRepository' object has no attribute 'revision_parents'

8.709 return code 4

Revision history for this message
linas (linasvepstas) wrote :

Never mind. Upgrrading to rebase version 0.4.2 makes this bug go away. However, Ubuntu 8.10 is currently shipping with the old version of rebase, and so this bug will bite ubunutu users ... anywone know how to report a distro bug ??

Changed in bzr:
status: New → Invalid
Revision history for this message
Sean Stoops (brutimus) wrote :

I can confirm that I experienced this exact same behavior. Same software versions it seems (Ubuntu 8.10, python 2.5.2, and BZR 1.6.) After manually upgrading bzr-rebase to 0.4.2, all was back to normal.

Revision history for this message
Sean Stoops (brutimus) wrote :

Regarding this bug in the Ubuntu package. bzr-rebase 0.4.2 is slated for Jaunty (9.04), but I would think this warrants a bugfix in Intrepid (8.10). I just don't know what it takes to get package updates tested and pushed out to a particular distro version.

Jelmer Vernooij (jelmer)
Changed in bzr-rebase:
assignee: nobody → jelmer
status: New → Fix Released
Revision history for this message
linas (linasvepstas) wrote :

If the fix has been released, then it hasn't yet bubbled over to the package servers, which are still serving up version 0.3, not version 0.4. So, for example:

 cat /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu intrepid main restricted
deb http://us.archive.ubuntu.com/ubuntu intrepid-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu intrepid universe multiverse
deb http://us.archive.ubuntu.com/ubuntu intrepid-updates universe multiverse
deb http://security.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

apt-get update
apt-cache showpkg bzr-rebase
Package: bzr-rebase
Versions:
0.3-1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages)
 Description Language:
                 File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages
                  MD5: 44eaf3b577754860b7c65f60c392a3f8

Reverse Depends:
  bzr-svn,bzr-rebase 0.3~
Dependencies:
0.3-1 - bzr (2 0.92~) python (2 2.4) python-central (2 0.5.8)
Provides:
0.3-1 -

Changed in bzr-rebase:
status: Fix Released → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 328343] Re: ERROR: exceptions.AttributeError: 'KnitPackRepository' object has no attribute 'revision_parents'

The fix is in Jaunty, which has bzr-rebase 0.4.2.

  status fixreleased
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Changed in bzr:
status: Invalid → Fix Released
Revision history for this message
linas (linasvepstas) wrote :

Bug was reported for Intrepid, not for Jaunty -- a fix is needed for Intrepid. The current status is that the "bzr-rebase" package is broken/inconsistent in Intrepid. Need a 0.42 package for Intrepid, since the current bzr-rebase is not compatible with bzr in Intrepid. Jaunty has nothing to do with it :-)

Changed in bzr:
status: Fix Released → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

this doesn't have anything to do with Bazaar, at least not *upstream* Bazaar.

Changed in bzr:
status: Confirmed → Invalid
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I've now nominated this for release in intrepid.

Changed in bzr-rebase:
status: Confirmed → Invalid
status: Invalid → Fix Released
Revision history for this message
linas (linasvepstas) wrote :

OK, thank you.

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.