Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45744 - [calibre] Needs rebuild against PyQt 5.5

Attached to Project: Community Packages
Opened by Antonio Rojas (arojas) - Wednesday, 22 July 2015, 16:52 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 23 July 2015, 14:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: Launch calibre after updating PyQt to 5.5 :

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/main.py", line 273, in initialize_db_stage2
self.start_gui(db)
File "/usr/lib/calibre/calibre/gui2/main.py", line 213, in start_gui
main.initialize(self.library_path, db, self.listener, self.actions)
File "/usr/lib/calibre/calibre/gui2/ui.py", line 242, in initialize
self.jobs_button = JobsButton(horizontal=True, parent=self)
File "/usr/lib/calibre/calibre/gui2/jobs.py", line 465, in __init__
self.pi = ProgressIndicator(self, size)
TypeError: QProgressIndicator(): argument 1 has unexpected type 'JobsButton'

Rebuilding calibre fixes this
This task depends upon

Closed by  Jelle van der Waa (jelly)
Thursday, 23 July 2015, 14:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in [community-testing]
Comment by Eli Schwartz (eschwartz) - Thursday, 23 July 2015, 04:11 GMT
Darn extensions. Spoke too soon. :smack: :smack: :smack:

I know I built it after the update???
Comment by Eli Schwartz (eschwartz) - Thursday, 23 July 2015, 06:25 GMT
The good news is that in being stupid I also managed to be semi-smart. :lol:

Make sure to include this patch or else editing metadata cells in the main view does weird things: https://github.com/kovidgoyal/calibre/commit/8f75f2d5ad17ef35d52a9dc1a137c36d42e8454e
Comment by KingRiver (ljj038) - Thursday, 23 July 2015, 07:23 GMT
The same error

┌(king@livesystem)─(0)─(03:17 PM Thu Jul 23)
└─(~)─(18 files, 2.0Mb)─> uname -a
Linux livesystem 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 GNU/Linux

┌(king@livesystem)─(0)─(03:17 PM Thu Jul 23)
└─(~)─(18 files, 2.0Mb)─> calibre --version
calibre (calibre 2.32.1)

┌(king@livesystem)─(0)─(03:17 PM Thu Jul 23)
└─(~)─(18 files, 2.0Mb)─> gcc --version
gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


┌(king@livesystem)─(0)─(03:18 PM Thu Jul 23)
└─(~)─(18 files, 2.0Mb)─> calibre
Traceback (most recent call last):
File "/usr/bin/calibre", line 20, in <module>
sys.exit(calibre())
File "/usr/lib/calibre/calibre/gui_launch.py", line 63, in calibre
main(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 492, in main
app, opts, args = init_qt(args)
File "/usr/lib/calibre/calibre/gui2/main.py", line 101, in init_qt
app = Application(args, override_program_name=override)
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 911, in __init__
self.load_calibre_style()
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 1022, in load_calibre_style
self.pi.load_style(icon_map)
TypeError: a value has type 'unicode' but 'QString' is expected

Loading...