Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem after update to 2.4.6 #261

Open
rejuce opened this issue Sep 12, 2024 · 2 comments
Open

problem after update to 2.4.6 #261

rejuce opened this issue Sep 12, 2024 · 2 comments

Comments

@rejuce
Copy link
Contributor

rejuce commented Sep 12, 2024

i updated to v 2.4.6, isntall was succesfull on ubuntu 22.04 WSL

after that, the same command that was still working yesterday fails with taht error:

Installing collected packages: epub2tts
Attempting uninstall: epub2tts
Found existing installation: epub2tts 2.4.6
Uninstalling epub2tts-2.4.6:
Successfully uninstalled epub2tts-2.4.6
Successfully installed epub2tts-2.4.6
jk@GMNB-0036:/epub2tts$ cd ../epubconvert/tate/
jk@GMNB-0036:
/epubconvert/tate$ python3 /home/jk/epub2tts/epub2tts.py Tate-no-Yuusha-no-Nariagari-Compiled.epub --engine xtts --speaker "Badr Odhiambo" --skiplinks
/home/jk/epub2tts/epub2tts.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Namespace(sourcefile='Tate-no-Yuusha-no-Nariagari-Compiled.epub', engine='xtts', xtts=None, openai=None, model='tts_models/en/vctk/vits', speaker='Badr Odhiambo', scan=False, start=1, end=999, language='en', minratio=88, skiplinks=True, skipfootnotes=False, sayparts=False, audioformat='m4b', bitrate='69k', debug=False, export=None, no_deepspeed=False, skip_cleanup=False, cover=None)
Traceback (most recent call last):
File "/home/jk/epub2tts/epub2tts.py", line 962, in
main()
File "/home/jk/epub2tts/epub2tts.py", line 905, in main
mybook = EpubToAudiobook(
File "/home/jk/epub2tts/epub2tts.py", line 107, in init
self.ensure_punkt()
File "/home/jk/epub2tts/epub2tts.py", line 115, in ensure_punkt
nltk.data.find("tokenizers/punkt_tab")
File "/home/jk/.local/lib/python3.10/site-packages/nltk/data.py", line 537, in find
return FileSystemPathPointer(p)
File "/home/jk/.local/lib/python3.10/site-packages/nltk/compat.py", line 41, in _decorator
return init_func(*args, **kwargs)
File "/home/jk/.local/lib/python3.10/site-packages/nltk/data.py", line 312, in init
raise OSError("No such file or directory: %r" % _path)
OSError: No such file or directory: '/home/jk/nltk_data/tokenizers/punkt/PY3_tab'

@rejuce
Copy link
Contributor Author

rejuce commented Sep 12, 2024

i downgraded to commit 5f9ffda 2.4.5 and it worked again

@erictbar
Copy link

Got the same error, ran pip install --upgrade nltk and it got past that point and has started the task.

(Referenced nltk/nltk#3305)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants