Bug 10180 - [Update request] - calibre as it can't convert a PDF file to MOBI
Summary: [Update request] - calibre as it can't convert a PDF file to MOBI
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: feedback MGA3-32-ok MGA3-64-ok
Keywords: Triaged, validated_update
Depends on:
Blocks:
 
Reported: 2013-05-20 16:03 CEST by Diego Bello
Modified: 2014-05-08 18:05 CEST (History)
5 users (show)

See Also:
Source RPM: calibre-0.9.36-1.2.mga3.src.rpm
CVE:
Status comment:


Attachments
python eats too much RAM when converting multipage PDF to MOBI (362.29 KB, image/png)
2013-06-23 09:30 CEST, Oleg Bosis
Details

Description Diego Bello 2013-05-20 16:03:41 CEST
Description of problem:
Calibre fails when converting a PDF file to Mobi. Haven't tried other format conversions though.

The problem is solved by installing python-cssselect.


Version-Release number of selected component (if applicable):
0.9.26

How reproducible:
Install calibre and convert a PDE file

Steps to Reproduce:
1. Install calibre
2. Import a pde file
3. Convert the file to Mobi
4. Install python-cssselect
5. Conversion works.



Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-05-22 12:29:43 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => mageia

Comment 1 Damien Lallement 2013-05-22 14:11:41 CEST
Thanks for the bug report. I will work on an update when 3/cauldron will be back.

Status: NEW => ASSIGNED

Comment 2 Damien Lallement 2013-06-21 16:27:46 CEST
Advisory
====================
This update of calibre adds 'python-cssselect' as a require. Without this require, PDF file conversion to MOBI file can't work (mga #10180). Moreover, this new version of calibre 0.9.36 adds support for a lot of new reader devices (and/or firmware updates) and also fixed a lot of known bugs.

Packages
====================
calibre-0.9.36-1.mga3.src.rpm

Steps to Reproduce
====================
- Install Mageia 3
- Install calibre from "core/release"
- Launch calibre and import a PDF file
- Convert the PDF file to MOBI
- Check that it won't works
- Install calibre from "core/updates_testing"
- Restart the convertion and check it works

Hardware: i586 => All
Assignee: mageia => qa-bugs
Source RPM: calibre-0.9.26-1.mga3.src.rpm => calibre-0.9.36-1.mga3.src.rpm

Damien Lallement 2013-06-21 16:28:23 CEST

CC: (none) => mageia
Summary: Calibre can't convert a pde file to Mobi => [Update request] - calibre as it can't convert a PDF file to MOBI

Comment 3 Rémi Verschelde 2013-06-22 11:38:09 CEST
I could reproduce the bug on mga3 i586, but the update candidate won't start.
Python ImportError:

