bzr: ERROR: exceptions.KeyError: 'kind'

Bug #686663 reported by Jean-Paul Calderone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subvertpy
Fix Released
Medium
Jelmer Vernooij

Bug Description

When running "/usr/local/bin/bzr checkout svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted" on OpenBSD-current, this failure happens:

bzr: ERROR: exceptions.KeyError: 'kind'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/builtins.py", line 1342, in run
    accelerator_tree, hardlink)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/branch.py", line 376, in create_checkout
    hardlink=hardlink)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/branch.py", line 321, in _create_heavyweight_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/branch.py", line 1068, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/branch.py", line 817, in pull
    stop_revision, overwrite, limit=limit)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/branch.py", line 740, in _update_revisions
    find_ghosts=False, pb=pb)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1249, in find_until
    find_ghosts=find_ghosts, pb=pb))
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1223, in find_mainline
    self.extra.extend(self.find_rhs_parents(revmetas))
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1230, in find_rhs_parents
    foreign_revid, rhs_mapping = self.source.lookup_bzr_revision_id(p, foreign_sibling=revmeta.get_foreign_revid())
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/repository.py", line 1021, in lookup_bzr_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/revids.py", line 270, in get_branch_revnum
    layout, fileprops_to_revnum, last_checked, project, pb):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/revids.py", line 112, in discover_fileprop_revids
    project):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/revids.py", line 101, in find_branch_tips
    check_removed=check_removed):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/repository.py", line 1272, in <genexpr>
    return iter(((branch, from_revnum, True) for (project, branch, nick, has_props) in it if has_props in (True, None)))
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/layout/__init__.py", line 238, in get_root_paths
    rpf.find_children, project):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/layout/__init__.py", line 175, in expand_branch_pattern
    get_children, project)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/layout/__init__.py", line 176, in expand_branch_pattern
    children = get_children(path)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/layout/__init__.py", line 215, in find_children
    return [(d, dirents[d]['has_props']) for d in dirents if dirents[d]['kind'] == subvertpy.NODE_DIR]
KeyError: 'kind'

bzr 2.2.2 on python 2.6.6 (OpenBSD-4.8-sparc64-SUNW,UltraSPARC-IIIi_-rev_2.4-_@_1062_MHz-64bit-ELF)
arguments: ['/usr/local/bin/bzr', 'checkout', 'svn://svn.twistedmatrix.com/svn/Twisted/trunk', 'Twisted']
encoding: '646', fsenc: '646', lang: None
plugins:
  bash_completion /usr/local/lib/python2.6/site-packages/bzrlib/plugins/bash_completion [2.2.2]
  launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [2.2.2]
  netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
  news_merge /usr/local/lib/python2.6/site-packages/bzrlib/plugins/news_merge [2.2.2]
  svn /usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn [1.0.4]

*** 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.

Tags: openbsd
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 686663] [NEW] bzr: ERROR: exceptions.KeyError: 'kind'

  affects bzr-svn
  status incomplete

(Already discussed on IRC, but noting again here for other people
looking at this bug)

bzr-svn is properly requesting the 'kind' of all dirents here, so this
appears to be a bug in either subvertpy or the Subversion libraries.

It would be interesting to know what versions of libsvn and
python-subvertpy are installed.

If you can run with BZR_PDB=1 set and "print dirents" in the pdb prompt
this shows that might also shine some light on what's going on here.

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Eric-faurot (eric-faurot) wrote :
Download full text (5.6 KiB)

This is with subversion-1.6.15 and subvertpy-0.7.5.
Here is the PDB output:

