bazzar python error on os x 10.11.6

Bug #1660536 reported by Roman Sill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Mac Installers
New
Undecided
Unassigned

Bug Description

After installing bazaar via 2.6.0-2.mpkg, I could not initiate bzr because of an import error. after changing the first line in /user/bin/bzr from pyton to pyton2.6, I received this subsequent error:

MacBook:/ roman$ bzr explorer
bzr: ERROR: Couldn't import bzrlib and dependencies.
Please check the directory containing bzrlib is on your PYTHONPATH.

Traceback (most recent call last):
  File "/usr/local/bin/bzr", line 74, in <module>
    import bzrlib
ImportError: No module named bzrlib
RMacBook:/ roman$ cd ~/
RMacBook:~ roman$ nano .profile
RMacBook:~ roman$ cd /usr/local/bin/bzr
-bash: cd: /usr/local/bin/bzr: Not a directory
RMacBook:~ roman$ nano /usr/local/bin/bzr
RMacBook:~ roman$ sudo nano /usr/local/bin/bzr
Password:
RMacBook:~ roman$ 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.6.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: 'en_US.UTF-8'

Vincent Ladeuil (vila)
affects: bzr → bzr-mac-installers
Revision history for this message
Roman Sill (bipolar009) wrote : Re: [Bug 1660536] Re: bazzar python error on os x 10.11.6
Download full text (3.8 KiB)

Thank you very much.

On Tue, Jan 31, 2017 at 2:06 AM, Vincent Ladeuil <<email address hidden>
> wrote:

> ** Project changed: bzr => bzr-mac-installers
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1660536
>
> Title:
> bazzar python error on os x 10.11.6
>
> Status in Bazaar Mac Installers:
> New
>
> Bug description:
> After installing bazaar via 2.6.0-2.mpkg, I could not initiate bzr
> because of an import error. after changing the first line in
> /user/bin/bzr from pyton to pyton2.6, I received this subsequent
> error:
>
> MacBook:/ roman$ bzr explorer
> bzr: ERROR: Couldn't import bzrlib and dependencies.
> Please check the directory containing bzrlib is on your PYTHONPATH.
>
> Traceback (most recent call last):
> File "/usr/local/bin/bzr", line 74, in <module>
> import bzrlib
> ImportError: No module named bzrlib
> RMacBook:/ roman$ cd ~/
> RMacBook:~ roman$ nano .profile
> RMacBook:~ roman$ cd /usr/local/bin/bzr
> -bash: cd: /usr/local/bin/bzr: Not a directory
> RMacBook:~ roman$ nano /usr/local/bin/bzr
> RMacBook:~ roman$ sudo nano /usr/local/bin/bzr
> Password:
> RMacBook:~ roman$ 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
>
> ...

Read more...

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.