Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2010, 01:57 PM   #1
klikklak
Connoisseur
klikklak doesn't litterklikklak doesn't litter
 
Posts: 86
Karma: 124
Join Date: Nov 2007
Location: helsinki
Device: nokia 770, PRS-500
Converting cbr's and cbz's to pdf's

Hi all,

I've just tried converting comics to pdf and I get an

Quote:
ERROR: Conversion Error: <p>Could not convert: Convert book 1 of 1 (The Metabarons 07)<p>It is a <a href="http://bugs.calibre-ebook.com/wiki/DRM">DRM</a>ed book. You must first remove the DRM using third party tools.
This is clearly an bug as cbr's have no DRM as far as I know. unraring it manually works with no errors. Also mobi conversions are effected. The system is archlinux, I'm using the AUR install method and all other conversions work just fine. It just chokes on comics.

EDIT: Here's more debugging information:
Quote:
67% Creating PDF Output
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 130, in _render_html
self._render_book()
File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 105, in _render_book
self._write()
File "/usr/lib/calibre/calibre/ebooks/pdf/writer.py", line 141, in _write
outPDF = PdfFileWriter(title=self.metadata.title, author=self.metadata.author)
TypeError: __init__() got an unexpected keyword argument 'title'

Last edited by klikklak; 03-26-2010 at 02:19 PM.
klikklak is offline   Reply With Quote
Old 03-26-2010, 11:43 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your PDF output error is caused by your system using an unpatched version of pypdf instead of the one distributed with calibre.

The cbr error is because you are using a version of libubrar.so not compiled with -DSILENT
kovidgoyal is online now   Reply With Quote
Advert
Old 03-27-2010, 06:07 AM   #3
klikklak
Connoisseur
klikklak doesn't litterklikklak doesn't litter
 
Posts: 86
Karma: 124
Join Date: Nov 2007
Location: helsinki
Device: nokia 770, PRS-500
I just modified the PKGBUILD (using Archlinux and it's AUR recipe) to leave both cherrypy and pypdf in place from upstream. I still get the same error. However ebook-convert from cli runs without errors, but produces a 41K file with no images. There are no conflicting versions of pypdf or cherrypy installed.

EDIT: Perhaps this is more interesting to you: the reason I don't just use upstream is because the GUI hangs on all actions, fetching news or converting. In the process list it shows 'waiting' but doesn't progress from there.
EDIT2: it's not just the GUI, it's ebook-convert itself that hangs.

Last edited by klikklak; 03-27-2010 at 06:36 AM.
klikklak is offline   Reply With Quote
Old 03-27-2010, 06:38 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates an unpatched pyPDF. If you're getting it, you're using an unpatched pyPDF.
kovidgoyal is online now   Reply With Quote
Old 03-27-2010, 07:49 AM   #5
klikklak
Connoisseur
klikklak doesn't litterklikklak doesn't litter
 
Posts: 86
Karma: 124
Join Date: Nov 2007
Location: helsinki
Device: nokia 770, PRS-500
I ran calibre-debug to find out what it was doing:
Quote:
Converting file to html...
InputFormatPlugin: PDF Input running
on XXXX Unknown.pdf
pdftohtml log:

Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 99, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 787, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 211, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/pdf/input.py", line 50, in convert
pdftohtml(os.getcwd(), stream.name, options.no_images)
File "/usr/lib/calibre/calibre/ebooks/pdf/pdftohtml.py", line 76, in pdftohtml
raise DRMError()
calibre.ebooks.DRMError
It was apparently grabbing the old pdf conversion and converting it again to pdf and then spit out an drm error. Removing the old broken pdfs got rid of the DRM error, but I still get
files like this:
Quote:
8,9M 26.3. 03:07 The Incal 11 - Unknown.cbr
36K 27.3. 13:42 The Incal 11 - Unknown.pdf
klikklak is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac user needs help converting pdf's (TV Scripts) and keeping format!! mcforman Kindle Developer's Corner 12 06-20-2011 05:28 PM
Converting PDF's with facing pages BrentB Calibre 1 02-14-2010 05:39 PM
Naming PDF's malduin Sony Reader 7 09-02-2008 09:46 AM
Reading PDF's wgrimm Sony Reader 5 05-09-2007 10:39 AM
Organizing your PDF's Stingo Sony Reader 8 03-09-2007 01:26 PM


All times are GMT -4. The time now is 06:48 PM.


MobileRead.com is a privately owned, operated and funded community.