Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2010, 04:49 PM   #1
kinder232
Junior Member
kinder232 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: iphone
Problem Converting prc to epub and fetching news

Hi!I have been using calibre for only a few days and it is awesome but I can't convert any files it shows this message:

Code:
ERROR: Error de conversión: <b>Fallo</b>: Convertir el libro 1 de 1 (Fitzgerald F. Scott - El Gran Gatsby)

Convertir el libro 1 de 1 (Fitzgerald F. Scott - El Gran Gatsby)
Resolved conversion options
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': 'c:\\docume~1\\administrador\\configuraci�ocal\\temp\\calibre_0.6.44_7jq5rq.jpeg',
 'debug_pipeline': None,
 'disable_font_rescaling': False,
 'dont_justify': False,
 'dont_split_on_page_breaks': False,
 'extra_css': None,
 'extract_to': None,
 'flow_size': 260,
 'font_size_mapping': None,
 'footer_regex': u'(?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': u'(?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 0x04EE78D0>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': 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_default_epub_cover': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x04EE7A90>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'c:\\docume~1\\administrador\\configuraci�ocal\\temp\\calibre_0.6.44_3qduxd.opf',
 '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,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Documents and Settings\Administrador\Biblioteca de calibre\Saramago_ Jose\Fitzgerald F. Scott - El Gran Gatsby (12)\Fitzgerald F. Scott - El Gran Gatsby - Saramago_ Jose.prc
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
File does not have opening <html> tag
Converting style information to CSS...
C:\pf\Calibre\Lib\site-packages\calibre\ebooks\metadata\opf2.py:85: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
C:\pf\Calibre\Lib\ntpath.py:490: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Creating OPF...
Parsing all content...
Python function terminated unexpectedly
  ('utf8', 'c:\\docume~1\\administrador\\configuraci\xf3n local\\temp\\calibre_0.6.44_o94pul_plumber\\Fitzgerald_F-El_Gran_Gatsby.opf', 37, 41, 'invalid data') (Error Code: 1)
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\utils\ipc\worker.py", line 99, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 796, in run
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 923, in create_oebbook
  File "site-packages\calibre\ebooks\oeb\reader.py", line 69, in __call__
  File "site-packages\calibre\ebooks\oeb\base.py", line 403, in __init__
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data

Fetching news also shows this message:
Quote:
ERROR: Error de conversión: <b>Fallo</b>: Obtener noticias de The Onion

