|
|
#1 |
|
Junior Member
![]() 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
|
|
|
|
|
|
#2 | |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
OP Uninstall that version and paste the command line on the Calibre Linux download page (repeat for every Calibre update you want) |
|
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Kindle
|
Indeed, I was running an old version. I upgraded to 0.8.68 and now this is the error I get;
Code:
Traceback (most recent call last): File "site.py", line 58, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 325, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 989, in run File "site-packages/calibre/customize/conversion.py", line 239, in __call__ File "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 154, in convert File "site-packages/calibre/utils/zipfile.py", line 1087, in extractall File "site-packages/calibre/utils/zipfile.py", line 1071, in extract File "site-packages/calibre/utils/zipfile.py", line 1140, in _extract_member File "shutil.py", line 49, in copyfileobj File "site-packages/calibre/utils/zipfile.py", line 607, in read File "site-packages/calibre/utils/zipfile.py", line 659, in read1 error: Error -3 while decompressing: invalid stored block lengths |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THat error indicates the epub file you are trying to convert is not a valid zip file.
|
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| calibre, ebook-convert, linux, python error |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ebook-convert not working (linux) | Kino | Calibre | 4 | 01-24-2012 11:35 AM |
| calibre-0.8.14 Linux ebook-convert cpu run/endless loop? | rogerx | Conversion | 7 | 09-02-2011 11:56 PM |
| =calibre-0.8.14 Linux No X ebook-convert bug | rogerx | Conversion | 2 | 09-02-2011 08:41 PM |
| ebook-convert error on PDF output without X | hiperlink | Conversion | 3 | 04-04-2011 08:23 AM |
| ebook-convert for linux | Patton | Calibre | 5 | 02-10-2010 10:57 PM |