QT Conflict starting Explorer from Matlab -- ERROR: exceptions.ImportError:

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

Bug Description

When I try to start bzr explorer from matlab, it fails to start and I get the error below. Matlab also contains a QT framework, and I assume there is a conflict between the two. Not sure if there is a workaround for bzr?

>> !bzr explorer
bzr: ERROR: exceptions.ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtGui.so, 2): Symbol not found: __ZN7QWidget17setAccessibleNameERK7QString
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtGui.so
  Expected in: /Applications/MATLAB_R2011b.app/bin/maci64/QtGui.framework/Versions/4/QtGui
 in /Library/Python/2.6/site-packages/PyQt4/QtGui.so

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 918, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1118, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 676, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 698, 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/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/QtGui.so, 2): Symbol not found: __ZN7QWidget17setAccessibleNameERK7QString
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtGui.so
  Expected in: /Applications/MATLAB_R2011b.app/bin/maci64/QtGui.framework/Versions/4/QtGui
 in /Library/Python/2.6/site-packages/PyQt4/QtGui.so

bzr 2.5b1 on python 2.6.6 (Darwin-11.1.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'explorer']
plugins: bash_completion[2.5b1], bzrtools[2.4.0], changelog_merge[2.5b1],
    colo[0.3.0], email[unknown], explorer[1.2.1], extmerge[unknown],
    fastimport[0.12.0dev], keychain[0.1.0], launchpad[2.5b1], loom[2.2.1dev],
    netrc_credential_store[2.5b1], news_merge[2.5b1], pipeline[1.1.0],
    qbzr[0.22.0dev], rewrite[0.6.3dev], svn[1.1.1dev], upload[1.0.1dev],
    weave_fmt[2.5b1], xmloutput[0.8.7]
encoding: 'ISO8859-1', fsenc: 'utf-8', lang: 'en_GB.ISO8859-1'

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

Tags: explorer qt
Revision history for this message
iandol (iandol) wrote :

Note this is on OS X 10.7.1 with Bzr 2.5b1 -- but this also affects previous release versions of bzr...

Revision history for this message
Martin Packman (gz) wrote :

This looks like a different variation on bug 698104 to do with mismatched Qt versions. What version of Qt is matlab using?

affects: bzr → bzr-mac-installers
Revision history for this message
iandol (iandol) wrote :

Looking at the info.plist I see a version string of 4.7 for QtGui...

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

I suspect Matlab is changing the dylib load path to include its own Qt framework, which is superseding the system-level framework installed when bzr runs in a sub-shell. As for why the frameworks are incompatible, I don't know. I build the installer using Qt 4.7.

If anybody can figure out what's wrong here, I'll gladly include the fix, but I don't have time to track this down.

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.