Obtener noticias de The Onion
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0,
'book_producer': None,
'chapter': None,
'chapter_mark': 'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_download_recipe': False,
'dont_justify': 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 0x04EE5870>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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 0x04EE5A30>,
'page_breaks_before': None,
'password': None,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'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': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'username': None,
'verbose': 2}
InputFormatPlugin: Recipe Input running
Skipping article Hulking Strongman Now Only Voice Of Reason In Republican Party as it is too old
Skipping article Sports: Wrestling Fan's Comments Alternate Between Admitting It's Fake, Forgetting It's Fake as it is too old
Skipping article [audio] Money Storm Hits Palm Springs as it is too old
Skipping article Autistic Child Ruins Marriage He Was Born To Save as it is too old
Skipping article Sports: Area Man Wonders What Gisele Bundchen And Tom Brady Talk About (vie, 05 mar, 2010 13:00) from feed Daily as it is too old.
Skipping article 'I'm Kinda Getting The Hang Of Filling Tori Spelling Up With Babies,' We Chat With Dean McDermott (vie, 05 mar, 2010 09:51) from feed Daily as it is too old.
Skipping article Soda Tax Suggested In California (vie, 05 mar, 2010 08:27) from feed Daily as it is too old.
Skipping article Sports: John Wooden, 99, Found DeaNever Mind, False Alarm (vie, 05 mar, 2010 08:27) from feed Daily as it is too old.
Skipping article Sports: Disabled Athlete Likes It When Opponents Go Easy On Him (vie, 05 mar, 2010 08:00) from feed Daily as it is too old.
Skipping article [audio] Gay Gene Isolated, Ostracized (jue, 04 mar, 2010 19:24) from feed Daily as it is too old.
Skipping article In Focus: Mr. Special Foreign Man Won't Read Anything Not Written In His Own Language (jue, 04 mar, 2010 11:24) from feed Daily as it is too old.
Skipping article I've Got The Fever For The Flavor Of The Oscars! (by Jackie Harvey) (jue, 04 mar, 2010 10:00) from feed Daily as it is too old.
Skipping article [video] How Will The End Of Print Journalism Affect Old Loons Who Hoard Newspapers? (jue, 04 mar, 2010 10:00) from feed Daily as it is too old.
Skipping article Once Mighty Super Bowl Commercial Now Sad, Pathetic 'Price Is Right' Commercial (jue, 04 mar, 2010 09:00) from feed Daily as it is too old.
Skipping article Chile Quake Shifted Earth's Axis (jue, 04 mar, 2010 08:30) from feed Daily as it is too old.
Skipping article Houseguest Just Going To Lie There Until Rest Of House Wakes Up (jue, 04 mar, 2010 08:00) from feed Daily as it is too old.
Skipping article [video] Congressman's Son Won't Shut The Hell Up During Hearing as it is too old
Skipping article What Are We Doing With Our Oscars? as it is too old
Skipping article Academy Awards Highlights as it is too old
Skipping article Sports: Wrestling Fan's Comments Alternate Between Admitting It's Fake, Forgetting It's Fake as it is too old
Skipping article Sports: Area Man Wonders What Gisele Bundchen And Tom Brady Talk About (vie, 05 mar, 2010 13:00) from feed Sports as it is too old.
Skipping article Sports: On Spring Training (vie, 05 mar, 2010 08:31) from feed Sports as it is too old.
Skipping article Sports: Failed ESPN Shows (vie, 05 mar, 2010 08:20) from feed Sports as it is too old.
Skipping article Sports: Disabled Athlete Likes It When Opponents Go Easy On Him (vie, 05 mar, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: Ski Jumper Has To Work On His Soaring as it is too old
Skipping article Sports: Hitting Coach Lets Out Long, Melancholy Sigh Before Working With Pitchers On Bunting (mar, 02 mar, 2010 09:21) from feed Sports as it is too old.
Skipping article Sports: Kevin Durant High-Dribbler In Win With 186 Bounces (lun, 01 mar, 2010 09:20) from feed Sports as it is too old.
Skipping article Sports: Olympic Athletes Hoping To Exchange Bent-Up Medals For Normal Ones as it is too old
Skipping article Sports: Bar Thinks They Have Curling Figured Out (vie, 26 feb, 2010 13:00) from feed Sports as it is too old.
Skipping article Sports: On LaDainian Tomlinson Leaving The Chargers (vie, 26 feb, 2010 08:32) from feed Sports as it is too old.
Skipping article Sports: Highlights From The 2010 Winter Olympics (vie, 26 feb, 2010 08:24) from feed Sports as it is too old.
Skipping article Sports: Senator Dikembe Mutombo Blocks Record Amount Of Legislation (vie, 26 feb, 2010 08:03) from feed Sports as it is too old.
Skipping article Sports: Sentimental Pitchers And Catchers Fulfill Promise Of Meeting In Exact Same Spot One Year Later as it is too old
Skipping article Sports: Local Snowplow Guy Ruins Winter Olympics (mar, 23 feb, 2010 09:16) from feed Sports as it is too old.
Skipping article Sports: Tiger Woods Announces Return To Sex (vie, 19 feb, 2010 10:00) from feed Sports as it is too old.
Skipping article Sports: NBA's Biggest-Ever Trade Deadline Deals (vie, 19 feb, 2010 08:05) from feed Sports as it is too old.
Skipping article Sports: On Canada's First Gold Medal As An Olympic Host (vie, 19 feb, 2010 08:01) from feed Sports as it is too old.
Skipping article Sports: International Olympic Medal Incentives (vie, 12 feb, 2010 08:02) from feed Sports as it is too old.
Skipping article Sports: SnĂkĂathlletes To Watch (vie, 12 feb, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: On the Warm Weather at the Olympics (vie, 12 feb, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: On The Slumping Celtics (vie, 05 feb, 2010 08:30) from feed Sports as it is too old.
Skipping article Sports: Thoughtful Nation Questioning Whether Anyone Can Really 'Win' The Super Bowl (vie, 05 feb, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: Saints, Colts Hoping To Resolve Super Bowl Through Diplomacy (vie, 29 ene, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: Shaq Misses Entire Second Half With Pulled Pork Sandwich (vie, 22 ene, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: Mark McGwire Admits It Was Really Fucking Fun Hitting Baseballs So Far (vie, 15 ene, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: Everyone At Hospital Already Hates Wes Welker (vie, 08 ene, 2010 08:00) from feed Sports as it is too old.
Skipping article Sports: New Harlem Globetrotter Rudy 'Rude Dude' Williams Not Working Out (vie, 11 dic, 2009 08:00) from feed Sports as it is too old.
Skipping article Sports: Investigators Still Piecing Together Weird-Ass Clues In Fucked-Up Tiger Woods Crash (vie, 04 dic, 2009 08:00) from feed Sports as it is too old.
Synthesizing mastheadImage
Downloading
DownloadingDownloading

Downloading
FetchingDownloading
http://www.theonion.com/content/node...nion_rss_daily
FetchingFetchingFetching http://www.theonion.com/content/news...nion_rss_daily


Fetching http://www.theonion.com/content/amvo...nion_rss_daily
Processing images...
Fetching http://www.theonion.com/content/file...Discover_0.jpg
Recursion limit reached. Skipping links in http://www.theonion.com/content/news...nion_rss_daily
C:\pf\Calibre\Lib\ntpath.py:490: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Downloading
Fetching http://www.theonion.com/content/news...nion_rss_daily
Failed to download article: Slideshow: The Week In Review from http://www.theonion.com/content/news...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Processing images...
Fetching http://www.theonion.com/content/file...icle_large.jpg
Processing images...
Fetching http://www.theonion.com/content/them...terminator.gif
Processing images...
Recursion limit reached. Skipping links in http://www.theonion.com/content/news...nion_rss_daily
Fetching http://www.theonion.com/content/file...-R.article.jpg
Processing images...
Recursion limit reached. Skipping links in http://www.theonion.com/content/news...nion_rss_daily
Fetching http://www.theonion.com/content/file...o5.article.jpg
Downloading
Fetching http://www.theonion.com/content/news...ion_sports_rss
Fetching http://www.theonion.com/content/file...o4.article.jpg
Failed to download article: Out-Of-Control Group Yields Little Usable Data from http://www.theonion.com/content/news...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Fetching http://www.theonion.com/content/file...p-.article.jpg
Failed to download article: Sports: Uh-Oh, Annoying Coworker Going To Tell You Why IndyCar Racing Completely Different From NASCAR from http://www.theonion.com/content/news...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Processing images...
Fetching http://www.theonion.com/content/file...icle_large.jpg
Fetching http://www.theonion.com/content/file...o3.article.jpg
Recursion limit reached. Skipping links in http://www.theonion.com/content/node...nion_rss_daily
Recursion limit reached. Skipping links in http://www.theonion.com/content/amvo...nion_rss_daily
Failed to download article: In Focus: National Organization For Women Turns 39 Again from http://www.theonion.com/content/node...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Recursion limit reached. Skipping links in http://www.theonion.com/content/news...nion_rss_daily
Failed to download article: Girl Welcomed To Womanhood With 4-Page Pamphlet from http://www.theonion.com/content/news...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Failed to download article: 20% Of Teens Have High Cholesterol from http://www.theonion.com/content/amvo...nion_rss_daily
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



Processing images...
Recursion limit reached. Skipping links in http://www.theonion.com/content/news...ion_sports_rss
Failed to download article: Sports: Uh-Oh, Annoying Coworker Going To Tell You Why IndyCar Racing Completely Different From NASCAR from http://www.theonion.com/content/news...ion_sports_rss
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 730, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 724, in _fetch_article
File "site-packages\calibre\web\fetch\simple.py", line 227, in start_fetch
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data



C:\pf\Calibre\Lib\site-packages\calibre\ebooks\metadata\opf2.py:85: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Python function terminated unexpectedly
('utf8', 'c:\\docume~1\\administrador\\configuraci\xf3n local\\temp\\calibre_0.6.44_b4vjqb_plumber\\index. html', 37, 41, 'invalid data') (Error Code: 1)
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\utils\ipc\worker.py", line 99, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 787, in run
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\web\feeds\input.py", line 103, in convert
File "site-packages\calibre\web\feeds\news.py", line 632, in download
File "site-packages\calibre\web\feeds\news.py", line 854, in build_index
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37-40: invalid data
Any help would be much appreciated. Thanks in advance.
kinder232 is offline   Reply With Quote
Old 03-08-2010, 04:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,336
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Probably caused by having non ascii characters in the path to the temp directory.

Try setting the environment variable TMPDIR to some directory whose path contains only english characters.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-11-2010, 03:18 AM   #3
kinder232
Junior Member
kinder232 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: iphone
Thank you for your quick reply, I changed those settings and it's working perfectly. Great Work with this Software. Thanks again.
kinder232 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC disappears when converting from .prc to epub baselworld Calibre 3 09-06-2010 02:10 AM
Error converting to PDF from EPub and PRC gauravj Calibre 3 05-24-2010 02:07 AM
Help converting .prc to epub yessirrom Calibre 4 01-19-2010 04:57 PM
Converting prc -> epub takes 10 hours... jayle Calibre 9 09-22-2009 03:34 PM


All times are GMT -4. The time now is 09:57 AM.


MobileRead.com is a privately owned, operated and funded community.