View Single Post
Old 09-03-2012, 08:23 PM   #1
Junior Member
p014k began at the beginning.
Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Kindle
Python error using ebook-convert (Linux)


I'm trying to convert an .epub to a .mobi using the ebook-convert command line included with Calibre (version 0.7.44) on Linux. I've used it before with several successful conversions, but for this particular .epub, I'm getting this error;

Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 19, in <module>
  File "/usr/lib/calibre/calibre/ebooks/conversion/", line 279, in main
  File "/usr/lib/calibre/calibre/ebooks/conversion/", line 904, in run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/", line 204, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/epub/", line 138, in convert
  File "/usr/lib/calibre/calibre/utils/", line 1054, in extractall
    self.extract(zipinfo, path, pwd)
  File "/usr/lib/calibre/calibre/utils/", line 1042, in extract
    return self._extract_member(member, path, pwd)
  File "/usr/lib/calibre/calibre/utils/", line 1097, in _extract_member
    shutil.copyfileobj(source, target)
  File "/usr/lib/python2.7/", line 48, in copyfileobj
    buf =
  File "/usr/lib/calibre/calibre/utils/", line 649, in read
    newdata = self.dc.decompress(newdata)
zlib.error: Error -3 while decompressing: invalid stored block lengths
Does anyone have a solution to this problem?
p014k is offline   Reply With Quote