View Single Post
Old 10-27-2024, 08:27 AM   #1
luigi rovatti
Enthusiast
luigi rovatti began at the beginning.
 
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"
Here's the code in debug mode:

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"
I hope this helps.
luigi rovatti is offline   Reply With Quote