Description of problem: Trying to convert a invalid or corrupt epub file to mobi Version-Release number of selected component: calibre-1.39.0-2.fc20 Additional info: reporter: libreport-2.2.3 cmdline: python2 /usr/bin/calibre-parallel executable: /usr/bin/calibre-parallel kernel: 3.16.3-200.fc20.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: localunzip.py:209:_extractall:ValueError: Not a ZIP file Traceback (most recent call last): File "/usr/bin/calibre-parallel", line 20, in <module> sys.exit(main()) File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 194, in main result = func(*args, **kwargs) File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override override_input_metadata=True) File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert plumber.run() File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1040, in run accelerators, tdir) File "/usr/lib64/calibre/calibre/customize/conversion.py", line 241, in __call__ log, accelerators) File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/epub_input.py", line 197, in convert extractall(stream) File "/usr/lib64/calibre/calibre/utils/localunzip.py", line 222, in extractall _extractall(f, path) File "/usr/lib64/calibre/calibre/utils/localunzip.py", line 209, in _extractall raise ValueError('Not a ZIP file') ValueError: Not a ZIP file Local variables in innermost frame: header: None path: u'/tmp/calibre_1.39.0_tmp_adL4n1/kQs2q2_plumber' f: <open file u'/tmp/calibre_1.39.0_tmp_adL4n1/UbBxWj.epub', mode 'rb' at 0x3bb3ae0> file_info: None found: False
Created attachment 941885 [details] File: backtrace
Created attachment 941886 [details] File: environ
Not sure what we can do here... if the file is not seen as a zip by unzip it's corrupt to the point that it can't even see any of the contents. ;( Is the file freely distributable?
(In reply to Kevin Fenzi from comment #3) > Not sure what we can do here... if the file is not seen as a zip by unzip > it's corrupt to the point that it can't even see any of the contents. ;( > > Is the file freely distributable? It is not freely distributable. I guess that the only thing to do here is a better catching of this kind of exceptions.
I don't think upstream has been too interested in that in the past. Would you care to file an upstream issue and ask them? http://launchpad.net/calibre/ Thanks.