Broken installation on Mac Darwin-10.8.0

Asked by Carsten Ungermann on 2011-12-01

This error occoured when I try to set an eclipse project under version control by bazaar. I use the current Eclipse plugin to do this. May be that it is a Mac specific bug, because I use a precompiled bazaar package. I'm very thankfull if you have a work around!
------
Executing: init bazaar

    Error while executing init
    filter stack for eol already installed
No module named testtools
cannot import name Header
cannot import name Utils
"Key 'Bazaar-NG meta directory, format 1\\n' already registered"
No module named testtools
bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'NoSuchFile'

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, 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/builtins.py", line 1830, in run
    a_bzrdir = bzrdir.BzrDir.open_from_transport(to_transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 858, in open_from_transport
    redirected)
  File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 129, in __call__
    return obj(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/transport/__init__.py", line 1690, in do_catching_redirections
    return action(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 845, in find_format
    transport, _server_formats=_server_formats)
  File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 749, in find_format
    return prober.probe_transport(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 1345, in probe_transport
    except errors.NoSuchFile:
AttributeError: 'NoneType' object has no attribute 'NoSuchFile'

bzr 2.4.1 on python 2.6.1 (Darwin-10.8.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'init', 'bazaar']
plugins: _annotator_py[unknown], _annotator_pyx[unknown],
    _bencode_pyx[unknown], _btree_serializer_py[unknown],
    _btree_serializer_pyx[unknown], _chk_map_py[unknown],
    _chk_map_pyx[unknown], _chunks_to_lines_py[unknown],
    _chunks_to_lines_pyx[unknown], _dirstate_helpers_py[unknown],
    _dirstate_helpers_pyx[unknown], _groupcompress_py[unknown],
    _groupcompress_pyx[unknown], _knit_load_data_py[unknown],
    _knit_load_data_pyx[unknown], _known_graph_py[unknown],
    _known_graph_pyx[unknown], _patiencediff_c[unknown],
    _patiencediff_py[unknown], _readdir_py[unknown], _readdir_pyx[unknown],
    _rio_py[unknown], _rio_pyx[unknown], _simple_set_pyx[unknown],
    _static_tuple_c[unknown], _static_tuple_py[unknown], add[unknown],
    annotate[unknown], api[unknown], atomicfile[unknown],
    bash_completion[2.4.1], bencode[unknown], bisect_multi[unknown],
    branch[unknown], branchbuilder[unknown], breakin[unknown],
    btree_index[unknown], bugtracker[unknown], builtins[unknown],
    bundle[unknown], bzrtools[2.4.0], cache_utf8[unknown], cethread[unknown],
    changelog_merge[2.4.1], check[unknown], chk_map[unknown],
    chk_serializer[unknown], chunk_writer[unknown], clean_tree[unknown],
    cleanup[unknown], cmd_test_script[unknown], cmd_version_info[unknown],
    cmdline[unknown], colo[0.3.0], commands[unknown], commit[unknown],
    commit_signature_commands[unknown], config[unknown], conflicts[unknown],
    controldir[unknown], counted_lock[unknown], crash[unknown],
    debug[unknown], decorators[unknown], delta[unknown], diff[unknown],
    directory_service[unknown], dirstate[unknown], doc[unknown],
    doc_generate[unknown], email[unknown], errors[unknown], explorer[1.2.1],
    export[unknown], export_pot[unknown], externalcommand[unknown],
    extmerge[unknown], fastimport[0.11.0dev], fetch[unknown],
    fifo_cache[unknown], foreign[unknown], generate_ids[unknown],
    globbing[unknown], gpg[unknown], graph[unknown], groupcompress[unknown],
    hashcache[unknown], help[unknown], help_topics[unknown], hooks[unknown],
    i18n[unknown], identitymap[unknown], ignores[unknown], index[unknown],
    info[unknown], inspect_for_copy[unknown], inter[unknown], intset[unknown],
    inventory[unknown], inventory_delta[unknown], iterablefile[unknown],
    keychain[0.1.0], knit[unknown], launchpad[2.4.1], lazy_import[unknown],
    lazy_regex[unknown], library_state[unknown], lock[unknown],
    lockable_files[unknown], lockdir[unknown], log[unknown], loom[2.2.1dev],
    lru_cache[unknown], lsprof[unknown], mail_client[unknown],
    memorytree[unknown], merge[unknown], merge3[unknown],
    merge_directive[unknown], mergetools[unknown], missing[unknown],
    msgeditor[unknown], multiparent[unknown], mutabletree[unknown],
    netrc_credential_store[2.4.1], news_merge[2.4.1], option[unknown],
    osutils[unknown], pack[unknown], patch[unknown], patches[unknown],
    patiencediff[unknown], pipeline[1.1.0], plugin[unknown], plugins[unknown],
    progress[unknown], push[unknown], pyutils[unknown], qbzr[0.22.0dev],
    reconcile[unknown], reconfigure[unknown], recordcounter[unknown],
    registry[unknown], remote[unknown], rename_map[unknown], repofmt[unknown],
    repository[unknown], revision[unknown], revisionspec[unknown],
    revisiontree[unknown], rewrite[0.6.2], rio[unknown], rules[unknown],
    send[unknown], serializer[unknown], shelf[unknown], shelf_ui[unknown],
    shellcomplete[unknown], smart[unknown], static_tuple[unknown],
    status[unknown], store[unknown], svn[1.1.0], switch[unknown],
    symbol_versioning[unknown], tag[unknown], testament[unknown],
    textfile[unknown], textinv[unknown], textmerge[unknown],
    timestamp[unknown], trace[unknown], transactions[unknown],
    transform[unknown], transport[unknown], tree[unknown],
    treebuilder[unknown], tsort[unknown], tuned_gzip[unknown], ui[unknown],
    uncommit[unknown], upgrade[unknown], upload[1.0.1dev], urlutils[unknown],
    utextwrap[unknown], util[unknown], version[unknown],
    version_info_formats[unknown], versionedfile[unknown],
    vf_repository[unknown], views[unknown], weave[unknown], weave_fmt[2.4.1],
    weavefile[unknown], win32utils[unknown], workingtree[unknown],
    workingtree_3[unknown], workingtree_4[unknown], xml5[unknown],
    xml6[unknown], xml7[unknown], xml8[unknown], xml_serializer[unknown],
    xmloutput[0.8.7]
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'

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

    filter stack for eol already installed
No module named testtools
cannot import name Header
cannot import name Utils
"Key 'Bazaar-NG meta directory, format 1\\n' already registered"
No module named testtools
bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'NoSuchFile'

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, 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/builtins.py", line 1830, in run
    a_bzrdir = bzrdir.BzrDir.open_from_transport(to_transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 858, in open_from_transport
    redirected)
  File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 129, in __call__
    return obj(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/transport/__init__.py", line 1690, in do_catching_redirections
    return action(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 845, in find_format
    transport, _server_formats=_server_formats)
  File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 749, in find_format
    return prober.probe_transport(transport)
  File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 1345, in probe_transport
    except errors.NoSuchFile:
AttributeError: 'NoneType' object has no attribute 'NoSuchFile'

bzr 2.4.1 on python 2.6.1 (Darwin-10.8.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'init', 'bazaar']
plugins: _annotator_py[unknown], _annotator_pyx[unknown],
    _bencode_pyx[unknown], _btree_serializer_py[unknown],
    _btree_serializer_pyx[unknown], _chk_map_py[unknown],
    _chk_map_pyx[unknown], _chunks_to_lines_py[unknown],
    _chunks_to_lines_pyx[unknown], _dirstate_helpers_py[unknown],
    _dirstate_helpers_pyx[unknown], _groupcompress_py[unknown],
    _groupcompress_pyx[unknown], _knit_load_data_py[unknown],
    _knit_load_data_pyx[unknown], _known_graph_py[unknown],
    _known_graph_pyx[unknown], _patiencediff_c[unknown],
    _patiencediff_py[unknown], _readdir_py[unknown], _readdir_pyx[unknown],
    _rio_py[unknown], _rio_pyx[unknown], _simple_set_pyx[unknown],
    _static_tuple_c[unknown], _static_tuple_py[unknown], add[unknown],
    annotate[unknown], api[unknown], atomicfile[unknown],
    bash_completion[2.4.1], bencode[unknown], bisect_multi[unknown],
    branch[unknown], branchbuilder[unknown], breakin[unknown],
    btree_index[unknown], bugtracker[unknown], builtins[unknown],
    bundle[unknown], bzrtools[2.4.0], cache_utf8[unknown], cethread[unknown],
    changelog_merge[2.4.1], check[unknown], chk_map[unknown],
    chk_serializer[unknown], chunk_writer[unknown], clean_tree[unknown],
    cleanup[unknown], cmd_test_script[unknown], cmd_version_info[unknown],
    cmdline[unknown], colo[0.3.0], commands[unknown], commit[unknown],
    commit_signature_commands[unknown], config[unknown], conflicts[unknown],
    controldir[unknown], counted_lock[unknown], crash[unknown],
    debug[unknown], decorators[unknown], delta[unknown], diff[unknown],
    directory_service[unknown], dirstate[unknown], doc[unknown],
    doc_generate[unknown], email[unknown], errors[unknown], explorer[1.2.1],
    export[unknown], export_pot[unknown], externalcommand[unknown],
    extmerge[unknown], fastimport[0.11.0dev], fetch[unknown],
    fifo_cache[unknown], foreign[unknown], generate_ids[unknown],
    globbing[unknown], gpg[unknown], graph[unknown], groupcompress[unknown],
    hashcache[unknown], help[unknown], help_topics[unknown], hooks[unknown],
    i18n[unknown], identitymap[unknown], ignores[unknown], index[unknown],
    info[unknown], inspect_for_copy[unknown], inter[unknown], intset[unknown],
    inventory[unknown], inventory_delta[unknown], iterablefile[unknown],
    keychain[0.1.0], knit[unknown], launchpad[2.4.1], lazy_import[unknown],
    lazy_regex[unknown], library_state[unknown], lock[unknown],
    lockable_files[unknown], lockdir[unknown], log[unknown], loom[2.2.1dev],
    lru_cache[unknown], lsprof[unknown], mail_client[unknown],
    memorytree[unknown], merge[unknown], merge3[unknown],
    merge_directive[unknown], mergetools[unknown], missing[unknown],
    msgeditor[unknown], multiparent[unknown], mutabletree[unknown],
    netrc_credential_store[2.4.1], news_merge[2.4.1], option[unknown],
    osutils[unknown], pack[unknown], patch[unknown], patches[unknown],
    patiencediff[unknown], pipeline[1.1.0], plugin[unknown], plugins[unknown],
    progress[unknown], push[unknown], pyutils[unknown], qbzr[0.22.0dev],
    reconcile[unknown], reconfigure[unknown], recordcounter[unknown],
    registry[unknown], remote[unknown], rename_map[unknown], repofmt[unknown],
    repository[unknown], revision[unknown], revisionspec[unknown],
    revisiontree[unknown], rewrite[0.6.2], rio[unknown], rules[unknown],
    send[unknown], serializer[unknown], shelf[unknown], shelf_ui[unknown],
    shellcomplete[unknown], smart[unknown], static_tuple[unknown],
    status[unknown], store[unknown], svn[1.1.0], switch[unknown],
    symbol_versioning[unknown], tag[unknown], testament[unknown],
    textfile[unknown], textinv[unknown], textmerge[unknown],
    timestamp[unknown], trace[unknown], transactions[unknown],
    transform[unknown], transport[unknown], tree[unknown],
    treebuilder[unknown], tsort[unknown], tuned_gzip[unknown], ui[unknown],
    uncommit[unknown], upgrade[unknown], upload[1.0.1dev], urlutils[unknown],
    utextwrap[unknown], util[unknown], version[unknown],
    version_info_formats[unknown], versionedfile[unknown],
    vf_repository[unknown], views[unknown], weave[unknown], weave_fmt[2.4.1],
    weavefile[unknown], win32utils[unknown], workingtree[unknown],
    workingtree_3[unknown], workingtree_4[unknown], xml5[unknown],
    xml6[unknown], xml7[unknown], xml8[unknown], xml_serializer[unknown],
    xmloutput[0.8.7]
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'

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

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
2011-12-01
Last reply:
2011-12-01

This question was originally filed as bug #898566.

Martin Packman (gz) said : #1

It looks like your installation of Bazaar is completely broken. What method did you use to add the package? The Mac installers we provide? Running setup.py from the tarball? Some third party distribution?

It also seems your Mac is running a pre-release version of Darwin, which may have a bearing on this.

Either way, purging the current bzr from your system and starting again seems the best course of action.

Vincent Ladeuil (vila) said : #2

Looks like bze try (and fail copiously) to load the whole content of bzrlib as plugins.

Do you have some weird BZR_PLUGIN_PATH settings ?

Can you help with this problem?

Provide an answer of your own, or ask Carsten Ungermann for more information if necessary.

To post a message you must log in.