AttributeError trying to run QBzr or Bazaar Explorer

Bug #538347 reported by Brent on 2010-03-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer

Bug Description

After installing SIP, QT4, and PyQT4, then QBzr and Bazaar Explorer according to installation instructions, I can't get past this error. Similar error when I try to run QBzr commands.

bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'QStyledItemDelegate'

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 121, in run_simple
    return _do_with_cleanups(
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/root/.bazaar/plugins/explorer/lib/", line 153, in run
    window = explorer.QExplorerMainWindow(location_list=location_list,
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 106, in __getattribute__
    obj = _replace()
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 89, in _replace
    obj = factory(self, scope, name)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 192, in _import
    module = __import__(module_python_path, scope, scope, [member])
  File "/root/.bazaar/plugins/explorer/lib/", line 31, in ?
    from bzrlib.plugins.explorer.lib import (
  File "/root/.bazaar/plugins/explorer/lib/", line 30, in ?
    from bzrlib.plugins.qbzr.lib import treewidget
  File "/root/.bazaar/plugins/qbzr/lib/", line 31, in ?
    from bzrlib.plugins.qbzr.lib.annotate import AnnotateWindow
  File "/root/.bazaar/plugins/qbzr/lib/", line 40, in ?
    from bzrlib.plugins.qbzr.lib.revisionmessagebrowser import LogListRevisionMessageBrowser
  File "/root/.bazaar/plugins/qbzr/lib/", line 43, in ?
    from bzrlib.plugins.qbzr.lib import logmodel
  File "/root/.bazaar/plugins/qbzr/lib/", line 26, in ?
    from bzrlib.plugins.qbzr.lib.revtreeview import RevIdRole as im_RevIdRole
  File "/root/.bazaar/plugins/qbzr/lib/", line 178, in ?
    class RevNoItemDelegate(QtGui.QStyledItemDelegate):
AttributeError: 'module' object has no attribute 'QStyledItemDelegate'

bzr 2.1.0 on python 2.4.3 (Linux-2.6.18-164.el5PAE-i686-with-redhat-5.4-Final)
arguments: ['/usr/bin/bzr', 'explorer']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
  explorer /root/.bazaar/plugins/explorer [1.1.0dev]
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [2.1.0]
  netrc_credential_store /usr/lib/python2.4/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0]
  news_merge /usr/lib/python2.4/site-packages/bzrlib/plugins/news_merge [2.1.0]
  qbzr /root/.bazaar/plugins/qbzr [0.19.0dev]

*** 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
    including this traceback and a description of the problem.

Which versions of those packages did you install?

Brent (bmiller) wrote :

sip-4.10, qt4-4.2.1-1.i386, PyQt-x11-gpl-4.7, QBzr 0.19.0dev, Bazaar Explorer 1.1.0dev. I also tried QBzr 0.18.0 and Bazaar Explorer 1.0.1 with the same result.

Gordon Tyler (doxxx) wrote :

Please try installing a more recent version of qt, at least 4.4.x.

Brent (bmiller) wrote :

That did it. Thanks a lot.

Gordon Tyler (doxxx) wrote :

Qbzr guys, do you think it should test for a minimum supported version of Qt and print a nicer error?

Changed in bzr:
status: New → Invalid
affects: bzr → qbzr
Changed in qbzr:
status: Invalid → New
Alexander Belchenko (bialix) wrote :

Yes, Gordon, I think it makes sense to test actual Qt/PyQt version and print nicer error as we did for the case when PyQt is not installed at all.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → Low
Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in qbzr:
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers