Install Picard on Centos

picard
support
centos
Tags: #<Tag:0x00007fe3d09d0c68> #<Tag:0x00007fe3d09d0a88> #<Tag:0x00007fe3d09d08a8>

#1

Hi Guys,

I can’t install the package picard-release-1.3.2.
I’m following the instructions in INSTALL.TXT file, but unsuccessful when I try to start them.
Follows the failure log:

Traceback (most recent call last):
File “/usr/bin/picard”, line 2, in
from picard.tagger import main; main(’/usr/share/locale’, True)
File “/usr/lib64/python2.6/site-packages/picard/tagger.py”, line 687, in main
tagger = Tagger(args, localedir, autoupdate, **kwargs)
File “/usr/lib64/python2.6/site-packages/picard/tagger.py”, line 206, in init
self.window = MainWindow()
File “/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py”, line 71, in init
self.setupUi()
File “/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py”, line 86, in setupUi
self.create_toolbar()
File “/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py”, line 601, in create_toolbar
self.search_edit = ButtonLineEdit(search_panel)
File “/usr/lib64/python2.6/site-packages/picard/ui/util.py”, line 78, in init
self.clear_button.setIcon(QtGui.QIcon.fromTheme(“edit-clear”,
AttributeError: type object ‘QIcon’ has no attribute ‘fromTheme’

Can someone help?

Thanks in advance.
-LeoBolla


#2

I’m not sure I understand what you’re doing. Are you installing via a CentOS package? Are you installing from source? Are you creating a CentOS package?


#3

This is a bug in Picard. We’re claiming to support PyQt 4.5 (which supports Qt 4.5.1), but QIcon.fromTheme has only been added in Qt 4.6. You’ll need to use an older version of Picard (1.2 or lower) or update Qt.


#4

Hi Freso.

Maybe I have expressed myself badly.
I’m trying to install the picard-release-1.3.2 on my laptop. I used a CentOS as OS.

Just an observation, Picard is not available on official Fedora package collection.
(https://admin.fedoraproject.org/pkgdb/packages/name/picard/)

Thanks for your reply.


#5

Hi Mineo.

Thanks for your imput.
I’ll try to do it and return with results.

Thank you.


#6

This is a bug in Picard. We’re claiming to support PyQt 4.5 (which
supports Qt 4.5.1), but QIcon.fromTheme has only been added in Qt 4.6.
You’ll need to use an older version of Picard (1.2 or lower) or update
Qt.

I have the same error on a up-to-date CentOS 6.7 (final). Compiling from source picard 1.3.2.

rpm -qa | grep PyQt

PyQt4-4.6.2-9.el6.x86_64
PyQt4-devel-4.6.2-9.el6.x86_64

rpm -qa | grep qt

qt-mobility-1.1.3-2.el6.x86_64
qt-4.6.2-28.el6_5.x86_64
qt-x11-4.6.2-28.el6_5.x86_64
qt-sqlite-4.6.2-28.el6_5.x86_64

Looks like I have the required versions, but I still receive the same error after compiling from source on both picard-1.3.tar.gz and picard-1.2.tar.gz?

$ picard QWidget::insertAction: Attempt to insert null action 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.6/site-packages/picard/tagger.py", line 687, in main tagger = Tagger(args, localedir, autoupdate, **kwargs) File "/usr/lib64/python2.6/site-packages/picard/tagger.py", line 206, in __init__ self.window = MainWindow() File "/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py", line 71, in __init__ self.setupUi() File "/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py", line 86, in setupUi self.create_toolbar() File "/usr/lib64/python2.6/site-packages/picard/ui/mainwindow.py", line 601, in create_toolbar self.search_edit = ButtonLineEdit(search_panel) File "/usr/lib64/python2.6/site-packages/picard/ui/util.py", line 78, in __init__ self.clear_button.setIcon(QtGui.QIcon.fromTheme("edit-clear", AttributeError: type object 'QIcon' has no attribute 'fromTheme'

Any ideas?