View Single Post
Old 12-04-2019, 01:25 PM   #1
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,145
Karma: 5005503
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Conversion Fail Due to Emojis?

I've seen this a few times before, but it's happened to me twice this morning:

Conversion from EPUB to AZW3 fails due to a single emoji character in the EPUB. It doesn't effect viewing, editing, exploding, polishing, etc--only converting as far as I can tell.

In both cases, I get the same final error:

ValueError: unichr() arg not in range(0x10000) (narrow Python build)

I've narrowed it down specifically to these snippets:

<img alt="🙀" ...>

<img alt="😅" ...>

Removing the emoji character in the alt attr allows conversion to work. And the error is the same even though the emojis are different. I'm running 64bit Calibre in debug mode on Windows 10.

(Possibly related, I've also been occasionally seeing Calibre silently stop and close without any error message. I've seen it happen when calling auto-convert from FanFicFare plugin and once today when hitting the 'e' key to edit metadata. Only since v4 came out.)

Attached are 2 epubs showing the problem and the conversion logs I get when they fail.

Any help would be appreciated, thanks.
JimmXinu is offline   Reply With Quote