mirror of
https://github.com/FujiwaraChoki/MoneyPrinterV2.git
synced 2026-04-26 06:35:51 +03:00
[GH-ISSUE #104] FileNotFoundError: MoneyPrinterV2/venv/TTS/.models.json #73
Labels
No labels
bug
enhancement
good first issue
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/MoneyPrinterV2#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @omozousha on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/FujiwaraChoki/MoneyPrinterV2/issues/104
i got an error while selecting this options.
Traceback (most recent call last):
File "D:\dari-github\MoneyPrinterV2\src\main.py", line 436, in
main()
File "D:\dari-github\MoneyPrinterV2\src\main.py", line 151, in main
tts = TTS()
File "D:\dari-github\MoneyPrinterV2\src\classes\Tts.py", line 41, in init
self.model_manager = ModelManager(models_json_path)
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\TTS\utils\manage.py", line 56, in init
self.read_models_file(models_file)
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\TTS\utils\manage.py", line 68, in read_models_file
self.models_dict = read_json_with_comments(file_path)
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\TTS\config_init.py", line 17, in read_json_with_comments
with fsspec.open(json_path, "r", encoding="utf-8") as f:
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\fsspec\core.py", line 105, in enter
f = self.fs.open(self.path, mode=mode)
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\fsspec\spec.py", line 1310, in open
f = self._open(
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\fsspec\implementations\local.py", line 200, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\fsspec\implementations\local.py", line 364, in init
self._open()
File "D:\dari-github\MoneyPrinterV2\venv\lib\site-packages\fsspec\implementations\local.py", line 369, in _open
self.f = open(self.path, mode=self.mode)
FileNotFoundError: [Errno 2] No such file or directory: 'D:/dari-github/MoneyPrinterV2/venv/TTS/.models.json'
what should i do ?
please anyone.
@FujiwaraChoki commented on GitHub (Feb 17, 2025):
Error in latest PR. I'm never accepting new PRs ever again.
Will figure it out ASAP.
@FujiwaraChoki commented on GitHub (Feb 17, 2025):
Rolled back the PR that caused this. Could you please pull from main and try again?
@thaalescosta commented on GitHub (Feb 17, 2025):
getting the same issue still
Traceback (most recent call last):
File "C:\MoneyPrinterV2\src\main.py", line 395, in
main()
File "C:\MoneyPrinterV2\src\main.py", line 130, in main
tts = TTS()
File "C:\MoneyPrinterV2\src\classes\Tts.py", line 41, in init
self.model_manager = ModelManager(models_json_path)
File "C:\MoneyPrinterV2.venv\lib\site-packages\TTS\utils\manage.py", line 56, in init
self.read_models_file(models_file)
File "C:\MoneyPrinterV2.venv\lib\site-packages\TTS\utils\manage.py", line 68, in read_models_file
self.models_dict = read_json_with_comments(file_path)
File "C:\MoneyPrinterV2.venv\lib\site-packages\TTS\config_init.py", line 17, in read_json_with_comments
with fsspec.open(json_path, "r", encoding="utf-8") as f:
File "C:\MoneyPrinterV2.venv\lib\site-packages\fsspec\core.py", line 105, in enter
f = self.fs.open(self.path, mode=mode)
File "C:\MoneyPrinterV2.venv\lib\site-packages\fsspec\spec.py", line 1310, in open
f = self._open(
File "C:\MoneyPrinterV2.venv\lib\site-packages\fsspec\implementations\local.py", line 200, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
File "C:\MoneyPrinterV2.venv\lib\site-packages\fsspec\implementations\local.py", line 364, in init
self._open()
File "C:\MoneyPrinterV2.venv\lib\site-packages\fsspec\implementations\local.py", line 369, in _open
self.f = open(self.path, mode=self.mode)
FileNotFoundError: [Errno 2] No such file or directory: 'C:/MoneyPrinterV2/.venv/TTS/.models.json'
@omozousha commented on GitHub (Feb 18, 2025):
I've tried it before, and still can't
@magicwarms commented on GitHub (Feb 18, 2025):
mine too, still can't
@theanhbr01 commented on GitHub (Feb 18, 2025):
Hi, I'm using virtual environment. I had check on code and found an bug that in src/classes/Tts.py line 29, the variable "site_packages" does not include "Lib/site-packages". So i have to add it in code like this:
models_json_path = os.path.join( site_packages, "Lib", "site-packages", "TTS", ".models.json", )And it works fine
P/s: Sorry for my bad English
@magicwarms commented on GitHub (Feb 18, 2025):
how can you get model.json? because I don't have it
@theanhbr01 commented on GitHub (Feb 18, 2025):
If you installed all dependencies/libraries in requirements.txt, .model.json should be in .venv/Lib/site-packages/TTS
My python version: 3.9.13
@omozousha commented on GitHub (Feb 18, 2025):
thanks its working for me
@manutzsong commented on GitHub (Feb 20, 2025):
Try to change that line 29 from what he suggests. Then, it will work without having .model.json .