Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-04-2019, 12: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: 6,969
Karma: 4604635
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
Old 12-04-2019, 12:48 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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...452e3c0e51e018
kovidgoyal is online now   Reply With Quote
Advert
Old 12-04-2019, 01:02 PM   #3
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: 6,969
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
That did it.

JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre conversion fail all formats katzsis Conversion 4 05-19-2018 11:53 AM
kindle and emojis? Trigun Amazon Kindle 21 03-15-2018 08:27 PM
Errors due to format conversion - publisher's responsibility? avantman42 General Discussions 58 03-01-2012 02:42 AM
Conversion fail... TheCrazier Calibre 4 07-30-2010 05:24 PM
font rescaled due to conversion?? alexxxm Calibre 2 01-28-2010 05:45 AM


All times are GMT -4. The time now is 09:04 PM.


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