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!
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!
FS#43934 - [calibre] UI is broken.
Attached to Project:
Community Packages
Opened by Daniel Fort (naquad) - Tuesday, 24 February 2015, 19:58 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 08 March 2015, 20:21 GMT
Opened by Daniel Fort (naquad) - Tuesday, 24 February 2015, 19:58 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 08 March 2015, 20:21 GMT
|
DetailsDescription:
Calibre is not functioning properly. Looks like depency issue. Additional info: * package version(s): 2.20.0-1 * errors from console output: QWidget::setMaximumSize: (/JobError) Negative sizes (16777215,-492131573) are not possible Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.generate_cover.action", line 15, in <module> File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.generate_cover.config", line 12, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.open_with.action", line 13, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.quality_check.action", line 12, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.reading_list.action", line 14, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.find_duplicates.action", line 11, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.savetoformat.savetoformataction", line 3, in <module> File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.savetoformat.gui.prompt", line 5, in <module> ImportError: cannot import name NONE Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 150, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 164, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 582, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.extract_isbn.action", line 16, in <module> File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.extract_isbn.config", line 11, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Unable to open ~/.mtpz-data for reading, MTPZ disabled. QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::save: Painter not active QPainter::setFont: Painter not active QPainter::restore: Unbalanced save/restore QPainter::save: Painter not active QPainter::setFont: Painter not active QPainter::restore: Unbalanced save/restore QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::save: Painter not active QPainter::setFont: Painter not active QPainter::restore: Unbalanced save/restore QPainter::save: Painter not active QPainter::setFont: Painter not active QPainter::restore: Unbalanced save/restore QPainter::end: Painter not active, aborted Steps to reproduce: start latest Calibre. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 08 March 2015, 20:21 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.20.0-2.
Sunday, 08 March 2015, 20:21 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.20.0-2.
And the same error messages.
Linux-3.18.6-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '3.18.6-1-ARCH', '#1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015')
Python 2.7.9
Linux: ('', '', '')
Successfully initialized third party plugins: Webscription && Beam Ebooks && Generate Cover && Open With && Quality Check && Skoob && Fantastic Fiction && Reading List && Barnes & Noble && Find Duplicates && Save To Format && Databazeknih && catawiki && ANOBII && FictionDB && Extract ISBN && Goodreads
Starting up...
http://plugins.calibre-ebook.com/porting.html
So the errors are probably from that.
Edit: catawiki is also on the list that hasn't been ported.
Update: I think thats the primary issue:
QWidget::setMinimumSize: (/Preferences) Negative sizes (-492131429,-492131555) are not possible
QWidget::setMinimumSize: (/Preferences) Negative sizes (-492131429,-492131555) are not possible
QWidget::setMinimumSize: (/Preferences) Negative sizes (-492131429,-492131555) are not possible
calibre 2.20 isfrozen: False is64bit: True
Linux-3.18.6-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '3.18.6-1-ARCH', '#1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015')
Python 2.7.9
Linux: ('', '', '')
Successfully initialized third party plugins:
Starting up...
QWidget::setMaximumSize: (/JobError) Negative sizes (16777215,-492131573) are not possible
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
Started up in 1.78 seconds with 510 books
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::save: Painter not active
QPainter::setFont: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setFont: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::save: Painter not active
QPainter::setFont: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setFont: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
Update your entire system and see if it works.
Edit: sorry, kernel is correct, it was just my -ck kernel that updated. Still, no way should you have qt5 5.4.0-2 with calibre 2.20, so my point stands.
Calibre starts okay, but if I click on "edit" by selecting (apparently) any book:
Console output:
- https://gist.github.com/thiagowfx/ea271c4bda903fd8a1ba
Program versions:
calibre 2.20.0-1
pyqt5-common 5.4.1-1
python2-pyqt5 5.4.1-1
Graphical output (error message):
- Screenshot: https://www.flickr.com/photos/thiagowfx/16068929894/
- Content: https://gist.github.com/thiagowfx/0dccd5926875ee98665c
$ sip -w -c /path/to/calibre/src/calibre-2.20.0/build/pyqt/pictureflow -b /path/to/calibre/src/calibre-2.20.0/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/share/sip/Py2-PyQt5 -x VendorID -t WS_X11 -t Qt_5_4_1 -x Py_v3 /path/to/calibre/src/calibre-2.20.0/src/calibre/gui2/pictureflow/pictureflow.sip
sip: Unable to find file "QtWidgets/QtWidgetsmod.sip"
https://bugs.launchpad.net/calibre/+bug/1427684
downgrading python2-pyqt5 to 5.4.0-2.
Note: this works for my bug (see my last comment). Not yet sure if my bug is the same one as OP's.
Editing /usr/lib/calibre/calibre/gui2/widgets.py on my system with that change fixed the problem.