07-23-2017, 05:31 PM | #196 |
Guru
Posts: 614
Karma: 1164945
Join Date: Jan 2012
Location: SF Bay Area, California, USA
Device: iPhone 7+, iPad Mini4, Kindle Voyage
|
I tried to split an epub today and received the following error message:
calibre, version 3.3.0 ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'getElementsByTagName' calibre 3.3 embedded-python: True is64bit: False Windows-10-10.0.15063-SP0 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.15063') Python 2.7.12+ Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (6, 3, 2) && Kindle and Mobipocket DeDRM (0, 4, 18) && Ignoble Epub DeDRM (0, 2, 6) && Inept Epub DeDRM (0, 2, 1) && Inept PDF DeDRM (0, 1, 9) && eReader PDB 2 PML (0, 0, 8) && Modify ePub (1, 3, 13) && Barnes & Noble (1, 2, 14) && EpubMerge (2, 1, 1) && Reading List (1, 6, 6) && Find Duplicates (1, 6, 3) && Manage Series (1, 2, 8) && Overdrive Link (2, 15, 0) && Open With (1, 5, 10) && Count Pages (1, 8, 0) && Favourites Menu (1, 0, 4) && Search The Internet (1, 7, 6) && Quality Check (1, 9, 11) && View Manager (1, 4, 3) && EpubSplit (2, 2, 1) && Resize Cover (1, 0, 2) && Overdrive Link* (2, 15, 0) Traceback (most recent call last): File "calibre_plugins.epubsplit.epubsplit_plugin", line 137, in plugin_button File "calibre_plugins.epubsplit.epubsplit", line 624, in get_split_lines File "calibre_plugins.epubsplit.epubsplit", line 556, in get_toc_map AttributeError: 'NoneType' object has no attribute 'getElementsByTagName' I have no clue what this means. Any help greatly appreciated. |
07-25-2017, 10:21 AM | #197 | |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
The most likely cause is that the epub is malformed or incomplete. Usually a pass through Calibre's convert (epub->epub) will help. It's less likely but possible that it's a good epub with an unanticipated form. I'd have to see a copy of the epub to know. |
|
Advert | |
|
07-25-2017, 01:30 PM | #198 |
Guru
Posts: 614
Karma: 1164945
Join Date: Jan 2012
Location: SF Bay Area, California, USA
Device: iPhone 7+, iPad Mini4, Kindle Voyage
|
Thank you! Converting fixed the problem.
|
11-26-2017, 05:41 AM | #199 |
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Feature Request.
I've successfully using this tool to split omnibus that are bigger than the maximum Amazon personal documents size. I normally use to split at 50/50 size, but sometimes it is very difficult to accomplish it because the size of the content is not linear. For example, separating the Delphy Complete Works of H.G. Wells by the 50%/50% sections deals in 40/15MB file sizes. Even looking in the Calibre Book Viewer to locate 22K/22K pages does generate two big different sizes books. My request is if there can be an extra button that will find the nearest 50/50% section in physical size. Once selected that section, user can go up/down to find the novel that separates nearest to the center. I think this could be not much complex if the tool will measure each section size and if it contains images and add those images to the amount. Or even more, ask for a number of parts and then select those parts. |
11-26-2017, 07:54 AM | #200 |
Resident Curmudgeon
Posts: 77,280
Karma: 138625598
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Or you could just use a USB cable with Calibre to put these rather large eBooks on your Kindle.
|
Advert | |
|
11-26-2017, 10:18 AM | #201 |
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
|
11-26-2017, 10:32 PM | #202 |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@rfog,
EpubSplit is built around splitting on TOC entry boundaries. I'm not interested in trying to add code to make it split at arbitrary byte sizes. But I might be able to add code to show how many bytes will be included in the currently selected TOC sections. That's going to depend on how complex it is to get the size of sections that have to be split out from files (ie, aren't whole files themselves) and which images they include. |
11-27-2017, 04:19 AM | #203 | ||
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Quote:
Quote:
|
||
11-28-2017, 05:54 PM | #204 |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Doing it as a live-updating counter would be both difficult and inaccurate.
Instead, here's a test version that just adds a button to calculate the resulting epub size directly. Last edited by JimmXinu; 12-04-2017 at 02:15 PM. Reason: Remove obsolete test versions |
11-29-2017, 04:51 AM | #205 |
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
|
11-29-2017, 03:33 PM | #206 |
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Just tested.
Works fine and is enough for me. This way we can get a approximate amount of what will be used by the book. You are great!!!! :t hanks: |
11-30-2017, 03:13 PM | #207 |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Great! I'm going to wait a few days (maybe a week) to give some time for the Transifex volunteer translators to update the translations for the new strings.
(As, I assume, a Spanish speaker, you might be interested in contributing Spanish translations. See calibre/calibre-plugins on transifex). |
11-30-2017, 04:13 PM | #208 |
Guru
Posts: 695
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Yes, I'm Spanish.
Just added the new 6 Spanish strings for your project. Next days I will review the strings done. I will try to monitor the projects, but if you need new translations (or reviews), please ask me here or via MP. |
11-30-2017, 05:42 PM | #209 |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Thanks!
|
12-04-2017, 02:17 PM | #210 |
Plugin Developer
Posts: 6,636
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Release Posted
Version 2.3.0 - 04 Dec 2017
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 551 | 01-05-2025 07:56 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 495 | 10-19-2024 07:06 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-09-2015 12:18 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |