View Full Version : [Old Thread]CBR to PDF isn't working? ACK!


ThomasMcKean
02-14-2010, 10:39 PM
Here is sample error...
----------------------------------------

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (The Green Arrow (tpb) (2001) (Dc))

Convert book 1 of 1 (The Green Arrow (tpb) (2001) (Dc))
InputFormatPlugin: Comic Input running on /home/thomas/Library/Unknown/The Green Arrow (tpb) (2001) (Dc) (744)/The Green Arrow (tpb) (2001) (Dc) - Unknown.cbr
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 16, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 90, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 19, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 717, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 208, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 401, in convert
pages = self.get_pages(fname, cdir)
File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 350, in get_pages
tdir = extract_comic(comic)
File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 24, in extract_comic
extract(path_to_comic_file, tdir)
File "/usr/lib/calibre/calibre/__init__.py", line 190, in extract
from calibre.libunrar import extract as rarextract
File "/usr/lib/calibre/calibre/libunrar.py", line 30, in <module>
_libunrar = load_library(_librar_name, cdll)
File "/usr/lib/calibre/calibre/__init__.py", line 174, in load_library
return cdll.LoadLibrary(name+'.so')
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libunrar.so: cannot open shared object file: No such file or directory

-----------------------------------------------------
I am unable to convert CBRs to any format? :(

kovidgoyal
02-14-2010, 11:08 PM
Your system is missing libunrar

ThomasMcKean
02-14-2010, 11:25 PM
Your system is missing libunrar

Yes. I have the file. libunrar.so

But the system is not allowing me to add it to the folder. What is the TERMINAL SUDO command to copy the file?

ThomasMcKean
02-15-2010, 12:03 AM
I have the libunrar.so file, I got it into the proper folder (that took some work), and now I *still* can't convert because the file is the wrong ELF class! ARGH!

ThomasMcKean
02-15-2010, 12:43 AM
I was running 0.6.13 and I upgraded to 0.6.40 and I thought that might have solved the problem? The conversion took a very long time and when I went to view the PDF file, it was 29 blank pages.

I guess I am closer. But what am I doing wrong now? *Blink*

kovidgoyal
02-15-2010, 01:00 AM
IIRC, PDF output doesn't support comics, though user_none would have to confirm that

ThomasMcKean
02-15-2010, 02:42 AM
IIRC, PDF output doesn't support comics, though user_none would have to confirm that

*I* can confirm it. I tried converting to epub and it worked fine. :) Thanks for a great program.

user_none
02-15-2010, 08:40 AM
IIRC, PDF output doesn't support comics, though user_none would have to confirm that

PDF output is supposed to have full support for comics. If it's not working then it is a bug and must have broken somewhere along the way.

@ThomasMcKean, open a ticket and attach a CBR that you know does not work correctly so I can see why and fix it.

clauderouges
02-21-2011, 04:49 PM
I've got the same problem. Calibre can't convert CBR books, neither using PDF as an output format, nor with EPUB or MOBI. I downloaded libunrar.so and placed it in usr/lib/. Any ideas?

user_none
02-21-2011, 04:51 PM
Any ideas?

Can't help without the error message. If you're getting a popup dialog click the copy button. If it's just failing open the Job window (bottom right click Jobs), Select the job and click show details.

clauderouges
02-23-2011, 10:12 AM
Oops... sorry. Here's the mesage:

Convert book 1 of 1 (The Fountain)
Resolved conversion options
calibre version: 0.7.46
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'left',
'chapter': None,
'chapter_mark': u'pagebreak',
'colors': 256,
'comic_image_size': None,
'comments': None,
'cover': '/tmp/calibre_0.7.46_tmp_oVSJEK/calibre_0.7.46_Lven0c.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'despeckle': False,
'disable_font_rescaling': True,
'disable_trim': False,
'dont_grayscale': False,
'dont_normalize': False,
'dont_sharpen': False,
'enable_heuristics': False,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.40000000000000002,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0xafb640c>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_aspect_ratio': False,
'keep_ligatures': False,
'landscape': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 0,
'margin_left': 0,
'margin_right': 0,
'margin_top': 0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'no_process': False,
'no_sort': False,
'orientation': u'portrait',
'output_format': u'png',
'output_profile': <calibre.customize.profiles.KindleDXOutput object at 0xafb6f4c>,
'page_breaks_before': None,
'paper_size': u'letter',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre_0.7.46_tmp_oVSJEK/calibre_0.7.46_W3o2j9.opf',
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'right2left': False,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unit': 'inch',
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2,
'wide': False}
InputFormatPlugin: Comic Input running
on /home/claude/Documenti/Letture/eBook/Darren Aronofsky/The Fountain (17)/The Fountain - Darren Aronofsky.cbr
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 110, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
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/comic/input.py", line 410, in convert
pages = self.get_pages(fname, cdir)
File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 359, in get_pages
tdir = extract_comic(comic)
File "/usr/lib/calibre/calibre/ebooks/comic/input.py", line 24, in extract_comic
extract(path_to_comic_file, tdir)
File "/usr/lib/calibre/calibre/__init__.py", line 187, in extract
from calibre.libunrar import extract as rarextract
File "/usr/lib/calibre/calibre/libunrar.py", line 34, in <module>
_libunrar = load_library(_librar_name, cdll)
File "/usr/lib/calibre/calibre/__init__.py", line 171, in load_library
return cdll.LoadLibrary(name+'.so')
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libunrar.so: classe ELF errata: ELFCLASS64

Thanks

kovidgoyal
02-23-2011, 10:16 AM
You're using a 64bit version of libunrar.so on a 32 bit system

clauderouges
02-24-2011, 04:49 PM
Grazie. Sei un genio!