AttributeError: paths when trying to svn-import

Bug #621446 reported by Christopher M. Fuhrman
62
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Fix Released
Undecided
Gordon Tyler

Bug Description

Recently updated to Bazaar 2.2.0 via provided meta-package on a MacBook running Snow Leopard.

Attempting to use svn-import to import a remote SVN repository:

[ cmf-macbook-03:13 PM ]-tmp $ bzr svn-import --all https://example.com/my-project my-project-bzr
Using repository layout: trunk0
bzr: ERROR: exceptions.AttributeError: paths

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/commands.py", line 187, in run
    incremental=not restore, to_revnum=to_revnum, prefix=prefix)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/convert.py", line 352, in convert_repository
    RepositoryConverter(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/convert.py", line 240, in __init__
    revfinder, mapping, heads)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/convert.py", line 275, in _fetch_to_shared_repo
    needs_manual_check, pb=pb, heads=heads)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1025, in find_iter_revisions
    lhs_parent_revmeta = revmeta.get_lhs_parent_revmeta(m)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/revmeta.py", line 386, in get_lhs_parent_revmeta
    while nm is not None and nm.is_hidden(mapping):
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/revmeta.py", line 534, in is_hidden
    if not self.changes_branch_root():
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/revmeta.py", line 230, in changes_branch_root
    return self.branch_path in self.paths
AttributeError: paths

bzr 2.2.0 on python 2.6.1 (Darwin-10.4.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'svn-import', '--all', 'https://example.com/my-project', 'my-project-bzr']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /Library/Python/2.6/site-packages/bzrlib/plugins/bash_completion [2.2.0]
  bzrtools /Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [2.2.0]
  colo /Library/Python/2.6/site-packages/bzrlib/plugins/colo [0.1.0]
  email /Library/Python/2.6/site-packages/bzrlib/plugins/email [unknown]
  explorer /Library/Python/2.6/site-packages/bzrlib/plugins/explorer [1.1.0dev2]
  extmerge /Library/Python/2.6/site-packages/bzrlib/plugins/extmerge [unknown]
  fastimport /Library/Python/2.6/site-packages/bzrlib/plugins/fastimport [0.9.0dev]
  keychain /Library/Python/2.6/site-packages/bzrlib/plugins/keychain [0.1.0]
  launchpad /Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [2.2.0]
  loom /Library/Python/2.6/site-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.2.0]
  news_merge /Library/Python/2.6/site-packages/bzrlib/plugins/news_merge [2.2.0]
  pipeline /Library/Python/2.6/site-packages/bzrlib/plugins/pipeline [unknown]
  qbzr /Library/Python/2.6/site-packages/bzrlib/plugins/qbzr [0.20.0dev1]
  rewrite /Library/Python/2.6/site-packages/bzrlib/plugins/rewrite [0.6.0]
  svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.4dev]
  upload /Library/Python/2.6/site-packages/bzrlib/plugins/upload [1.0.0dev]
  xmloutput /Library/Python/2.6/site-packages/bzrlib/plugins/xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

As outlined in Bug 617506 (https://bugs.launchpad.net/bzr-svn/+bug/617506), which relates to a similar error, I believe this may possibly be due to an outdated bzr-svn library, so this bug has two parts:

1) Determine if this is the same issue as 617506 and, if so

2) Update Snow Leopard Meta Package as provided on http://wiki.bazaar.canonical.com/MacOSXDownloads to include a more recent bzr-svn library.

Tags: bzr-svn
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I'm not sure how this can occur at all, unless a non-release version of bzr-svn was packaged in the mac installer?

affects: bzr → bzr-mac-installers
Revision history for this message
Glyph Lefkowitz (glyph) wrote :
Download full text (11.4 KiB)

I stuck bzr-svn 1.0.3 into my ~/.bazaar/plugins, and now it works, although I now get this warning output:

