03-05-2009, 07:12 PM | #1 |
Connoisseur
Posts: 99
Karma: 14
Join Date: Jun 2008
Location: Brisbane Australia
Device: iPod Touch, Ipad, Kindle 2
|
Can anyone tell me what this error is
When converting a Book from epub to mobi most seem to go ok, but a few seem to hang up and sit till I stop the job.
one error that seems to crop up is the following [ERROR] Property: Invalid value for "CSS Level 2.1" property: line-height: pt Anyone know what I need to do to rectify it. |
03-06-2009, 02:54 AM | #2 | |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
Advert | |
|
03-06-2009, 08:56 AM | #3 |
Provocateur
Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
I just ran into the same problem with a recently-downloaded 1633 Baen LIT file. The file failed to convert to MOBI:
Job: Convert book: 1633 **tuple**: ('TypeError', u'Argument must be string or unicode.') **Traceback**: Traceback (most recent call last): File "parallel.py", line 957, in worker File "parallel.py", line 915, in work File "calibre\ebooks\mobi\from_any.pyo", line 56, in any2mobi File "calibre\ebooks\mobi\writer.pyo", line 618, in oeb2mobi File "calibre\ebooks\mobi\mobiml.pyo", line 92, in transform File "calibre\ebooks\mobi\mobiml.pyo", line 114, in mobimlize_spine File "calibre\ebooks\mobi\mobiml.pyo", line 364, in mobimlize_elem File "calibre\ebooks\mobi\mobiml.pyo", line 362, in mobimlize_elem File "calibre\ebooks\mobi\mobiml.pyo", line 191, in mobimlize_content File "lxml.etree.pyx", line 1854, in lxml.etree._Attrib.__setitem__ (src/lxml/lxml.etree.c:18756) File "apihelpers.pxi", line 416, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:31554) File "apihelpers.pxi", line 1144, in lxml.etree._utf8 (src/lxml/lxml.etree.c:37061) TypeError: Argument must be string or unicode. Exploding LIT file: c:\docume~1\owner\locals~1\temp\calibre_0.4.142_sn xnti.lit Creating EPUB file... [DEBUG] Processing HTMLFile:0:a:c:\docume~1\owner\locals~1\temp\calib re_0.4.142_8khyzt_any2epub2\0743435427__p_.htm... [INFO] Parsing temp\calibre_0.4.142_8khyzt_any2epub2\0743435427__ p_.htm [INFO] Detected chapter: Part I That is no country for old men [INFO] Detected chapter: Chapter 1 [INFO] Detected chapter: Chapter 2 [INFO] Detected chapter: Chapter 3 [INFO] Detected chapter: Chapter 4 [INFO] Detected chapter: Chapter 5 [INFO] Detected chapter: Chapter 6 [INFO] Detected chapter: Chapter 7 [INFO] Detected chapter: Chapter 8 [INFO] Detected chapter: Chapter 9 [INFO] Detected chapter: Part II O sages standing [INFO] Detected chapter: Chapter 10 [INFO] Detected chapter: Chapter 11 [INFO] Detected chapter: Chapter 12 [INFO] Detected chapter: Chapter 13 [INFO] Detected chapter: Chapter 14 [INFO] Detected chapter: Chapter 15 [INFO] Detected chapter: Chapter 16 [INFO] Detected chapter: Chapter 17 [INFO] Detected chapter: Part III Those mackerel-crowded seas [INFO] Detected chapter: Chapter 18 [INFO] Detected chapter: Chapter 19 [INFO] Detected chapter: Chapter 20 [INFO] Detected chapter: Chapter 21 [INFO] Detected chapter: Chapter 22 [INFO] Detected chapter: Chapter 23 [INFO] Detected chapter: Chapter 24 [INFO] Detected chapter: Chapter 25 [INFO] Detected chapter: Part IV A tattered coat upon a stick [INFO] Detected chapter: Chapter 26 [INFO] Detected chapter: Chapter 27 [INFO] Detected chapter: Chapter 28 [INFO] Detected chapter: Chapter 29 [INFO] Detected chapter: Chapter 30 [INFO] Detected chapter: Chapter 31 [INFO] Detected chapter: Chapter 32 [INFO] Detected chapter: Part V The gold mosaic of a wall [INFO] Detected chapter: Chapter 33 [INFO] Detected chapter: Chapter 34 [INFO] Detected chapter: Chapter 35 [INFO] Detected chapter: Chapter 36 [INFO] Detected chapter: Chapter 37 [INFO] Detected chapter: Part VI Those dying generations [INFO] Detected chapter: Chapter 38 [INFO] Detected chapter: Chapter 39 [INFO] Detected chapter: Chapter 40 [INFO] Detected chapter: Chapter 41 [INFO] Detected chapter: Chapter 42 [INFO] Detected chapter: Chapter 43 [INFO] Detected chapter: Chapter 44 [INFO] Detected chapter: Chapter 45 [INFO] Detected chapter: Chapter 46 [INFO] Detected chapter: Chapter 47 [INFO] Detected chapter: Part VII In God's holy fire [INFO] Detected chapter: Chapter 48 [INFO] Detected chapter: Chapter 49 [INFO] Detected chapter: Chapter 50 [INFO] Detected chapter: Chapter 51 [INFO] Detected chapter: Chapter 52 [ERROR] Property: Invalid value for "CSS Level 2.1" property: text-align: 0 [DEBUG] Processing HTMLFile:0:a:c:\docume~1\owner\locals~1\temp\calib re_0.4.142_8khyzt_any2epub2\0743435427_top.htm... [INFO] Parsing temp\calibre_0.4.142_8khyzt_any2epub2\0743435427_t op.htm [DEBUG] Saving stylesheets... [INFO] Splitting 0743435427__p_.xhtml (1274 KB) [INFO] Splitting 0743435427_top.xhtml (4 KB) [INFO] Checking files for bad links... [INFO] Creating Mobipocket file from EPUB... [WARNING] File 'content/0743435427__p_.xhtml' missing <title/> element [INFO] Generating in-line TOC... [INFO] Applying case-transforming CSS... [ERROR] Property: Invalid value for "CSS Level 2.1" property: text-align: 0 [INFO] Flattening CSS and remapping font sizes... [INFO] Source base font size is 13.00000pt [INFO] Rasterizing SVG images... [ERROR] Property: Invalid value for "CSS Level 2.1" property: text-align: 0 [INFO] Trimming unused files from manifest... [INFO] Converting XHTML to Mobipocket markup... ('TypeError', u'Argument must be string or unicode.') Traceback (most recent call last): File "parallel.py", line 957, in worker File "parallel.py", line 915, in work File "calibre\ebooks\mobi\from_any.pyo", line 56, in any2mobi File "calibre\ebooks\mobi\writer.pyo", line 618, in oeb2mobi File "calibre\ebooks\mobi\mobiml.pyo", line 92, in transform File "calibre\ebooks\mobi\mobiml.pyo", line 114, in mobimlize_spine File "calibre\ebooks\mobi\mobiml.pyo", line 364, in mobimlize_elem File "calibre\ebooks\mobi\mobiml.pyo", line 362, in mobimlize_elem File "calibre\ebooks\mobi\mobiml.pyo", line 191, in mobimlize_content File "lxml.etree.pyx", line 1854, in lxml.etree._Attrib.__setitem__ (src/lxml/lxml.etree.c:18756) File "apihelpers.pxi", line 416, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:31554) File "apihelpers.pxi", line 1144, in lxml.etree._utf8 (src/lxml/lxml.etree.c:37061) TypeError: Argument must be string or unicode. |
03-06-2009, 09:02 AM | #4 |
Provocateur
Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
Filed ticket:
http://calibre.kovidgoyal.net/ticket/1995 |
03-16-2009, 06:45 PM | #5 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2009
Device: Kindle 1
|
Quote:
It may not be serious, but it's annoying and makes the conversions seem to take forever! Any idea how to set up the source rtf file so this doesn't happen? I'm converting from rtf to mobi format for my kindle. Thank you! Lisa |
|
Advert | |
|
03-16-2009, 08:08 PM | #6 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Save your rtf as html first and then convert it
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac | NewDay | ePub | 3 | 10-07-2010 01:47 PM |
Epub Fixer Error: "zip error: 15" | Gordo29 | Kobo Reader | 0 | 06-26-2010 01:57 PM |
ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 07:28 PM |
ver 0.6.3 error: Error communicating with device PRS-505 | scripo | Calibre | 4 | 08-01-2009 10:38 PM |
LED error codes and battery error | ThR | iRex | 2 | 04-08-2009 09:16 AM |