Comment 6 for bug 1520736

Revision history for this message
Kristof (kristof-1) wrote :

Dear Bazar wizards,

I'm new to Bazar and new to OS X but came across the same problem with no solution so far.
OS X 10.11.5 and I installed Python 2.7 and Bazar 2.6. In the install I installed pyqt as well as qt.I had to modify the first line in the /usr/local/bin/bzr file. Changed the first line to #!/usr/bin/python2.6 as recommended on line. I found that odd as # denotes a comment line no? Anyhow it worked. Having installed Python 2.7 I tried using 2.7 instead of 2.6 at the end the line but it worked only with 2.6 which is a version that seemed to be installed at the same time as 2.7.

$ bzr seem to start bazar as I get:

$ bzr
Bazaar 2.6.0 -- a free distributed version-control tool
http://bazaar.canonical.com/

Basic commands:
  bzr init makes this directory a versioned branch
  bzr branch make a copy of another branch

  bzr add make files or directories versioned
  bzr ignore ignore a file or pattern
  bzr mv move or rename a versioned file

  bzr status summarize changes in working copy
  bzr diff show detailed diffs

  bzr merge pull in changes from another branch
  bzr commit save some or all changes
  bzr send send changes via email

  bzr log show history of changes
  bzr check validate storage

  bzr help init more help on e.g. init command
  bzr help commands list all commands
  bzr help topics list all help topics

But $ bzr explorer #gives the error below.
I'm not sure I something wrong but at the end of the message below it states,
*** 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.
I found a lot of what might be outdated information such as info on QTY http://www.oak-tree.us/blog/index.php/2009/05/12/pyqt-mac but wondered if in the last 7 years things have not changed. Thanks for your help.

# Error msg after using "bzr explorer":
bzr: ERROR: exceptions.ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtCore.so, 2): Library not loaded: QtCore.framework/Versions/4/QtCore
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtCore.so
  Reason: unsafe use of relative rpath QtCore.framework/Versions/4/QtCore in /Library/Python/2.6/site-packages/PyQt4/QtCore.so with restricted binary

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/plugins/explorer/lib/commands.py", line 144, in run
    from bzrlib.plugins.qbzr.lib import uifactory
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/qbzr/lib/uifactory.py", line 21, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtCore.so, 2): Library not loaded: QtCore.framework/Versions/4/QtCore
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtCore.so
  Reason: unsafe use of relative rpath QtCore.framework/Versions/4/QtCore in /Library/Python/2.6/site-packages/PyQt4/QtCore.so with restricted binary

bzr 2.6.0 on python 2.6.9 (Darwin-15.5.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'explorer']
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], qbzr[0.23.1], rewrite[0.6.3], svn[1.2.2], upload[1.1.0],
    weave_fmt[2.6.0], xmloutput[0.8.8]
encoding: 'utf-8', fsenc: 'utf-8', lang: None

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