View Single Post
Old 09-04-2010, 04:14 PM   #2628
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by cynvision View Post
Everyone here has been so helpful with getting one of my recipes to work. However, I've taken a try at using the command line tester and in Windows I cannot get it to process.
The command line also isn't placing the output in the folder I request, it's rolling that out into my Windows docs on F:, but that could just be my inexpert use of the cmd window. What is bothering me is I sort of get the command line to run in cmd but it stops and says it's looking for the in-built recipe and fails to find it. I thought the point was there didn't have to be one there yet if I was using Notepad++ to edit??? So then the test quits.

Code:
ebook-convert F:\Program_Files\Calibre2\Bluffton_Today.recipe F:\Program_Files\Calibre2\blufftonoutput\ --test -vv > bluffton.txt
The recipe is over in the Calibre2 folder on F: but the output is creating a bluffton.txt over in F:\Documents_and_Settings\Cynthia_Clavey
And I've tried a few different variations. Maybe this is a Window's question more than a recipe question, but I have included the errors below from the txt file it generates. Maybe a Windows pro can set me straight? Thanks!
Spoiler:
Code:
Resolved conversion options
calibre version: 0.7.17
{'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,
 'disable_font_rescaling': False,
 'dont_download_recipe': False,
 'extra_css': None,
 'font_size_mapping': None,
 'footer_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'header_regex': '(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x03D42170>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 '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,
 'max_toc_links': 50,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x03D42350>,
 'page_breaks_before': None,
 'password': None,
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': None,
 'remove_first_image': False,
 'remove_footer': False,
 'remove_header': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'series': None,
 'series_index': None,
 'tags': None,
 'test': True,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'use_auto_toc': False,
 'username': None,
 'verbose': 2}
1% Converting input to HTML...
InputFormatPlugin: Recipe Input running
Failed to compile downloaded recipe. Falling back to builtin one
Traceback (most recent call last):
  File "site-packages\calibre\web\feeds\input.py", line 77, in convert
  File "site-packages\calibre\web\feeds\recipes\__init__.py", line 33, in compile_recipe
TypeError: 'NoneType' object is unsubscriptable

Python function terminated unexpectedly
  Failed to find builtin recipe: Bluffton_Today (Error Code: 1)
And this is the last spit out of the CMD window:
Code:
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\ebooks\conversion\cli.py", line 254, in main
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 815, in run
  File "site-packages\calibre\customize\conversion.py", line 211, in __call__
  File "site-packages\calibre\web\feeds\input.py", line 92, in convert
ValueError: Failed to find builtin recipe: Bluffton_Today
My first guess would be your not running cmd as administrator.. In windows you typically can no write to anything within the program files directory because you only have read access not write. So if you take and search for cmd and right click on it and hit run as administrator this should solve your issue.

p.s.
Also you might wanna run notepad++ as administrator. I had this issue when I was using geany. I would write a recipe and save it and all looked fine but then it never saved. And the reason being is you don't have access to that folder. Again you should be able to solve the issue like i stated. or you could simply move the files outside of the program files directory.

Last edited by TonytheBookworm; 09-04-2010 at 04:17 PM. Reason: added ps
TonytheBookworm is offline