Problem converting djvu

Bug #1807577 reported by Karlis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

I can't convert a djvu file to other file formats. Tried pdf, mobi, epub.
Running 3.35.0 and windows 10 (Installed not on the os drive, but other conversions have worked as expected)

calibre, version 3.35.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (book name)

Convert book 1 of 1 ()
Conversion options changed from defaults:
  read_metadata_from_opf: u'C:\\Users\\snip\\AppData\\Local\\Temp\\calibre_kylgne\\nzvw_e.opf'
  output_profile: 'kindle_pw3' (Although here it is pw3, I have tried default also)
  verbose: 2
Resolved conversion options
calibre version: 3.35.0

last lines

InputFormatPlugin: DJVU Input running
on C:\Users\snip\AppData\Local\Temp\calibre_kylgne\ue3tq4.djvu
Python function terminated unexpectedly
  unpack requires a string argument of length 4 (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 101, in main
  File "site.py", line 78, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 199, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 42, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 27, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1106, in run
  File "site-packages\calibre\customize\conversion.py", line 244, in __call__
  File "site-packages\calibre\ebooks\conversion\plugins\djvu_input.py", line 29, in convert
  File "site-packages\calibre\ebooks\djvu\djvu.py", line 118, in __init__
  File "site-packages\calibre\ebooks\djvu\djvu.py", line 56, in __init__
  File "site-packages\calibre\ebooks\djvu\djvu.py", line 56, in __init__
  File "site-packages\calibre\ebooks\djvu\djvu.py", line 40, in __init__
struct.error: unpack requires a string argument of length 4

PS. Another program (DjView) couldn't get past 311 pages.

Revision history for this message
Karlis (bralismazais) wrote :
Karlis (bralismazais)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1807577

That error indicates a corrupted DJVU file.

 status invalid

Changed in calibre:
status: New → Invalid
Revision history for this message
Karlis (bralismazais) wrote :

The djvu file in a viewer displays everything correctly, so that had me in doubt. Thanks for the confirmation!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.