[akien@remi ~]$ calibre
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/main.py", line 278, in initialize
    self.initialize_db()
  File "/usr/lib/calibre/calibre/gui2/main.py", line 259, in initialize_db
    self.initialize_db_stage2(db, None)
  File "/usr/lib/calibre/calibre/gui2/main.py", line 235, in initialize_db_stage2
    self.start_gui(db)
  File "/usr/lib/calibre/calibre/gui2/main.py", line 185, in start_gui
    main.initialize(self.library_path, db, self.listener, self.actions)
  File "/usr/lib/calibre/calibre/gui2/ui.py", line 208, in initialize
    MainWindowMixin.__init__(self, db)
  File "/usr/lib/calibre/calibre/gui2/layout.py", line 271, in __init__
    self.iactions['Fetch News'].init_scheduler(db)
  File "/usr/lib/calibre/calibre/gui2/actions/fetch_news.py", line 28, in init_scheduler
    from calibre.gui2.dialogs.scheduler import Scheduler
  File "/usr/lib/calibre/calibre/gui2/dialogs/scheduler.py", line 20, in <module>
    from calibre.web.feeds.recipes.model import RecipeModel
  File "/usr/lib/calibre/calibre/web/feeds/recipes/__init__.py", line 9, in <module>
    from calibre.web.feeds.jsnews import JavascriptRecipe
  File "/usr/lib/calibre/calibre/web/feeds/jsnews.py", line 16, in <module>
    from calibre.web.fetch.javascript import fetch_page,  AbortFetch, links_from_selectors
  File "/usr/lib/calibre/calibre/web/fetch/javascript.py", line 16, in <module>
    from calibre.web.jsbrowser.browser import Timeout
  File "/usr/lib/calibre/calibre/web/jsbrowser/browser.py", line 13, in <module>
    from PyQt4.Qt import (QObject, QNetworkAccessManager, QNetworkDiskCache,
ImportError: cannot import name QNetworkAccessManager

CC: (none) => remi
Whiteboard: (none) => feedback

Comment 4 martyn vidler 2013-06-22 17:51:44 CEST
I too had the same problem on MGA3 32. I ran calibre 0.9.26 Produced the same error

Upgraded to 0.9.36-1 and Calibre wont launch.

CC: (none) => martynvidler

Comment 5 Oleg Bosis 2013-06-22 22:23:56 CEST
I had the same problem to start calibre 0.9.36-1 on x86_64 and I managed to make it run after some experiments. I've just installed python-qt4-help package and calibre began to start normally. Removing python-qt4-help breaks calibre again so it seems like this package has to be added to calibre dependencies.

CC: (none) => olegbosis

Comment 6 Damien Lallement 2013-06-23 00:33:10 CEST
Thanks all for your tests.
Please test calibre-0.9.36-1.1.mga3

Source RPM: calibre-0.9.36-1.mga3.src.rpm => calibre-0.9.36-1.1.mga3.src.rpm

Comment 7 Damien Lallement 2013-06-23 01:07:14 CEST
Please test calibre-0.9.36-1.2.mga3 as I removed modifications (on specfile) not wanted/asked for this bug.

Source RPM: calibre-0.9.36-1.1.mga3.src.rpm => calibre-0.9.36-1.2.mga3.src.rpm

Comment 8 Oleg Bosis 2013-06-23 09:30:44 CEST
Created attachment 4155 [details]
python eats too much RAM when converting multipage PDF to MOBI

Hmm... Honestly I've never used calibre to convert books from one format to another as my PocketBook can read any format I have. But simple testing to convert 912-page book from PDF to MOBI on my laptop with mobile Core i5 CPU and 6 GiB of RAM showed that python eats more that 4 GiB of RAM, system began to swap like hell and the process takes ages. See screenshot attached (sorry for russian GUI).
Comment 9 martyn vidler 2013-06-23 11:44:16 CEST
MGA3 32 & 64

Installed calibre-0.9.36-1.2.mga3 on both arch's No errors
Converted 1 page PDF to MOBI

urpme calibre
No errors

Whiteboard: feedback => feedback MGA3-32-ok MGA3-64-ok

Comment 10 Damien Lallement 2013-06-23 17:44:12 CEST
(In reply to Oleg Bosis from comment #8)
> Created attachment 4155 [details]
> python eats too much RAM when converting multipage PDF to MOBI
> 
> Hmm... Honestly I've never used calibre to convert books from one format to
> another as my PocketBook can read any format I have. But simple testing to
> convert 912-page book from PDF to MOBI on my laptop with mobile Core i5 CPU
> and 6 GiB of RAM showed that python eats more that 4 GiB of RAM, system
> began to swap like hell and the process takes ages. See screenshot attached
> (sorry for russian GUI).

Strange to take so many RAM but I think it's not related to this update request and that we can let this a side for now. Perhaps you can report it upstream no?
Comment 11 martyn vidler 2013-06-23 22:48:25 CEST
Validating


Can sysadmin please push calibre-0.9.36-1.2.mga3 from core/updates_testing to core/updates


Thank you

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 12 claire robinson 2013-06-26 09:41:41 CEST
Advisory uploaded
Comment 13 Nicolas Vigier 2013-06-26 20:21:27 CEST
http://advisories.mageia.org/MGAA-2013-0037.html

Status: ASSIGNED => RESOLVED
CC: (none) => boklm
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:05:38 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.