cannot init-repo on OSX Lion with bzr_2.5b6

Bug #942335 reported by RonBraithwaite
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
Incomplete
Undecided
Unassigned

Bug Description

Trying to create a local repo under OSX Lion, but the 2.5b6 is giving me problems. Here's the junk:

Athena:WIN ron$ bzr init-repo browser
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/libpq.5.dylib
  Referenced from: /usr/lib/libsvn_client-1.0.dylib
  Reason: no suitable image found. Did find:
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture

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/builtins.py", line 2191, in run
    show_bzrdir_info(newdir, verbose=0, outfile=self.outf)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 377, in show_bzrdir_info
    outfile)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 393, in show_component_info
    format = describe_format(control, repository, branch, working)
  File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 497, 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/libpq.5.dylib
  Referenced from: /usr/lib/libsvn_client-1.0.dylib
  Reason: no suitable image found. Did find:
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture

bzr 2.5b6 on python 2.6.7 (Darwin-11.3.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'init-repo', 'browser']
plugins: bash_completion[2.5b6], bzrtools[2.5.0], changelog_merge[2.5b6],
    colo[0.4.0], email[unknown], explorer[1.2.1], fastimport[0.12.0dev],
    git[0.6.7], keychain[0.1.0], launchpad[2.5b6], loom[2.2.1dev],
    netrc_credential_store[2.5b6], news_merge[2.5b6], pipeline[1.4.0],
    po_merge[2.5b6], qbzr[0.22.0], rewrite[0.6.3dev], svn[1.1.2],
    upload[1.0.1dev], weave_fmt[2.5b6], 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.
Athena:WIN ron$ bzr init-repo browser

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

This seems like an issue with your local installation of the svn libraries:

  Referenced from: /usr/lib/libsvn_client-1.0.dylib
  Reason: no suitable image found. Did find:
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
 /usr/lib/libpq.5.dylib: mach-o, but wrong architecture

How did you install bzr?

Revision history for this message
RonBraithwaite (1wp-rma-f1r) wrote : Re: [Bug 942335] Re: cannot init-repo on OSX Lion with bzr_2.5b6
Download full text (5.0 KiB)

I installed using the Mac installer in Bazaar-2.5b6-OSX-10.6-1.dmg.

Sent from my iPhone4!
I'm such a geek!
Ron Braithwaite +1-503-267-3250

On Feb 27, 2012, at 4:25 PM, Jelmer Vernooij <email address hidden> wrote:

> This seems like an issue with your local installation of the svn
> libraries:
>
> Referenced from: /usr/lib/libsvn_client-1.0.dylib
> Reason: no suitable image found. Did find:
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
>
> How did you install bzr?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/942335
>
> Title:
> cannot init-repo on OSX Lion with bzr_2.5b6
>
> Status in Bazaar Version Control System:
> New
>
> Bug description:
> Trying to create a local repo under OSX Lion, but the 2.5b6 is giving
> me problems. Here's the junk:
>
>
> Athena:WIN ron$ bzr init-repo browser
> 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/libpq.5.dylib
> Referenced from: /usr/lib/libsvn_client-1.0.dylib
> Reason: no suitable image found. Did find:
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
>
> 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/builtins.py", line 2191, in run
> show_bzrdir_info(newdir, verbose=0, outfile=self.outf)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 377, in show_bzrdir_info
> outfile)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 393, in show_component_info
> format = describe_format(control, repository, branch, working)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 497, 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_obje...

Read more...

Jelmer Vernooij (jelmer)
affects: bzr → bzr-mac-installers
Revision history for this message
Gordon Tyler (doxxx) wrote :

The Mac installer for bzr doesn't install the SVN libraries. Do you know if the SVN libraries have been changed in some way? Maybe you installed a newer version of SVN?

Revision history for this message
RonBraithwaite (1wp-rma-f1r) wrote :
Download full text (4.9 KiB)

On Feb 27, 2012, at 9:06 PM, Gordon Tyler wrote:

> The Mac installer for bzr doesn't install the SVN libraries. Do you know
> if the SVN libraries have been changed in some way? Maybe you installed
> a newer version of SVN?

Hmm. I don't remember installing SVN specifically, but I may have, since I also have various client front ends for VCS systems, primarily Tower (git) and SourceTree (git/HG).

What version of subversion do I need?

-Ron

