[GH-ISSUE #104] FileNotFoundError: MoneyPrinterV2/venv/TTS/.models.json #73

Closed
opened 2026-03-02 04:06:37 +03:00 by kerem · 10 comments
Owner

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.

Image

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.

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. ![Image](https://github.com/user-attachments/assets/930ff9c1-1734-44f0-a2a4-15bf3ace0102) Traceback (most recent call last): File "D:\dari-github\MoneyPrinterV2\src\main.py", line 436, in <module> 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.
kerem closed this issue 2026-03-02 04:06:37 +03:00
Author
Owner

@FujiwaraChoki commented on GitHub (Feb 17, 2025):

Error in latest PR. I'm never accepting new PRs ever again.

Will figure it out ASAP.

<!-- gh-comment-id:2662780676 --> @FujiwaraChoki commented on GitHub (Feb 17, 2025): Error in latest PR. I'm never accepting new PRs ever again. Will figure it out ASAP.
Author
Owner

@FujiwaraChoki commented on GitHub (Feb 17, 2025):

Rolled back the PR that caused this. Could you please pull from main and try again?

<!-- gh-comment-id:2664115148 --> @FujiwaraChoki commented on GitHub (Feb 17, 2025): Rolled back the PR that caused this. Could you please pull from main and try again?
Author
Owner

@thaalescosta commented on GitHub (Feb 17, 2025):

getting the same issue still

Image

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'

<!-- gh-comment-id:2664191836 --> @thaalescosta commented on GitHub (Feb 17, 2025): getting the same issue still ![Image](https://github.com/user-attachments/assets/4e1d4f7d-94c3-428b-911f-714ffa31a2c8) Traceback (most recent call last): File "C:\MoneyPrinterV2\src\main.py", line 395, in <module> 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'
Author
Owner

@omozousha commented on GitHub (Feb 18, 2025):

Rolled back the PR that caused this. Could you please pull from main and try again?

I've tried it before, and still can't

<!-- gh-comment-id:2664702677 --> @omozousha commented on GitHub (Feb 18, 2025): > Rolled back the PR that caused this. Could you please pull from main and try again? I've tried it before, and still can't
Author
Owner

@magicwarms commented on GitHub (Feb 18, 2025):

mine too, still can't

<!-- gh-comment-id:2664755144 --> @magicwarms commented on GitHub (Feb 18, 2025): mine too, still can't
Author
Owner

@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

<!-- gh-comment-id:2664771983 --> @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
Author
Owner

@magicwarms 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

how can you get model.json? because I don't have it

<!-- gh-comment-id:2664814639 --> @magicwarms 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 how can you get model.json? because I don't have it
Author
Owner

@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

<!-- gh-comment-id:2664842947 --> @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
Author
Owner

@omozousha 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

thanks its working for me

<!-- gh-comment-id:2664899160 --> @omozousha 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 thanks its working for me
Author
Owner

@manutzsong commented on GitHub (Feb 20, 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

how can you get model.json? because I don't have it

Try to change that line 29 from what he suggests. Then, it will work without having .model.json .

<!-- gh-comment-id:2670763691 --> @manutzsong commented on GitHub (Feb 20, 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 > > how can you get model.json? because I don't have it Try to change that line 29 from what he suggests. Then, it will work without having .model.json .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/MoneyPrinterV2#73
No description provided.