bzr dies with ImportError on "info" command of newly cloned lp:bzr-fastimport repo

Bug #1255896 reported by James A Baker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Confirmed
Medium
Unassigned

Bug Description

Fluffy:fastimport james$ bzr info
bzr: ERROR: exceptions.ImportError: Unable to load subvertpy extensions: dlopen(/Library/Python/2.6/site-packages/subvertpy/client.so, 2): Library not loaded: /usr/lib/libsvn_client-1.0.dylib
  Referenced from: /Library/Python/2.6/site-packages/subvertpy/client.so
  Reason: image not found

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1853, in run
    verbose=noise_level, outfile=self.outf)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 378, in show_bzrdir_info
    outfile)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 394, in show_component_info
    format = describe_format(control, repository, branch, working)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 499, in describe_format
    format = controldir.format_registry.make_bzrdir(key)
  File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 1348, in make_bzrdir
    return self.get(key)()
  File "/Library/Python/2.6/site-packages/bzrlib/registry.py", line 177, in get
    return self._dict[self._get_key_or_default(key)].get_obj()
  File "/Library/Python/2.6/site-packages/bzrlib/registry.py", line 74, in get_obj
    self._obj = get_named_object(self._module_name, self._member_name)
  File "/Library/Python/2.6/site-packages/bzrlib/pyutils.py", line 51, in get_named_object
    obj = __import__(module_name, {}, {}, from_list)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/workingtree.py", line 28, in <module>
    import subvertpy
  File "/Library/Python/2.6/site-packages/subvertpy/__init__.py", line 131, in <module>
    raise ImportError("Unable to load subvertpy extensions: %s" % e)
ImportError: Unable to load subvertpy extensions: dlopen(/Library/Python/2.6/site-packages/subvertpy/client.so, 2): Library not loaded: /usr/lib/libsvn_client-1.0.dylib
  Referenced from: /Library/Python/2.6/site-packages/subvertpy/client.so
  Reason: image not found

bzr 2.6.0 on python 2.6.8 (Darwin-13.0.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'info']
plugins: bash_completion[2.6.0], bzrtools[2.5.0], changelog_merge[2.6.0],
    colo[0.4.0], email[unknown], explorer[1.3.0], fastimport[0.14.0dev],
    git[0.6.11], grep[2.6.0], keychain[0.1.0], launchpad[2.6.0], loom[2.2.0],
    netrc_credential_store[2.6.0], news_merge[2.6.0], pipeline[1.4.0],
    po_merge[2.6.0], push_and_update[0.2.0dev], qbzr[0.23.1], rewrite[0.6.3],
    svn[1.2.2], upload[1.0.1dev], weave_fmt[2.6.0], xmloutput[0.8.8]
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.
Fluffy:fastimport james$

Revision history for this message
James A Baker (jamescat) wrote :

Sorry. Forgot to specify that this was on Mac OS X Mavericks (10.9) with bzr 2.6, running with python2.6 as the default Python (configured by Apple's "defaults" tool) instead of python2.7 which is usually the default in this OS.

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

As I recall, there's a problem with the Subversion libraries in Mavericks such that the binaries installed by the bzr installer can't load them. I haven't had the time to figure out why or how to fix it.

affects: bzr → bzr-mac-installers
Changed in bzr-mac-installers:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Andrew Johnson (anj) wrote :

This bug appears to be a duplicate of #1244668, the comments of which contain a work-around.

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.