Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2008, 02:39 AM   #1
jessie102
Addict
jessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animalsjessie102 is kind to children and small, furry animals
 
Posts: 234
Karma: 6720
Join Date: Aug 2008
Device: SONY PRS505
Post Conversion from Mobi to LRF error

I was attempting to convert FeedBook's Engadget 瘾科技 (http://www.feedbooks.com/feed/108) in MOBI format into LRF with embedded fonts and yield the following error:

Code:
('UnicodeEncodeError', u"'ascii' codec can't encode characters in position 4-15: ordinal not in range(128)"):
Traceback:
Traceback (most recent call last):
  File "parallel.py", line 760, in worker
  File "parallel.py", line 729, in work
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 167, in main
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 137, in process_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 28, in process_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 17, in generate_html
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\reader.py", line 187, in extract_content
  File "calibre\ebooks\BeautifulSoup.pyo", line 1432, in __init__
  File "calibre\ebooks\BeautifulSoup.pyo", line 1055, in __init__
  File "calibre\ebooks\BeautifulSoup.pyo", line 1094, in _feed
  File "calibre\ebooks\sgmllib.pyo", line 99, in feed
  File "calibre\ebooks\sgmllib.pyo", line 138, in goahead
  File "calibre\ebooks\sgmllib.pyo", line 315, in parse_endtag
  File "calibre\ebooks\sgmllib.pyo", line 353, in finish_endtag
UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-15: ordinal not in range(128)
Log:

Next tried converting Feedbook's MOBI format of Damn Interesting from ( http://www.feedbooks.com/feed/213 )
And yield the following error.

Code:
('TypeError', u'access() argument 1 must be (encoded string without NULL bytes), not str'):
Traceback:
Traceback (most recent call last):
  File "parallel.py", line 760, in worker
  File "parallel.py", line 729, in work
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 167, in main
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 137, in process_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 34, in process_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1909, in process_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 273, in __init__
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 395, in add_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 509, in parse_file
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1761, in parse_tag
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1761, in parse_tag
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
  File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1477, in parse_tag
TypeError: access() argument 1 must be (encoded string without NULL bytes), not str
Log:
[INFO] __init__.pyo:644: Processing 'c:\\docume~1\\user\\locals~1\\temp\\calibrephvicdmobi2lrf\\Damn_Interesting_8-16.html'
[INFO] __init__.pyo:644: 	Parsing HTML...
[INFO] __init__.pyo:644: Written preprocessed HTML to c:\docume~1\user\locals~1\temp\html2lrf-verbose.html
[INFO] __init__.pyo:644: 	Converting to BBeB...

Am I doing something wrong?

I require MOBI because PDF and EPUB feedbooks don't display unicode properly on my PC or PRS.

Environment:
MS Windows XP SP2
Calibre 0.4.83

Last edited by jessie102; 08-16-2008 at 11:58 AM. Reason: added "and EPUB"
jessie102 is offline   Reply With Quote
Old 08-16-2008, 03:57 AM   #2
Madam Broshkina
Manic Do Fuse
Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.
 
Madam Broshkina's Avatar
 
Posts: 2,312
Karma: 3325462
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
I got the same error with MOBI format of Damn Interesting but then I tried the epub version and Calibre converted it with no problems.
Madam Broshkina is offline   Reply With Quote
Advert
Old 08-16-2008, 12:00 PM   #3
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,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm shouldn't be happening, open a ticket and I'll look into it when I get time.
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion error [PDF >> MOBI] OMEN Calibre 3 09-27-2010 12:02 PM
How can I cure this error in mobi to epub conversion? Patricia1066 Calibre 1 03-17-2010 06:56 AM
MOBI to LRF: Conversion troubles with Calibre alaouet Calibre 11 02-10-2010 06:27 AM
Conversion Error lrf -> mobi/epub (Calibre 0.6.33) Joerg_Mosthaf Calibre 2 01-13-2010 07:40 AM
TOC no longer works after Mobi -> LRF conversion... rroberrto Calibre 3 07-07-2009 01:22 AM


All times are GMT -4. The time now is 11:56 PM.


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