$ bzr get http://svn.macosforge.org/repository/calendarserver/CalendarServer/trunk
inconsistent details in skipped record: ('3380@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fdelete_common.py', 'washort@blackswan-20090716003640-zb3ugx0ozh7ikwo0') ('1482273 2859 0 10870', ((('3380@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fdelete_common.py', 'svn-v4:e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer/trunk:4393'),),)) ('1699107 2859 0 10870', ((('3380@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fdelete_common.py', 'washort@blackswan-20090709234859-zxvlist9u64c9woj'),),))
inconsistent details in skipped record: ('2151@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fget.py', 'washort@blackswan-20090716003640-zb3ugx0ozh7ikwo0') ('1486915 1203 0 2730', ((('2151@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fget.py', 'svn-v4:e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer/trunk:3494'),),)) ('1703749 1203 0 2730', ((('2151@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fget.py', 'washort@blackswan-20090709234859-zxvlist9u64c9woj'),),))
inconsistent details in skipped record: ('2@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Freport_calquery.py', 'washort@blackswan-20090716003640-zb3ugx0ozh7ikwo0') ('1500590 3222 0 11104', ((('2@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Freport_calquery.py', 'svn-v4:e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer/trunk:4362'),),)) ('1717373 3222 0 11104', ((('2@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Freport_calquery.py', 'washort@blackswan-20090709234859-zxvlist9u64c9woj'),),))
inconsistent details in skipped record: ('2303@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fpropfind.py', 'washort@blackswan-20090716003640-zb3ugx0ozh7ikwo0') ('1505319 2662 0 7717', ((('2303@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fpropfind.py', 'svn-v4:e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer/trunk:4362'),),)) ('1722102 2662 0 7717', ((('2303@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fmethod%2Fpropfind.py', 'washort@blackswan-20090709234859-zxvlist9u64c9woj'),),))
inconsistent details in skipped record: ('2880@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fscheduling%2Fimplicit.py', 'washort@blackswan-20090716003640-zb3ugx0ozh7ikwo0') ('1523376 8119 0 38617', ((('2880@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fscheduling%2Fimplicit.py', 'svn-v4:e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer/trunk:4426'),),)) ('1739634 8119 0 38617', ((('2880@e27351fd-9f3e-4f54-a53b-843176b1656c:CalendarServer%2Ftrunk%2Ftwistedcaldav%2Fscheduling%2Fimplicit.py', 'washort@bla...

Revision history for this message
Gordon Tyler (doxxx) wrote :

Final 2.2.0 installer uses bzr-svn 1.0.3.

Changed in bzr-mac-installers:
status: New → Fix Released
Revision history for this message
Christopher M. Fuhrman (cfuhrman) wrote :

Has the .dmg on http://wiki.bazaar.canonical.com/MacOSXDownloads been updated? I just downloaded it again and am still encountering the same error.

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

On a machine where I installed the final 2.2.0 installer:

glyph@miranda:~$ bzr plugins | grep -C 1 svn

svn 1.0.4dev
   Support for Subversion branches

Changed in bzr-mac-installers:
status: Fix Released → New
Revision history for this message
Martin Pool (mbp) wrote :

For bzr 2.2.1, we should make sure that bzr-svn 1.0.4final gets into the mac installers.

Revision history for this message
filler (nick-silkey) wrote :

I opened a dupe bug (653049) and got linked to this one. I indeed found that fetching latest bzr-svn (1.0.4) got me patched up. I had 1.0.4dev from my 2.2.0 install @ OSX, which was bricked. But not anymore!

Thanks. Cheers.

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

Just in case it's not entirely clear to those affected how to work around this bug; install bzr as normal from the mac installer, then:

cd ~
mkdir -p .bazaar/plugins
bzr get lp:bzr-svn -r tag:bzr-svn-1.0.4 svn

... and then things should work as expected.

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

Oops. I forgot a 'cd .bazaar/plugins' after 'mkdir'.

Revision history for this message
Andre LaBranche (dre-mac) wrote :

Cool, thanks Glyph, that's helpful. +1 for getting the DMG updated :)

Revision history for this message
Vincent Ladeuil (vila) wrote :

Meh, did you try 2.2.1 or even 2.3b3 from https://edge.launchpad.net/bzr/+download instead ?

But whatever you chose to try now and later, don't forget that plugins in ~/.bazaar overrides the ones included in the '.dmg', so what is a fix today may become a bug when you upgrade...

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

Vincent: what do you mean by "meh"? This is a serious bug.

IIRC, this is still a bug in the 2.2.1 installer, at <http://edge.launchpad.net/bzr/2.2/2.2.1/+download/Bazaar-2.2.1-OSX-10.6-1.dmg>. That's the one I used. It is just a bug in the installer. I wish someone would upload a new installer for 2.2, because this is pretty trivial to fix; the bug was fixed in bzr-svn before 1.0.4 was released.

Good point about keeping an eye on ~/.bazaar/plugins after an upgrade, though.

Revision history for this message
Gordon Tyler (doxxx) wrote :

I haven't updated the OS X installers to use bzr-svn 1.0.4. I wasn't getting notifications for comments on any bzr-mac-installers bugs so I didn't realize this was a problem.

I'll try get new installers build for bzr 2.2.2 soon.

Gordon Tyler (doxxx)
Changed in bzr-mac-installers:
status: New → In Progress
assignee: nobody → Gordon Tyler (doxxx)
Revision history for this message
Vincent Ladeuil (vila) wrote :

@Glyph, like Gordon, I wasn't getting notifications so I never got your answer :(

bzr-svn has now released 1.0.5 and that's the version we should provide at it's target at all bzr stable releases (2.0, 2.1, 2.2, 2.3).

Revision history for this message
Vincent Ladeuil (vila) wrote :

bzr-svn *hasn't* released 1.0.5 yet (geez, I will get this right...). New OSX installers are now available for 2.2.2 including bzr-svn-1.04 for 10.5 and 10.6.

Changed in bzr-mac-installers:
status: In Progress → 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.