ebook2audiobook: Conversion Fails - ErrNo 2 - No such file as /path/to/file/_book_title.epub <- places an underscore before file name
This is just a rudimentary guide, don’t be too intimidated, You don’t have to follow this to the tee BEFORE TO OPEN AN ISSUE, MAKE SURE THAT IT HASN’T ALREADY BEEN SOLVED OR REPORTED. 😃 Check it with the issue search field
Script Mode
- Native
Process Mode
- Gradio GUI
Command Line (headless mode only) NA
Operating System:
- Linux
Describe the bug
- I saved a single chapter to test with. I titled it ‘Entanglement_chapter_1.epub’
- I drag and drop it to the Gradio Web UI
- I select a Voice with xtts
- Language English
- CPU
- Click to process
- Get Error toast message
convert_ebook() Exception: [Errno 2] No such file or directory: '/home/brian/Developer/ebook2audiobook/tmp/ebook-9a1c68d0-11fd-4369-a1db-a3e85318ae19/547d12109d898a8de4d57b1d43affa11/___Entanglement_chapter_1.epub'
Terminal log
Processing eBook file: _Entanglement_chapter_1.epub
Available Processor Unit: cpu
Running command: /usr/bin/ebook-convert /home/brian/Developer/ebook2audiobook/tmp/ebook-9a1c68d0-11fd-4369-a1db-a3e85318ae19/547d12109d898a8de4d57b1d43affa11/_Entanglement_chapter_1.epub /home/brian/Developer/ebook2audiobook/tmp/ebook-9a1c68d0-11fd-4369-a1db-a3e85318ae19/547d12109d898a8de4d57b1d43affa11/___Entanglement_chapter_1.epub
Conversion options changed from defaults:
input_encoding: 'utf-8'
disable_font_rescaling: True
verbose: 1
epub_version: '3'
smarten_punctuation: True
output_profile: 'generic_eink'
page_breaks_before: "//*[name()='h1' or name()='h2']"
flow_size: 0.0
1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on /home/brian/Developer/ebook2audiobook/tmp/ebook-9a1c68d0-11fd-4369-a1db-a3e85318ae19/547d12109d898a8de4d57b1d43affa11/_Entanglement_chapter_1.epub
Parsing all content...
Parsing OEBPS/sections/section0003.xhtml ...
Parsing OEBPS/sections/section0001.xhtml ...
Parsing OEBPS/styles/stylesheet.css ...
Parsing OEBPS/toc.xhtml ...
Parsing OEBPS/sections/section0002.xhtml ...
Reading TOC from NCX...
34% Running transforms on e-book...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 122 items of level: p_1
p_1 left margin stats: Counter({'0': 118, '2.1252in': 4})
p_1 right margin stats: Counter({'0': 122})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/toc.ncx' from manifest
Trimming 'OEBPS/toc.xhtml' from manifest
Trimming 'page_styles1.css' from manifest
Creating EPUB Output...
67% Running EPUB Output plugin
Splitting markup on page breaks and flow limits, if any...
Generating default cover
Upgrading to EPUB 3...
convert_ebook() Exception: [Errno 2] No such file or directory: '/home/brian/Developer/ebook2audiobook/tmp/ebook-9a1c68d0-11fd-4369-a1db-a3e85318ae19/547d12109d898a8de4d57b1d43affa11/__Entanglement_chapter_1.epub'
I don’t know why it’s trying to add an underscore in the tmp directory it creates, but there is no underscore (_) in front of my filename, nor in front of the file it has created in that directory.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 35 (3 by maintainers)
Can confirm that it’s a calibre issue. I followed the advice of [clemcer] and unistalled calibre that was installed by eb2ab then installed from the calibre site and that issue went away.
Thanks, I had an existing calibre install from pacman. Removing it and letting ebook2audiobook.sh install it fixed it.
we need a more deep log to know what’s happening.