Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310171 - Some dev-vcs/qbzr commands don't work after upgrading to PyQt4-4.7.2
Summary: Some dev-vcs/qbzr commands don't work after upgrading to PyQt4-4.7.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL: https://bugs.launchpad.net/qbzr/+bug/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 07:53 UTC by Metin Akat
Modified: 2010-04-05 13:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Metin Akat 2010-03-19 07:53:54 UTC
bzr qlog fails and pops up a window with this error:

bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'style'

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/bzrlib/plugins/qbzr/lib/revtreeview.py", line 188, in paint
    style = widget.style()
AttributeError: 'NoneType' object has no attribute 'style'

bzr 2.1.0 on python 2.6.4 (linux2)
arguments: ['/usr/bin/bzr', 'qlog']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools             /usr/lib/python2.6/site-packages/bzrlib/plugins/bzrtools [2.1.0]
  explorer             /usr/lib/python2.6/site-packages/bzrlib/plugins/explorer [1.0.1]
  gtk                  /usr/lib/python2.6/site-packages/bzrlib/plugins/gtk [0.98.0.final.1]
  launchpad            /usr/lib/python2.6/site-packages/bzrlib/plugins/launchpad [2.1.0]
  netrc_credential_store /usr/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0]
  news_merge           /usr/lib/python2.6/site-packages/bzrlib/plugins/news_merge [2.1.0]
  qbzr                 /usr/lib/python2.6/site-packages/bzrlib/plugins/qbzr [0.18.3]

Reproducible: Always

Steps to Reproduce:
1. Run "bzr qlog" inside a bazaar branch
2. 
3.

Actual Results:  
You get the above window


metin-sfco loxs # emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.31-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r10-i686-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1
Timestamp of tree: Thu, 18 Mar 2010 10:45:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33                                                                            
ACCEPT_KEYWORDS="x86 ~x86"                                                                             
ACCEPT_LICENSE="*"                                                                                     
CBUILD="i686-pc-linux-gnu"                                                                             
CFLAGS="-O2 -march=i686 -pipe"                                                                         
CHOST="i686-pc-linux-gnu"                                                                              
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                             
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"     
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.ludost.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en bg"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/turbogears2"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo fam firefox flac fontforge fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 java jpeg jpeg2k kde libnotify lm_sensors mad mikmod mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png postgres ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sqlite ssl startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en bg" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

metin-sfco loxs #
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2010-03-22 10:22:25 UTC
Try QBzr 0.18.4 please.
Comment 2 Metin Akat 2010-03-23 07:09:00 UTC
Same with 0.8.4
Probably it's not caused by PyQt4 but by qt-webkit-4.6.2
When I downgraded to qt-*-4.6.1, I no more have this problem.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2010-03-23 10:22:04 UTC
This is really strange as qbzr should not use qt-webkit.  This is some funny failure with PyQt4, qt and qbzr.  I reported it upstream.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2010-04-01 06:27:14 UTC
(In reply to comment #2)
> Same with 0.8.4
> Probably it's not caused by PyQt4 but by qt-webkit-4.6.2
> When I downgraded to qt-*-4.6.1, I no more have this problem.

 What about PyQt4 4.7.2?  Can you please test?
Comment 5 Metin Akat 2010-04-01 06:42:17 UTC
Same with 4.7.2 :(
Comment 6 Martin von Gagern 2010-04-02 17:53:23 UTC
qbzr-0.18.5 which has just been released does fix this issue.
The bump is almost straightforward: I had to change the SRC_URL like this:

-SRC_URI="http://launchpad.net/qbzr/${PV%%.4}/${PV}/+download/${PN}-${PV}.tar.gz"
+SRC_URI="https://edge.launchpad.net/qbzr/${PV%.*}/${PV}/+download/${PN}-${PV}.tar.gz"

I assume that both the use of https instead of http and the use of edge.launchpad.net instead of simply launchpad.net should be of little consequence, so I'm only documenting them here for the sake of accuracy.
The change of ${PV%%.4} to ${PV%.*} on the other hand is vital and should ensure that future bumps can avoid such modifications.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-04-05 13:13:40 UTC
Thank you Martin. qbzr-0.18.5 was just added to the tree.