Bug 1147168 - [abrt] calibre: localunzip.py:209:_extractall:ValueError: Not a ZIP file
Summary: [abrt] calibre: localunzip.py:209:_extractall:ValueError: Not a ZIP file
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:c555b587965fdea0aa632f6c7c7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-27 20:21 UTC by Juan Orti Alcaine
Modified: 2014-09-29 14:40 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-29 14:40:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.30 KB, text/plain)
2014-09-27 20:21 UTC, Juan Orti Alcaine
no flags Details
File: environ (2.44 KB, text/plain)
2014-09-27 20:21 UTC, Juan Orti Alcaine
no flags Details

Description Juan Orti Alcaine 2014-09-27 20:21:14 UTC
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

Comment 1 Juan Orti Alcaine 2014-09-27 20:21:18 UTC
Created attachment 941885 [details]
File: backtrace

Comment 2 Juan Orti Alcaine 2014-09-27 20:21:19 UTC
Created attachment 941886 [details]
File: environ

Comment 3 Kevin Fenzi 2014-09-27 23:20:25 UTC
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?

Comment 4 Juan Orti Alcaine 2014-09-28 09:16:46 UTC
(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.

Comment 5 Kevin Fenzi 2014-09-29 14:40:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.