|
|
Thread Tools | Search this Thread |
11-04-2011, 11:00 AM | #1 | |
Enthusiast
Posts: 28
Karma: 10
Join Date: May 2010
Device: Kindle
|
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL by
What does this mean? (error is at bottom) building an ePub from a collection of HTML documents.
Where does it think the NULL character is? Quote:
|
|
11-04-2011, 11:05 AM | #2 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Perhaps in one of the names of the HTML documents? It's hard to tell without looking at the source code.
|
Advert | |
|
11-04-2011, 11:38 AM | #3 |
Enthusiast
Posts: 28
Karma: 10
Join Date: May 2010
Device: Kindle
|
This is the command that invokes:
sudo ebook-convert tmp/temptoc.html zz_delivery/zimzaztest.epub (run without options to isolate errors) this is the directory it is running against rw-r--r-- 1 bitnami root 105892 2011-11-04 14:21 1.html -rw-r--r-- 1 bitnami root 318260 2011-11-04 14:21 2.html -rw-r--r-- 1 bitnami root 47016 2011-11-04 14:21 3.html -rw-r--r-- 1 bitnami root 204 2011-11-04 14:21 temptoc.html I did a little digging around and used od -b to convert these files to octal, then grep ' 000' to see if there are any null characters; nope. So I'm stumped. The full script is pretty long and doing a lot of stuff to gather the html files so I am trying to avoid posting it. |
11-04-2011, 11:43 AM | #4 | |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
11-04-2011, 12:01 PM | #5 |
Enthusiast
Posts: 28
Karma: 10
Join Date: May 2010
Device: Kindle
|
I substituted a new vanilla 1.html file for the 3 existing files and the build worked fine, so that probably wasn't the problem. The previous files are about Japanese aircraft carriers so it may have something to do with non-Unicode characters (just guessing). I am looking for a way to verify whether a file contains any non-Unicode characters.
|
Advert | |
|
11-04-2011, 12:38 PM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
From the traceback that looks like an outdated calibre version. I suggest updating to the latest, 0.8.24. Also on windows, calibre can occassionaly have trouble with files whose names contains non ascii characters, removing those characters usually resolves the issue.
Last edited by kovidgoyal; 11-04-2011 at 01:23 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
searhc:null? | cypherslock | Kobo Tablets | 0 | 11-03-2011 12:28 PM |
Fetch News failing (All strings must be XML compatible | nuveen | Recipes | 11 | 10-01-2011 12:01 PM |
Template error value:unknown field null | sfuller | Calibre | 4 | 06-13-2011 03:02 PM |
Help a beginner:Python/Recipe Unicode and ASCII | Starson17 | Calibre | 2 | 02-15-2010 11:10 AM |
Converting non-ascii/non-unicode text - pictures the way to go? | politicorific | Workshop | 5 | 04-02-2009 05:59 AM |