ebook2audiobook: can't run app.py
hello, i’m trying to run app.py, but this is what the terminal outputs:
C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS>python app.py
starting...
Traceback (most recent call last):
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\app.py", line 94, in <module>
import nltk
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\nltk\__init__.py", line 138, in <module>
from nltk.text import *
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\nltk\text.py", line 30, in <module>
from nltk.tokenize import sent_tokenize
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\nltk\tokenize\__init__.py", line 66, in <module>
from nltk.tokenize.casual import TweetTokenizer, casual_tokenize
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\nltk\tokenize\casual.py", line 49, in <module>
import regex # https://github.com/nltk/nltk/issues/2409
^^^^^^^^^^^^
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\regex\__init__.py", line 1, in <module>
from .regex import *
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\regex\regex.py", line 417, in <module>
import regex._regex_core as _regex_core
File "C:\windows-python3.10-ebook2audiobookxtts\ebook2audiobookXTTS\regex\_regex_core.py", line 21, in <module>
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
i’ve followed all the installation steps, and made sure the regex module is installed after reading the issue the terminal references but same result. would you know how to fix this? thank you
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (4 by maintainers)
ebook2audiobook is not compatible with 3.12 and 3.13 since all major A.I. engine which eb2ab depends runs < 3.12 unless very few exceptions. you must for now install a python virtual env version 3.10 or 3.11. or wait the new release as an installer will do that for you
@cavalrymargarine0x1
so yeah, Right now were working on getting to out version 2.0 which will be a lot easer to install.
In the meantime you can run it in the docker version:
🐳 Using Docker
You can also use Docker to run the eBook to Audiobook converter. This method ensures consistency across different environments and simplifies setup.
🚀 Running the Docker Container
To run the Docker container and start the Gradio interface, use the following command:
-Run with CPU only
-Run with GPU Speedup (Nvida graphics cards only)
This command will start the Gradio interface on port 7860.(localhost:7860)