06-17-2017, 09:18 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2017
Device: Kindle Voyage
|
GUI works, command line fails
Hi,
I have been successfully using the GUI version of Calibre on my windows computer and am able to download the Wall Street Journal as well as other newspapers daily. Works great, however I'd like to move it to my linux NAS that is on all the time. Every newspaper downloads correctly using the ebook-convert command line utility except the Wall Street Journal. I'm only using the built-in recipes... nothing custom. I have tried troubleshooting but I just can't seem to find the issue. Any assistance you can provide would be appreciated! This error occurred with 64-bit versions 2.85.1 and 3.0.0. Command: Code:
/opt/calibre/ebook-convert "The Wall Street Journal.recipe" /srv/dev-disk-by-label-Share4/calibre-downloads/wsj.azw3 --username="blah@gmail.com" --password "123" --output-profile kindle_voyage Code:
Conversion options changed from defaults: output_profile: u'kindle_voyage' verbose: 2 test: None Resolved conversion options calibre version: 3.0.0 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0, 'book_producer': None, 'change_justification': 'original', 'chapter': None, 'chapter_mark': 'pagebreak', 'comments': None, 'cover': None, 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_compress': False, 'dont_download_recipe': False, 'duplicate_links_in_toc': False, 'embed_all_fonts': False, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': None, 'fix_indents': True, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x7f487564ea10>, 'insert_blank_line': False, 'insert_blank_line_size': 0.5, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, 'keep_ligatures': False, 'language': None, 'level1_toc': None, 'level2_toc': None, 'level3_toc': None, 'line_height': 0, 'linearize_tables': False, 'lrf': False, 'margin_bottom': 5.0, 'margin_left': 5.0, 'margin_right': 5.0, 'margin_top': 5.0, 'markup_chapter_headings': True, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_toc_at_start': False, 'no_chapters_in_toc': False, 'no_inline_navbars': False, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleVoyageOutput object at 0x7f4875659250>, 'page_breaks_before': None, 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': None, 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': '', 'search_replace': None, 'series': None, 'series_index': None, 'share_not_sync': False, 'smarten_punctuation': False, 'sr1_replace': '', 'sr1_search': '', 'sr2_replace': '', 'sr2_search': '', 'sr3_replace': '', 'sr3_search': '', 'start_reading_at': None, 'subset_embedded_fonts': False, 'tags': None, 'test': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'transform_css_rules': None, 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} 1% Converting input to HTML... InputFormatPlugin: Recipe Input running Trying to get latest version of recipe: wsj Using downloaded builtin recipe Traceback (most recent call last): File "site.py", line 77, in main File "site-packages/calibre/ebooks/conversion/cli.py", line 391, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 1088, in run File "site-packages/calibre/customize/conversion.py", line 245, in __call__ File "site-packages/calibre/ebooks/conversion/plugins/recipe_input.py", line 118, in convert File "site-packages/calibre/web/feeds/news.py", line 904, in __init__ File "<string>", line 124, in get_browser File "site-packages/mechanize/_mechanize.py", line 254, in open File "site-packages/mechanize/_mechanize.py", line 310, in _mech_open httperror_seek_wrapper: HTTP Error 412: Precondition Failed Last edited by endo32; 06-17-2017 at 09:39 PM. |
06-17-2017, 10:05 PM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The GUI and the command line use exactly the same code to download recipes. In fact the GUI runs a background worker process to do the actual download. You are specifying the username and password correctly? If they have special characters remember to enclose them in quotes.
|
Tags |
command line, ebook-convert, http error 412, precondition failed |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
search question gui vs command line | keyser666 | Calibre | 1 | 04-21-2017 11:20 AM |
Problem converting with GUI vs command line | kelemvor | Conversion | 13 | 04-07-2016 04:04 PM |
command line vs gui db update discrepancy -maybe? | riksaga | Calibre | 1 | 03-21-2013 11:22 PM |
Calibre Server runs on command line, fails in GUI | gregoryx | Calibre | 0 | 08-21-2011 06:14 PM |
command line vs GUI (PDF->MOBI for K2) | tlc | Calibre | 12 | 02-24-2009 06:20 PM |