ebook-convert from html to pdf crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| calibre (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Binary package hint: calibre
Ubuntu version : Karmic (9.10)
Package version : 0.6.10+
Expected : To convert html input to pdf output
What happened : ebook-convert crashed with the following output
$ ebook-convert 0-Readme.html 0-Readme.pdf
1% Converting input to HTML...
InputFormatPlugin: HTML Input running on /home/srikanth/
Language not specified
Creator not specified
Building file list...
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
Detected chapter: E-Book Library Build System
Detected chapter: PART I - GOALS
Detected chapter: PART II - IMPLEMENTATION
Auto generated TOC with 7 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDF Output...
67% Creating PDF Output
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self._write()
File "/usr/lib/
outPDF = PdfFileWriter(
TypeError: __init__() got an unexpected keyword argument 'title'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
if pr.check_ignored():
File "/usr/lib/
dom = self._get_
File "/usr/lib/
dom = xml.dom.
File "/usr/lib/
raise NotImplementedError
NotImplementedError
Original exception was:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self._write()
File "/usr/lib/
outPDF = PdfFileWriter(
TypeError: __init__() got an unexpected keyword argument 'title'
PDF output written to /home/srikanth/
Output saved to /home/srikanth/
This happens while trying to convert any html file to pdf.
tags: | added: karmic |
description: | updated |
tags: | added: lucid |
Bill Dieter (billdieter) wrote : | #1 |
Andrew Roden (andrew-roden) wrote : | #2 |
This looks to be upstream, but I'm too lazy to file it. For the helpful soul that does:
/usr/lib/
Line#206
outPDF = PdfFileWriter(
Uses a constructor that doesn't appear to exist:
http://
Changing the line to anonymous (and only) constructor in pypdf
outPDF = PdfFileWriter()
Resolves the bomb for me. (but I still have weird start of line chars in the result)
rodbeyer (xrodent) wrote : | #3 |
calibre uses a customized pypdf.
I copied the the contents of src/pyPdf from the calibre source into /usr/share/
I probably broke some pdf export somewhere else .. *shrug*
I can confirm this is still an issue in both lucid and maverick. I can also confirm that the solution from post #3 works for me.
I'm not sure this is an upstream issue -- if Calibre requires a customized version of pypdf, then it makes sense that such a customized version be provided in the repositories as an alternative to the standard pypdf -- and that this package be a dependency of Calibre's deb package.
This is a very important feature in Calibre, and to leave it not functional would be very unfortunate.
gf (gf-interlinks) wrote : | #5 |
Hello Akincisor,
Thank you for submitting this bug and reporting a problem with Calibre. You made this bug report some time ago and Ubuntu and Calibre have been updated since then.
Could you confirm that this is no longer a problem and that we can close the ticket?
If it is still a problem, are you still interested in finding a solution to this bug?
If you are, could you let us know and, in the current version, could you run the following (only once):
apport-collect 428933
and upload the updated logs and and any other logs that are relevant for this particular issue.
Thank you again for helping make Ubuntu and Calibre better.
G
Changed in calibre (Ubuntu): | |
status: | New → Incomplete |
Launchpad Janitor (janitor) wrote : | #6 |
[Expired for calibre (Ubuntu) because there has been no activity for 60 days.]
Changed in calibre (Ubuntu): | |
status: | Incomplete → Expired |
I see the same problem trying to convert an epub to PDF on 10.04.