p0n1 / epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf
MIT License
1.16k stars 119 forks source link

Program stuck on y/n Prompt #54

Open username44345 opened 8 months ago

username44345 commented 8 months ago

For some reason it gets stuck after asking for confirmation when running on my desktop. Did the exact same thing on laptop and it was able to run. Not sure what the difference is, no error message is given only below warnings

$ python3 main.py --tts edge --voicename "en-US-RogerNeural" "C:\Users[Username]\Downloads\Min-Maxing My TRPG Build in Another World Volume 8.epub" output_folder C:\Users[Username]\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ebooklib\epub.py:1395: UserWarning: In the future version we will turn default option ignore_ncx to True. warnings.warn('In the future version we will turn default option ignore_ncx to True.') C:\Users[Username]\epub_to_audiobook\audiobook_generator\tts_providers\base_tts_provider.py:13: RuntimeWarning: coroutine 'EdgeTTSProvider.validate_config' was never awaited self.validate_config() RuntimeWarning: Enable tracemalloc to get the object allocation traceback C:\Users[Username]\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\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. warnings.warn( 2024-03-06 19:44:28 [INFO] Chapters count: 23. 2024-03-06 19:44:28 [INFO] Converting chapters from 1 to 23. 2024-03-06 19:44:28 [INFO] \u2728 Total characters in selected book: 609648 \u2728 Estimate book voiceover would cost you roughly: $0.00

Do you want to continue? (y/n)