qbzr don't work under MacOS Lion

Bug #865390 reported by vincenso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Mac Installers
New
Undecided
Unassigned
QBzr
Invalid
Undecided
Unassigned

Bug Description

Environment: Mac OS X Lion Version 10.7.1

Steps to reproduce: run "bzr qlog" or any other q* command

iVinneMac:trunk_ loki$ bzr qlog

Actual Result:

bzr: ERROR: exceptions.ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtGui.so, 2): Library not loaded: QtGui.framework/Versions/4/QtGui
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtGui.so
  Reason: image not found

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/qbzr/lib/commands.py", line 135, in run
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/qbzr/lib/commands.py", line 122, in run
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/qbzr/lib/commands.py", line 162, in run
    self._application = QtGui.QApplication(sys.argv)
  File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 110, in __getattribute__
    obj = _replace()
  File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 90, in _replace
    obj = factory(self, scope, name)
  File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 200, in _import
    module = __import__(module_python_path, scope, scope, [member])
ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtGui.so, 2): Library not loaded: QtGui.framework/Versions/4/QtGui
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtGui.so
  Reason: image not found

bzr 2.4.0 on python 2.6.6 (Darwin-11.1.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'qlog']
plugins: bash_completion[2.4.0], bzrtools[2.4.0], changelog_merge[2.4.0],
    colo[0.3.0], email[unknown], explorer[1.2.1], extmerge[unknown],
    fastimport[0.11.0dev], keychain[0.1.0], launchpad[2.4.0], loom[2.2.1dev],
    netrc_credential_store[2.4.0], news_merge[2.4.0], pipeline[1.1.0],
    qbzr[0.22.0dev], rewrite[0.6.2], svn[1.1.0], upload[1.0.1dev],
    weave_fmt[2.4.0], xmloutput[0.8.7]
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'uk_UA.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.

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

Was this working before?

How did you install Bazaar?

Revision history for this message
Jonathan Riddell (jr) wrote :

Do you have PyQt installed?

Revision history for this message
vincenso (xr-satan) wrote :

I used them most recent version from this page: http://wiki.bazaar.canonical.com/MacOSXDownloads

At first I installed it under MacOS X Snow Leopard. It works perfectly. After migration to MacOS X Lion bzr died.
I've reinstalled it and set 2.6 as default:
defaults write com.apple.versioner.python Version 2.6

CLI works perfectly. but any q* command causes crash.

PyQt installed, there is listing of PyQt dir:

iVinneMac:test loki$ cd /Library/Python/2.6/site-packages/PyQt4/
iVinneMac:PyQt4 loki$ ls
Qt.so QtCore.so QtGui.so __init__.py pyqtconfig.py uic

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

The error seems to be that it can't find the Qt framework which is required by PyQt. Could you check /Library/Frameworks to see if QtGui and QtCore are installed and what version they are?

Revision history for this message
vincenso (xr-satan) wrote :

iVinneMac:/ loki$ cd /Library/Frameworks/
iVinneMac:Frameworks loki$ ls
AECore.framework DivX Toolkit.framework MediaServerAPI.framework XSKey.framework
AEProfiling.framework EWSMac.framework NyxAudioAnalysis.framework iLifeFaceRecognition.framework
AERegistration.framework FxPlug.framework PluginManager.framework iLifeKit.framework
Adlm.framework HPDeviceModel.framework ProMetadataSupport.framework iLifePageLayout.framework
Adobe AIR.framework HPPml.framework Qmaster.framework iLifeSQLAccess.framework
AudioMixEngine.framework HPServicesInterface.framework QtCore.framework iLifeSlideshow.framework
Compressor.framework HPSmartPrint.framework QtGui.framework
DSPPublishing.framework MacFUSE.framework TSLicense.framework
iVinneMac:Frameworks loki$ cd QtCore.framework/
iVinneMac:QtCore.framework loki$ ls
Contents Headers QtCore QtCore.prl Versions
iVinneMac:QtCore.framework loki$ cd Versions/
iVinneMac:Versions loki$ ls
4 4.0 Current

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 865390] Re: qbzr don't work under MacOS Lion

vincenso пишет:
> iVinneMac:/ loki$ cd /Library/Frameworks/
> iVinneMac:Frameworks loki$ ls
> AECore.framework DivX Toolkit.framework MediaServerAPI.framework XSKey.framework
> AEProfiling.framework EWSMac.framework NyxAudioAnalysis.framework iLifeFaceRecognition.framework
> AERegistration.framework FxPlug.framework PluginManager.framework iLifeKit.framework
> Adlm.framework HPDeviceModel.framework ProMetadataSupport.framework iLifePageLayout.framework
> Adobe AIR.framework HPPml.framework Qmaster.framework iLifeSQLAccess.framework
> AudioMixEngine.framework HPServicesInterface.framework QtCore.framework iLifeSlideshow.framework
> Compressor.framework HPSmartPrint.framework QtGui.framework
> DSPPublishing.framework MacFUSE.framework TSLicense.framework
> iVinneMac:Frameworks loki$ cd QtCore.framework/
> iVinneMac:QtCore.framework loki$ ls
> Contents Headers QtCore QtCore.prl Versions
> iVinneMac:QtCore.framework loki$ cd Versions/
> iVinneMac:Versions loki$ ls
> 4 4.0 Current

Qt 4.0? It won't work with QBzr. You need at least Qt 4.6, IIRC

Revision history for this message
vincenso (xr-satan) wrote :

I've downloaded latest build http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x

and now qbzr works.

thanx.

I think you should update documentation on this page: http://wiki.bazaar.canonical.com/MacOSXDownloads

"to use QBzr in OS X Lion (10.7), you should update Qt http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x" or somehing..

of course it would be better to create valid installer.

Revision history for this message
Alexander Belchenko (bialix) wrote :

vincenso пишет:
> I've downloaded latest build http://qt.nokia.com/downloads/qt-for-open-
> source-cpp-development-on-mac-os-x
>
> and now qbzr works.
>
> thanx.
>
> I think you should update documentation on this page:
> http://wiki.bazaar.canonical.com/MacOSXDownloads
>
> "to use QBzr in OS X Lion (10.7), you should update Qt
> http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-
> os-x" or somehing..

You can update it yourself, it's a wiki. You can login to edit it with
your launchpad login.

>
> of course it would be better to create valid installer.
>

--
All the dude wanted was his rug back

Changed in bzr:
status: New → Invalid
Changed in qbzr:
status: New → Invalid
Revision history for this message
Gordon Tyler (doxxx) wrote :

The OS X installer for bzr already includes Qt. I'll verify that the Qt version check is working correctly.

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.