|
|
#1 |
|
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jan 2020
Device: none
|
I tried to split a epub file, it gives me an error.
Here's the code:
Code:
calibre, version 7.20.0
ERRORE: Eccezione non gestita: <b>KeyError</b>:"There is no item named 'OEBPS/Text/introduction.xhtml' in the archive"
calibre 7.20 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 16, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 16, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && FanFicFare (4, 39, 0) && KFX metadata reader (from KFX Input) (2, 16, 0) && From KFX (2, 16, 0) && KFX Input (2, 16, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
Traceback (most recent call last):
File "calibre_plugins.epubsplit.epubsplit_plugin", line 146, in plugin_button
File "calibre_plugins.epubsplit.epubsplit", line 738, in get_split_lines
File "zipfile.py", line 1510, in read
File "zipfile.py", line 1547, in open
File "zipfile.py", line 1476, in getinfo
KeyError: "There is no item named 'OEBPS/Text/introduction.xhtml' in the archive"
Code:
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Traceback (most recent call last):
File "calibre\gui2\ui.py", line 147, in __init__
File "calibre\gui2\ui.py", line 165, in init_iaction
File "calibre\customize\__init__.py", line 659, in load_actual_plugin
File "importlib\__init__.py", line 126, in import_module
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "calibre\customize\zipplugin.py", line 198, in exec_module
File "calibre\customize\zipplugin.py", line 194, in get_code
File "calibre_plugins.savetoformat.savetoformataction", line 53
print 'Default saving'
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
EpubMerge: DEBUG: 2024-10-27 13:26:14,673: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
FFF: DEBUG: 2024-10-27 13:26:14,723: calibre_plugins.fanficfare_plugin.fff_plugin(217): Plugin FanFicFare macmenuhack file_path:C:\Users\luigi\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
calibre Log di debug
calibre 7.20 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 16, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 16, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && FanFicFare (4, 39, 0) && KFX metadata reader (from KFX Input) (2, 16, 0) && From KFX (2, 16, 0) && KFX Input (2, 16, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
calibre 7.20 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 16, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 16, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && FanFicFare (4, 39, 0) && KFX metadata reader (from KFX Input) (2, 16, 0) && From KFX (2, 16, 0) && KFX Input (2, 16, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
[0.00] Starting up...
[0.00] Showing splash screen...
[1.19] splash screen shown
[1.19] Initializing db...
[1.19] db initialized
[1.19] Constructing main UI...
[3.66] GUI main window shown
[3.80] main UI initialized...
[3.80] Hiding splash screen
[3.81] splash screen hidden
[3.81] Started up in 3.81 seconds with 22 books
bs4\builder\__init__.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
calibre 7.20 embedded-python: True
Windows-10-10.0.22000-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.11.5
Windows: ('10', '10.0.22000', 'SP0', 'Multiprocessor Free')
Interface language: it
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 16, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 16, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 9, 0) && FanFicFare (4, 39, 0) && KFX metadata reader (from KFX Input) (2, 16, 0) && From KFX (2, 16, 0) && KFX Input (2, 16, 0) && KindleUnpack - The Plugin (0, 83, 1) && Save To Format (0, 0, 6)
Traceback (most recent call last):
File "calibre_plugins.epubsplit.epubsplit_plugin", line 146, in plugin_button
File "calibre_plugins.epubsplit.epubsplit", line 738, in get_split_lines
File "zipfile.py", line 1510, in read
File "zipfile.py", line 1547, in open
File "zipfile.py", line 1476, in getinfo
KeyError: "There is no item named 'OEBPS/Text/introduction.xhtml' in the archive"
|
|
|
|
|
|
#2 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,397
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You can 'save-as' the original epub into however many epubs you want to make...then delete the files you don't want to keep out of each one. Remember to change the Unique Identifier in the .opf and .ncx files.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jan 2020
Device: none
|
I'm going to say what i think you mean:
1) create x copies of epub 2) click on edit book, and delete the chapters you don't want 3) change identifier in opf and ncx. Sorry for being mistaken Last edited by luigi rovatti; 10-27-2024 at 10:04 AM. Reason: I understood what he said. |
|
|
|
|
|
#4 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,789
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 793
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=364235 and deleted the files I didn't want in each one to split them. I made no changes to Unique Identifiers. But, I get no errors when I check and all seems good to me. Could you be more specific about that Unique Identifier? In the .opf, the top line includes: unique-identifier="uuid_id" a few lines below that, there are various identifiers For instance: Code:
<dc:identifier>amazon:0765320665</dc:identifier>
<dc:identifier>isbn:9781466831032</dc:identifier>
<dc:identifier>mobi-asin:B009WUGASU</dc:identifier>
<dc:identifier>calibre:2164</dc:identifier>
<dc:identifier>uuid:bf2d8a56-b379-4614-a9ac-59396cff3480</dc:identifier>
<dc:identifier id="uuid_id">uuid:fb7d84d9-5199-40b2-bf69-c36722777f61</dc:identifier>
Is that bad? Should I replace the uuid_id with what's in the uuid line just above it and then delete that uuid line (and copy the string to the .ncx)? |
|
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| epub, epubsplit, plugin |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ePub3 to Mobi Error - Error(prcgen):E21027: Epub file has more than one opf file | dtsmith | Kindle Formats | 4 | 01-30-2018 12:20 PM |
| Sigil's Infamous "colon" Error on File Split | slowsmile | Sigil | 24 | 10-27-2016 10:45 AM |
| Can I split one epub into more than one file? | ChrisKaos | ePub | 10 | 04-05-2012 07:05 AM |
| Split EPUB/MOBI File with Multiple Books | jwh88 | Calibre | 3 | 02-03-2012 01:00 AM |
| How To split .Lit file into several epub books | bluesbeat | Calibre | 4 | 09-11-2010 08:05 PM |