trouble installing bzr 2.5.0 on os x 10.8.2

Asked by Dan Freitas on 2013-02-06

Hi folks. I don't recall the exact errors I got when installing, but typing "bzr init-repo ./rep" in terminal yields

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

and trace-back.

I am a complete novice and any help would be appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Freitas
Solved:
2013-02-08
Last query:
2013-02-08
Last reply:
2013-02-07
John A Meinel (jameinel) said : #1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-02-06 7:21, Dan Freitas wrote:
> New question #221169 on Bazaar:
> https://answers.launchpad.net/bzr/+question/221169
>
> Hi folks. I don't recall the exact errors I got when installing,
> but typing "bzr init-repo ./rep" in terminal yields
>
> 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
>
> and trace-back.
>
> I am a complete novice and any help would be appreciated!
>
It looks like the bzr-svn plugin is loading subvertpy, which is then
trying to load libsvn_client-1.0 and failing.

I assume you are running bzr on Mac OS, where I don't have a good
feeling for how things are set up. I would have expected the package
installer to provide whatever you need for running.

In the short term, if you aren't using SVN, you can probably just
disable the plugin. The easiest way is with an environment variable:

BZR_DISABLE_PLUGIN=svn bzr init repo ./repo

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlER4T8ACgkQJdeBCYSNAAN41gCfdgPuPnFZn1GljgwycgKMnlbj
e7wAoNkbrmd/qZvMsd1Jp75AOFdPBOw2
=n+ik
-----END PGP SIGNATURE-----

Dan Freitas (dan-a) said : #2

John, thank you. This seems to work. If anyone can point me to information on getting the subversion plugin working on OS X 10.8.2, I'd appreciate it, although I am not using subversion at the moment.

--Dan

Dan Freitas (dan-a) said : #3

I may have spoken too soon. When I run bzr explorer and try to open an existing project, I get a pop-up window with the same error:

bzr: ERROR: Unable to import library "subvertpy": bzr-svn: 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

--Dan

John A Meinel (jameinel) said : #4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-02-06 16:20, Dan Freitas wrote:
> Question #221169 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/221169
>
> Dan Freitas gave more information on the question: I may have
> spoken too soon. When I run bzr explorer and try to open an
> existing project, I get a pop-up window with the same error:
>
> bzr: ERROR: Unable to import library "subvertpy": bzr-svn: 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
>
> --Dan
>

You can probably uninstall bzr-svn by finding a directory named
"bzrlib/plugins/svn" and just removing it.

The alternative is to figure out how to get
"/usr/lib/libsvn_client-1.0.dylib" installed. But that is outside of
what I know how to do.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlETbVwACgkQJdeBCYSNAAOplwCeJTJAkPvQ2CKev1Edpxa8ZNY7
rGkAoLfYywnGMPHDamxavmmpE8zeVqh0
=om1O
-----END PGP SIGNATURE-----

Dan Freitas (dan-a) said : #5

I found a similar report (https://bugs.launchpad.net/bzr-mac-installers/+bug/942335). See the post Oldag (oldag) wrote on 2012-10-19. I installed the Xcode command line tools and bzr seems to be working fine now with subversion plugin enabled!

Thanks for your assistance John.