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

Hello.

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;

Code:
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 19, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 279, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 904, in run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 204, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/epub/input.py", line 138, in convert
    zf.extractall(os.getcwd())
  File "/usr/lib/calibre/calibre/utils/zipfile.py", line 1054, in extractall
    self.extract(zipinfo, path, pwd)
  File "/usr/lib/calibre/calibre/utils/zipfile.py", line 1042, in extract
    return self._extract_member(member, path, pwd)
  File "/usr/lib/calibre/calibre/utils/zipfile.py", line 1097, in _extract_member
    shutil.copyfileobj(source, target)
  File "/usr/lib/python2.7/shutil.py", line 48, in copyfileobj
    buf = fsrc.read(length)
  File "/usr/lib/calibre/calibre/utils/zipfile.py", 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