(Pdb) print dirents
{'reconnect-clock-3859': {}, 'manhole-logging-1439': {}, 'web2-tap-tests-3051': {},
'dependancy-list-967': {}, 'dav-take-two-3081-1': {},
'vfs-async-backends-2815': {}, 'configure-log-observer-638-2': {},
'dav-take-two-3081-4': {}, 'win32Scripts-2381': {}, 'vfs-au-sprint':
{}, 'http-11-2951': {}, 'xmlrpc-docs-1549': {}, 'web-concerns-2983-2':
{}, 'manyprocesses-3404': {}, 'web2-connectionlost-3083-2': {},
'make-some-rpms-1696': {}, 'ifilepath-2176-2': {},
'suppress-warnings-3639': {}, 'compressed-logfiles-727': {},
'deferred-render-3711': {}, 'expressive-http-client-886-3': {},
'abortConnection-78': {}, 'endpoints-1442-2': {}, 'child-args-3169':
{}, 'connect-error-2454-2': {}, 'foom': {}, 'null-thingies-3329': {},
'lore-readme-3409': {}, 'trial-tutorial-2443-2': {},
'deferredlist-docs-3595': {}, 'cftp-setUp-2740': {},
'skip-if-ssl-missing-3852': {}, 'isupport-3285-2': {},
'ftp-test-cleanup-1368-2': {}, 'signal-process-group-2726-3': {},
'make-zshcomp-dynamic-3078-2': {}, 'faster-domish-serialization-2477':
{}, 'connectSSH-1975': {}, 'msn-not-etc-702': {}, 'refactor_gi-3729':
{}, 'trial-stale-pyc-2036': {}, 'overview-graph-1712': {},
'event-waker-1250': {}, 'separate-format-method-3760': {},
'loopback-recursion-2564': {}, 'modal-3902': {}, 'osx-installer-3279':
{}, 'memcache-get-multiple-3171': {}, 'web2-scgi-typo-2167': {},
'zshcomp-remove-3078': {}, 'web2-access-2734': {}, 'java-1960': {},
'switchuid-current-3172': {}, 'initgroups-self-uid-3172-2': {},
'disttrial-1784-6': {}, 'conch-test-skips-3916': {},
'create-socket-2638': {}, 'dav-2518bis-1776': {}, '--omg-optimized-2':
{}, 'syntaxerror-failure-3255': {}, 'newstream-1937-3': {},
'im-docstring-2458': {}, 'urlpath-2093': {}, 'dsa-key-failure-3391-2':
{}, 'faster-string-receivers-2611': {},
'conch-client-disconnect-3466': {}, 'dav-acl-1608-4': {},
'twisted-web-docs-892': {}, 't.w.static.File-multiple-ranges-3574-2':
{}, 'ireporter-2164-6': {}, 'web2-DirectoryLister-1587': {},
'ssh-connection-lost-3007': {}, 'vfs-twistd-plugin-2821-2': {},
'iterative-deferreds-411': {}, 'win32-proc-missing-2838': {},
'selectreactor-1228': {}, 'dont-pause-a-pull-producer-3919': {},
'generic-sasl-2015-2': {}, 'follow-relative-redirects-3384': {},
'twistd-logging-638-2': {}, 'trial-temp-2589': {},
'filepath-open-flags-3123': {}, 'iocp-tcp-large-write-3233': {},
'cdefer-2245-4': {}, 'shebang-std-3768-2': {}, 'isupport-3285': {},
'web2-log-fileaccesslogfile-2843': {}, 'examples-reactor-run-3834':
{}, 'run-plugin-1490-2': {}, 'twistd-wait-823-2': {},
'twistd-web-2271': {}, 'proxy-via-header-1149': {},
'remove-async-howto-2719': {}, 'cancel-990-2': {}, 'jython-3413': {},
'moduleforfilename-2822-2': {}, 'svn-wc-version-3905': {},
'scheduling-doc-3175': {}, 'conch-perf-bug-experiment': {},
'mockos-3832': {}, 'coop-2712-5': {}, 'web2-processors-2963': {},
'26signal-3256': {}, 'trialout-2365': {}, 'lore-index-2526-2': {},
'udp-wouldblock-2790': {}, 'sip-messageparser-3583': {},
'twistd-syslog-3300': {}, 'deprecation-tool-3266-3': {},
'unsigned-id-delayed-call-3791': {}, 'remove-Defer-setTimeout-1702':
{}, 'slowecho-3861': {...

Read more...

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

What's the architecture of this machine?

tags: added: openbsd
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

"OpenBSD-4.8-sparc64-SUNW,UltraSPARC-IIIi_-rev_2.4-_@_1062_MHz-64bit-ELF"? Copied from the end of the traceback in the first comment.

Jelmer Vernooij (jelmer)
affects: bzr-svn → subvertpy
Changed in subvertpy:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Incomplete → In Progress
status: In Progress → Fix Committed
importance: Undecided → Medium
milestone: none → 0.8.0
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 686663] Re: bzr: ERROR: exceptions.KeyError: 'kind'

On Wed, 2011-03-02 at 17:00 +0000, Jean-Paul Calderone wrote:
> "OpenBSD-4.8-sparc64-SUNW,UltraSPARC-IIIi_-rev_2.4-_@_1062_MHz-64bit-
> ELF"? Copied from the end of the traceback in the first comment.
Whoops, I hadn't noticed that. Thanks.

I *think* this has been fixed now, but I unfortunately don't have a
sparc machine to test it on. If it's still not fixed, please reopen.

Cheers,

Jelmer

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