Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534298 - media-sound/picard-1.3.1: AttributeError: 'FileTreeView' object has no attribute 'setAccessibleName'
Summary: media-sound/picard-1.3.1: AttributeError: 'FileTreeView' object has no attrib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 534268
  Show dependency tree
 
Reported: 2015-01-02 09:05 UTC by poncho
Modified: 2019-08-06 14:05 UTC (History)
2 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 poncho 2015-01-02 09:05:49 UTC
picard 1.3.1 fails to start on my "mostly stable" system:


% picard
No value set for `/desktop/gnome/interface/icon_theme'
Traceback (most recent call last):
  File "/usr/bin/picard", line 2, in <module>
    from picard.tagger import main; main('/usr/share/locale', True)
  File "/usr/lib64/python2.7/site-packages/picard/tagger.py", line 687, in main
    tagger = Tagger(args, localedir, autoupdate, **kwargs)
  File "/usr/lib64/python2.7/site-packages/picard/tagger.py", line 206, in __init__
    self.window = MainWindow()
  File "/usr/lib64/python2.7/site-packages/picard/ui/mainwindow.py", line 71, in __init__
    self.setupUi()
  File "/usr/lib64/python2.7/site-packages/picard/ui/mainwindow.py", line 93, in setupUi
    self.panel = MainPanel(self, mainLayout)
  File "/usr/lib64/python2.7/site-packages/picard/ui/itemviews.py", line 103, in __init__
    self.views = [FileTreeView(window, self), AlbumTreeView(window, self)]
  File "/usr/lib64/python2.7/site-packages/picard/ui/itemviews.py", line 541, in __init__
    self.setAccessibleName(_("file view"))
AttributeError: 'FileTreeView' object has no attribute 'setAccessibleName'


emerge --info --ignore-default-opts picard
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.18.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16348704 total,   6042376 free
KiB Swap:   15624188 total,  15624188 free
Timestamp of tree: Fri, 02 Jan 2015 07:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gnome mozilla gentoo infinality poncho torbrowser
Installed sets: @kernels
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Introversion PAPERS-PLEASE skype-4.0.0.7-copyright FraunhoferFDK"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/firefox/browser/searchplugins/google.xml /usr/share/backgrounds/gnome/adwaita-timed.xml /usr/share/eselect-lcdfilter/env.d/custom /usr/share/gnome-shell/theme/gnome-shell.css /usr/share/gnupg/qualified.txt /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --ask --jobs=9 --load-average=8 --verbose"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo 	http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo 	http://distfiles.gentoo.org"
INSTALL_MASK=" /etc/init.d"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l8"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/gnome /var/portage/layman/mozilla /var/portage/tree /var/portage/local/infinality-overlay /var/portage/local/poncho-overlay /var/portage/local/torbrowser-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aften alac alsa amd64 avx avx2 bash-completion berkdb bluetooth bluray bzip2 cairo cdda cdio cdr cdrdao cli colord cracklib crypt cryptsetup css cue cups cxx dbus device-mapper dirac dri dts dvd dvdr egl emboss encode evo exif fam fdk ffmpeg firefox flac fontconfig fortran gif glamor gles2 gnome gnome-keyring gstreamer gtk gtk3 iconv id3tag introspection ipv6 jpeg kate kms lame lcms libass libnotify libproxy libsecret libtiger mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nss nvidia ogg opengl openmp opus pam pango pcre pdf png policykit postscript ppds pulseaudio qt3support quicktime raw readline rtmp schroedinger sdl session sndfile speex spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vpx wav wavpack webp x264 xcb xinerama xml xmp xps xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev roccat_arvo roccat_konepure" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-sound/picard-1.3.1 was built with the following:
USE="acoustid cdda nls" ABI_X86="64" PYTHON_TARGETS="python2_7"
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2015-01-03 01:35:32 UTC
Did you have similar problems with earlier versions (sadly 1.2 and 1.3 are no longer in the tree) or did the work fine?
Comment 2 poncho 2015-01-03 08:26:30 UTC
(In reply to Ben de Groot from comment #1)
> Did you have similar problems with earlier versions (sadly 1.2 and 1.3 are
> no longer in the tree) or did the work fine?

I've updated directly to 1.3.1 after I noticed your stable request.

After grabbing the 1.2 and 1.3 ebuild from the attic:


% picard -v
MusicBrainz Picard 1.2

> works fine, although there's an error, I didn't notice any issues.

% picard
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/picard/webservice.py", line 243, in _process_reply
    handler(xml_handler.document, reply, error)
  File "/usr/lib64/python2.7/site-packages/picard/collection.py", line 90, in request_finished
    user_collections[node.id] = Collection(node.id, node.name[0].text, node.release_list[0].count)
  File "/usr/lib64/python2.7/site-packages/picard/webservice.py", line 77, in __getattr__
    raise AttributeError, name
AttributeError: release_list


% picard -v
MusicBrainz Picard 1.3

> fails with the same error as 1.3.1

%picard
Traceback (most recent call last):
  File "/usr/bin/picard-2.7", line 2, in <module>
    from picard.tagger import main; main('/usr/share/locale', True)
  File "/usr/lib64/python2.7/site-packages/picard/tagger.py", line 684, in main
    tagger = Tagger(args, localedir, autoupdate, **kwargs)
  File "/usr/lib64/python2.7/site-packages/picard/tagger.py", line 206, in __init__
    self.window = MainWindow()
  File "/usr/lib64/python2.7/site-packages/picard/ui/mainwindow.py", line 71, in __init__
    self.setupUi()
  File "/usr/lib64/python2.7/site-packages/picard/ui/mainwindow.py", line 93, in setupUi
    self.panel = MainPanel(self, mainLayout)
  File "/usr/lib64/python2.7/site-packages/picard/ui/itemviews.py", line 103, in __init__
    self.views = [FileTreeView(window, self), AlbumTreeView(window, self)]
  File "/usr/lib64/python2.7/site-packages/picard/ui/itemviews.py", line 541, in __init__
    self.setAccessibleName(_("file view"))
AttributeError: 'FileTreeView' object has no attribute 'setAccessibleName'
Comment 3 poncho 2015-01-31 18:07:28 UTC
dev-python/PyQt4 needs to be compiled against a version of dev-qt/qtgui that has the accessibility useflag enabled for Picard 1.3 to work correctly.
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2015-02-02 17:12:56 UTC
(In reply to poncho from comment #3)
> dev-python/PyQt4 needs to be compiled against a version of dev-qt/qtgui that
> has the accessibility useflag enabled for Picard 1.3 to work correctly.

I've added qtgui[accessibility] as a dep in the picard-1.3.2 ebuild, but possibly we should adapt the PyQt4 ebuild for this.
Comment 5 Francesco Turco 2018-09-24 21:08:58 UTC
Is the dev-qt/qtgui:5[accessibility] dependency still needed for Picard? I can start it successfully without the accessibility USE flag.
Comment 6 Nick Bowler 2019-05-30 20:18:10 UTC
(In reply to Francesco Turco from comment #5)
> Is the dev-qt/qtgui:5[accessibility] dependency still needed for Picard? I
> can start it successfully without the accessibility USE flag.

Indeed, even if this dep was needed back in 2015 it does not appear to be needed in any modern picard based on PyQt5.

I've been locally patching this dependency out for ages due to the additional packages this flag pulls in and have never noticed any particular problem.
Comment 7 Larry the Git Cow gentoo-dev 2019-08-06 14:05:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd9153d659cd6014a18dbd3d53a5e455f34535c

commit fdd9153d659cd6014a18dbd3d53a5e455f34535c
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-08-06 14:05:16 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-08-06 14:05:25 +0000

    media-sound/picard: Version bump, qtgui[accessibility] not needed
    
    Closes: https://bugs.gentoo.org/534298
    Closes: https://bugs.gentoo.org/684648
    Package-Manager: Portage-2.3.71, Repoman-2.3.17
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 media-sound/picard/Manifest            |  1 +
 media-sound/picard/picard-2.1.3.ebuild | 71 ++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)