01-13-2017, 11:44 AM | #196 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Yes, it's in all epubs that I have tried now. Strange is that on my other computer with the same specs (Windows 10, 32 bit, Calibre V. 2.77) it works fine. I didn't change anything at the plugin settings.
|
01-13-2017, 03:09 PM | #197 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Leonatus - JSWolf had some sort of problem with 2.77 & Kepub (which he edited out) - apparently it was resolved by doing a Windows restart
The thread's been deleted by one the greenies because it was a "false alarm", a better practice might be to close the thread and leave a message why so. BR Last edited by BetterRed; 01-13-2017 at 03:24 PM. |
Advert | |
|
01-13-2017, 05:26 PM | #198 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
01-13-2017, 05:27 PM | #199 |
Resident Curmudgeon
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Have you rebooted the computer since installing Calibre 2.77? That's what solved my problem. Oh and after rebooting the computer, I also cleaned out the temp directory.
|
01-14-2017, 02:29 AM | #200 | |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
As I said above, the problems occurs to all books (obviously) in the library, might they have resided there for years ore been added recently, edited or not. |
|
Advert | |
|
01-14-2017, 03:23 AM | #201 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And yes, cleaning the temporary directory can be as simple as deleting everything in it. But, you won't be able to delete anything being used by a running application. Windows does have a way to do this. I think it is part of the disk cleanup tool. Quote:
|
||
01-14-2017, 08:29 AM | #202 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Are you able to convert an ePub to any other format, like AZW3 or MOBI?
|
01-14-2017, 09:41 AM | #203 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@Davidfor: I doubt that the path to the temporary Directory is the culprit, for all the time, Things were alright, and
@jgoguen: conversion epub to epub, epub to azw3, epub to moby, all work fine. Rebooting the computer did not solve the problem. |
01-14-2017, 09:51 AM | #204 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@Davidfor: but you're right, my user name Directory contains non-ASCII-characters. I only doubt if I can simply rename it, without causing system problems. Right-clicking on the Directory Name Shows no Option for renaming. I don't even know whére resides the CALIBRE_TEMP_DIR. In the Directory, I didn't find it. Could you give me a hint, please?
|
01-14-2017, 10:14 AM | #205 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Restart calibre in debug mode, try to convert a book to KePub, then close calibre. That will display the debug log. Upload both the debug log and the book you tried to convert at https://www.dropbox.com/request/g0Q3WAW4jIcCYgkTFBt2 as separate files (don't make a ZIP or other archive, upload the two files separately).
|
01-14-2017, 10:35 AM | #206 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Done. I uploaded the error protocol as well.
Sorry, the first debug protocol is not the right one. The second that I uploaded referrs to conversion. Last edited by Leonatus; 01-14-2017 at 10:38 AM. |
01-14-2017, 10:53 AM | #207 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I just connected the Kobo to the computer to download the News I usually receive via Calibre, but today the same error as at kepub conversion is shown. Would it be worth while de- and reinstalling Calibre?
The error Code referrs to the Kobo Touch Extended Driver: Code:
calibre, version 2.77.0 FEHLER: Fehler: Fehler bei der Kommunikation mit dem Gerät Fehler beim Einfügen 'kath.net [Sa, 14 Jan 2017]' von 'calibre' mit Fehler: 'All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters' (file: calibre_plugins.kobotouch_extended.container, line: 178) Traceback (most recent call last): File "site-packages\calibre\gui2\device.py", line 88, in run File "site-packages\calibre\gui2\device.py", line 587, in _upload_books File "calibre_plugins.kobotouch_extended.device.driver", line 335, in upload_books File "site-packages\calibre\devices\kobo\driver.py", line 1950, in upload_books File "calibre_plugins.kobotouch_extended.device.driver", line 245, in _modify_epub InvalidEPub: Fehler beim Einfügen 'kath.net [Sa, 14 Jan 2017]' von 'calibre' mit Fehler: 'All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters' (file: calibre_plugins.kobotouch_extended.container, line: 178) Last edited by Leonatus; 01-14-2017 at 11:03 AM. |
01-14-2017, 08:04 PM | #208 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
To test if this is the temporary directory, open a command prompt and do the following: Code:
SET CALIBRE_TEMP_DIR=C:\TEMP calibre-debug -g |
|
01-14-2017, 11:33 PM | #209 |
Generally Awesome Person
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
I'm not sure if it's the temporary directory since it's doing other write operations on files before it fails. Unfortunately, this looks to be Windows-specific (and possibly even 32-bit Windows-specific); on macOS 10.12.2 with calibre 2.77.0 the book I got converts perfectly fine.
I did see some older mailing list posts suggesting that lxml will break if you have anything other than Unicode or ASCII characters, and the file that's being referenced in the error you sent me has 0xfeff as the last (invisible) character on line 12. That character used to be a zero-width non-breaking space, but its use in that context is deprecated (use 0x2060 instead) and is currently standardised as the byte order marker which should only appear as the very first character in a file if it's present at all. Since this is specific to Windows, there's not going to be much I can do. I can offer suggestions, and based on what you tell me I may be able to come up with something that works, but I can't promise anything. To start with, use calibre to edit the book (right-click, choose "Edit Book"), open the file "@public@vhost@g@gutenberg@html@files@14105@14 105-0-0.txt_split_000.html", and remove the last character on line 12; if you look at the bottom right you should see it say "ZERO WIDTH NO-BREAK SPACE : Line: 12 : 78". Backspace once, it should look like nothing changes but the bottom right should change. Save the book, try to convert, it'll probably fail again but it should mention a different file right before the UnicodeWarning line. If that's what happens, I may be able to work around it but it will be some additional pre-processing of each file. If that doesn't work, I guess it's back to the drawing board to figure out what to try next. |
01-15-2017, 01:06 AM | #210 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jgoguen You can use
calibre.utils.cleantext.clean_xml_chars to ensure that lxml does not choke on input. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
catalogue builder output columns are not in the same order in the output | KWhytte | Library Management | 5 | 12-04-2012 02:03 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
Plugin which uses net as input and output | medve | Development | 0 | 12-04-2011 03:20 PM |
Creat new Output plugin (LaTeX and/or txt2tags) | Lebewesen | Development | 3 | 11-22-2011 11:10 AM |
AZW Conversion Output Plugin | tylau0 | Plugins | 59 | 08-14-2011 10:36 PM |