>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/942335
>
> Title:
> cannot init-repo on OSX Lion with bzr_2.5b6
>
> Status in Mac Installers for Bazaar:
> New
>
> Bug description:
> Trying to create a local repo under OSX Lion, but the 2.5b6 is giving
> me problems. Here's the junk:
>
>
> Athena:WIN ron$ bzr init-repo browser
> 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/libpq.5.dylib
> Referenced from: /usr/lib/libsvn_client-1.0.dylib
> Reason: no suitable image found. Did find:
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
>
> 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/builtins.py", line 2191, in run
> show_bzrdir_info(newdir, verbose=0, outfile=self.outf)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 377, in show_bzrdir_info
> outfile)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 393, in show_component_info
> format = describe_format(control, repository, branch, working)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 497, 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 5...

Read more...

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

It's been compiled on Mac OS X 10.6 against SVN 1.6.17. Interestingly, on the system where I build the installer, /usr/lib/libpq* doesn't exist. libsvn is a universal binary with Intel 32-bit, 64-bit and PPC code.

Could you try running this from a terminal and pasting the output here: otool -L /usr/lib/libsvn_client-1.0.dylib

Revision history for this message
RonBraithwaite (1wp-rma-f1r) wrote : Re: [Bug 942335] cannot init-repo on OSX Lion with bzr_2.5b6
Download full text (5.0 KiB)

On Feb 28, 2012, at 5:05 AM, Gordon Tyler wrote:

> It's been compiled on Mac OS X 10.6 against SVN 1.6.17. Interestingly,
> on the system where I build the installer, /usr/lib/libpq* doesn't
> exist. libsvn is a universal binary with Intel 32-bit, 64-bit and PPC
> code.
>
> Could you try running this from a terminal and pasting the output here:
> otool -L /usr/lib/libsvn_client-1.0.dylib

I don't have otool - where can I get a copy? I've downloaded and installed the latest version of Qt, but it's not in there.

-Ron

> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/942335
>
> Title:
> cannot init-repo on OSX Lion with bzr_2.5b6
>
> Status in Mac Installers for Bazaar:
> New
>
> Bug description:
> Trying to create a local repo under OSX Lion, but the 2.5b6 is giving
> me problems. Here's the junk:
>
>
> Athena:WIN ron$ bzr init-repo browser
> 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/libpq.5.dylib
> Referenced from: /usr/lib/libsvn_client-1.0.dylib
> Reason: no suitable image found. Did find:
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
>
> 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/builtins.py", line 2191, in run
> show_bzrdir_info(newdir, verbose=0, outfile=self.outf)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 377, in show_bzrdir_info
> outfile)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 393, in show_component_info
> format = describe_format(control, repository, branch, working)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 497, 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_n...

Read more...

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

otool is a standard OS X utility. Just open the Terminal app, copy & paste that command in the Terminal window, press Enter and copy the output into this bug report.

Revision history for this message
RonBraithwaite (1wp-rma-f1r) wrote :
Download full text (4.9 KiB)

Hmm. I've got the latest version of Xcode loaded, but when I enter which otool in the command line, nothing shows up. Would you mind telling me what you get with "which otool"? Maybe that will give me a clue of what might be wrong with my environment.

-Ron

On Feb 29, 2012, at 5:06 AM, Gordon Tyler wrote:

> otool is a standard OS X utility. Just open the Terminal app, copy &
> paste that command in the Terminal window, press Enter and copy the
> output into this bug report.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/942335
>
> Title:
> cannot init-repo on OSX Lion with bzr_2.5b6
>
> Status in Mac Installers for Bazaar:
> New
>
> Bug description:
> Trying to create a local repo under OSX Lion, but the 2.5b6 is giving
> me problems. Here's the junk:
>
>
> Athena:WIN ron$ bzr init-repo browser
> 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/libpq.5.dylib
> Referenced from: /usr/lib/libsvn_client-1.0.dylib
> Reason: no suitable image found. Did find:
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
> /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
>
> 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/builtins.py", line 2191, in run
> show_bzrdir_info(newdir, verbose=0, outfile=self.outf)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 377, in show_bzrdir_info
> outfile)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 393, in show_component_info
> format = describe_format(control, repository, branch, working)
> File "/Library/Python/2.6/site-packages/bzrlib/info.py", line 497, 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-p...

Read more...

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

Sorry for the delay. I get `/usr/bin/otool` when I run `which otool`.

Gordon Tyler (doxxx)
Changed in bzr-mac-installers:
status: New → Incomplete
Revision history for this message
Oldag (oldag) wrote :

Had a similar issue, missing the svn support libraries. I got the newest Xcode, and it didn't solve the problem (was missing otool as well).

turns out, the command line utils for xcode 4.5 in mountain lion are a separate download (available from apple dev portal). once i installed those, i got otool, svn, etc...

and, bzr worked just fine!

tl;dr -- install the "xcode command line tools for mountain lion" from the apple developer portal.

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.