p0n1 / epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf
MIT License
888 stars 86 forks source link

Error trying to convert epub to audio: "cannot execute binary file" #31

Open ASmallBat opened 5 months ago

ASmallBat commented 5 months ago

This is my first time really messing with something like this, so it's almost definitely my fault something's up. I followed the Windows step-by-step guide, and was able to figure everything out until I got to this point:

$ "C:\Users**NAME\Downloads\BOOK.epub" "C:\Users\NAME\Downloads\EMPTY FOLDER" --tts azure --voice_name en-US-JennyNeural --language en-US bash: C:\Users\NAME\Downloads\BOOK**.epub: cannot execute binary file: Exec format error (venv)

(all text in bold is stuff I changed to share this) I'm on Windows 10, using Python 3.12.1 and latest version of Git

p0n1 commented 5 months ago

Hi @ASmallBat. The command should be something like python3 main.py <input_file> <output_folder> [options]. Not started with *.epub.