"bzr pull" crashes with bzr-git 0.6.3

Bug #885566 reported by Eli Zaretskii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

I have just installed bzr-git 0.6.3, and it now crashes in every branch created by bzr-git. It also crashes for an initial "branch" command. For example:

D:\usr\eli\bzr>bzr branch git://git.savannah.gnu.org/gawk.git gawk2
bzr: ERROR: exceptions.AttributeError: can't set attribute

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1263, in run
  File "bzrlib\bzrdir.pyo", line 919, in open_tree_or_branch
  File "bzrlib\controldir.pyo", line 410, in _get_tree_branch
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 261, in open_branch
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 257, in open_repository
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 380, in __init__
  File "C:/Program Files/Bazaar/plugins\git\repository.py", line 126, in __init__
  File "bzrlib\repository.pyo", line 376, in __init__
AttributeError: can't set attribute

Here's the traceback:

Thu 2011-11-03 08:12:05 +0200
0.234 bazaar version: 2.4.2
0.234 bzr arguments: [u'branch', u'git://git.savannah.gnu.org/gawk.git', u'gawk2']
0.344 looking for plugins in C:/Documents and Settings/p0009057/Application Data/bazaar/2.0/plugins
0.344 looking for plugins in C:/Program Files/Bazaar/plugins
0.641 encoding stdout as sys.stdout encoding 'cp1255'
1.235 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
1.250 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1263, in run
  File "bzrlib\bzrdir.pyo", line 919, in open_tree_or_branch
  File "bzrlib\controldir.pyo", line 410, in _get_tree_branch
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 261, in open_branch
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 257, in open_repository
  File "C:/Program Files/Bazaar/plugins\git\remote.py", line 380, in __init__
  File "C:/Program Files/Bazaar/plugins\git\repository.py", line 126, in __init__
  File "bzrlib\repository.pyo", line 376, in __init__
AttributeError: can't set attribute

1.250 couldn't find apport bug-reporting library: No module named apport
1.375 return code 4

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 0.6.4
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Fix Committed → Fix Released
Revision history for this message
Eli Zaretskii (eliz) wrote :

Is bzr-git 0.6.4 supposed to fix this? If so, it doesn't: I still get a crash with any "bzr pull" or "bzr branch" command. Here's one backtrace:

Fri 2011-11-04 13:02:32 +0200
0.125 bazaar version: 2.4.2
0.125 bzr arguments: [u'branch', u'git://git.savannah.gnu.org/gawk.git', u'gawk2']
0.187 looking for plugins in C:/Documents and Settings/Zaretzky/Application Data/bazaar/2.0/plugins
0.187 looking for plugins in D:/usr/Bazaar/plugins
0.343 encoding stdout as sys.stdout encoding 'cp1252'
0.437 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.437 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1263, in run
  File "bzrlib\bzrdir.pyo", line 919, in open_tree_or_branch
  File "bzrlib\controldir.pyo", line 410, in _get_tree_branch
  File "D:/usr/Bazaar/plugins\git\remote.py", line 262, in open_branch
  File "D:/usr/Bazaar/plugins\git\remote.py", line 258, in open_repository
  File "D:/usr/Bazaar/plugins\git\remote.py", line 388, in __init__
  File "D:/usr/Bazaar/plugins\git\repository.py", line 126, in __init__
  File "bzrlib\repository.pyo", line 376, in __init__
AttributeError: can't set attribute

0.453 couldn't find apport bug-reporting library: No module named apport
0.468 return code 4

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Actually, the fix for 2.4 compatibility didn't make it into 0.6.4. Trunk should work though. Sorry about that.

Revision history for this message
Eli Zaretskii (eliz) wrote :

Is the fix in bzr core, then? The bug resolution doesn't seem to indicate that.

Anyway, having it work only with trunk means it will only be available in bzr 2.6, as 2.5 is already in beta, is that right?

If so, it's too bad, as bzr-git 0.6.4 includes several important improvements, like support for tracking several branches after git-import, and waiting for them for months would be a pity. Even if it will be in 2.5.0, it could be a couple of months away.

Is there any reasonable way to have this working with 2.4.x?

In any case, if bzr-git is going to crash with bzr 2.4.x for basic commands, this should be reflected on the download page, and a button to download an earlier version should be available there, I think.

Thanks.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 885566] Re: "bzr pull" crashes with bzr-git 0.6.3

On 11/04/2011 12:50 PM, Eli Zaretskii wrote:
> Is the fix in bzr core, then? The bug resolution doesn't seem to
> indicate that.
bzr-git trunk, as of this morning.

Cheers,

Jelmer

Changed in bzr-git:
milestone: 0.6.4 → 0.6.5
status: Fix Released → Fix Committed
Revision history for this message
Eli Zaretskii (eliz) wrote :

Or maybe it's my misunderstanding, and you meant bzr-git's trunk?

I thought it was in bzr-git 0.6.4 because the bug resolution said milestone: 0.6.4 and "Fix released".

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Yes, indeed.

The confusion was on my part, I thought I'd already landed the fix for this before I rolled 0.6.4 but apparently not. You should be good to go with bzr 2.4.x and bzr-git trunk.

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Fix Committed → 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.