bzr unusable after install on Mac OSX 10.8

Bug #1061330 reported by Adam Glauser
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Confirmed
High
Unassigned

Bug Description

After installing either 2.5.0 or 2.5.1 from the .dmg files, running bzr results the error below. I was able to fix the problem by installing Subversion directly and symlinking from /usr/lib to the install directory /opt/subversion/lib.

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 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1131, 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 695, 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 1148, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1824, 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 1346, 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 26, in <module>
    import subvertpy
  File "/Library/Python/2.6/site-packages/subvertpy/__init__.py", line 130, 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.5.0 on python 2.6.7 (Darwin-12.2.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'info',
    '/Users/adam/Development/Code/release/']
plugins: bash_completion[2.5.0], bzrtools[2.5.0], changelog_merge[2.5.0],
    colo[0.4.0], email[unknown], explorer[1.2.2], fastimport[0.14.0dev],
    git[0.6.7], keychain[0.1.0], launchpad[2.5.0], loom[2.2.1dev],
    netrc_credential_store[2.5.0], news_merge[2.5.0], pipeline[1.4.0],
    po_merge[2.5.0], qbzr[0.22.1], rewrite[0.6.4dev], svn[1.2.1],
    upload[1.0.1dev], weave_fmt[2.5.0], xmloutput[0.8.8]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'

Revision history for this message
Annette v. Stockhausen (stockhausen) wrote :

The problem is caused by Mac OS X 10.8 (Mountain Lion), because it no longer comes pre-installed with the Python/Subversion bindings.

Revision history for this message
Bo Laurent (shikibu) wrote :

Download the latest Xcode for Mountain Lion from the Mac Apple Store.

Once installed go to Xcode > Preferences > Downloads > Command Line Tools > Install.

Voila, bzr now works (tested on 10.8.2).

Vincent Ladeuil (vila)
affects: bzr → bzr-mac-installers
Changed in bzr-mac-installers:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Bryan (i-bryan) wrote :

The work-around suggestion was greatly appreciated, but it doesn't seem to work in 10.9 (Maveriks) and Xcode 5. There is no "Command Line Tools" in the Downloads section. Does anyone happen to know where thy got moved to?

Revision history for this message
Bryan (i-bryan) wrote :

I found an article that describes how to do it, but it doesn't seem to solve the original missing library:

http://railsapps.github.io/xcode-command-line-tools.html

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.