[GH-ISSUE #52] Issue regarding what seems to be TTS #37

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

Originally created by @ZigZagBoi1 on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/FujiwaraChoki/MoneyPrinterV2/issues/52

image

Traceback (most recent call last):
File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\main.py", line 364, in
main()
File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\main.py", line 98, in main
tts = TTS()
File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\classes\Tts.py", line 29, in init
self.model_manager = ModelManager(models_json_path)
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TTS\utils\manage.py", line 56, in init
self.read_models_file(models_file)
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TTS\utils\manage.py", line 68, in read_models_file
self.models_dict = read_json_with_comments(file_path)
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\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:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\core.py", line 103, in enter
f = self.fs.open(self.path, mode=mode)
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\spec.py", line 1293, in open
f = self._open(
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 184, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 306, in init
self._open()
File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 311, in _open
self.f = open(self.path, mode=self.mode)
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/marwa/Desktop/MoneyPrinterV2-main/venv/Lib/site-packages/TTS/.models.json'

Originally created by @ZigZagBoi1 on GitHub (Mar 3, 2024). Original GitHub issue: https://github.com/FujiwaraChoki/MoneyPrinterV2/issues/52 ![image](https://github.com/FujiwaraChoki/MoneyPrinterV2/assets/66926735/51df64dd-2f46-4081-bdda-ce0180ddd3e2) Traceback (most recent call last): File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\main.py", line 364, in <module> main() File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\main.py", line 98, in main tts = TTS() File "C:\Users\marwa\Desktop\MoneyPrinterV2-main\src\classes\Tts.py", line 29, in __init__ self._model_manager = ModelManager(models_json_path) File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TTS\utils\manage.py", line 56, in __init__ self.read_models_file(models_file) File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TTS\utils\manage.py", line 68, in read_models_file self.models_dict = read_json_with_comments(file_path) File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\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:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\core.py", line 103, in __enter__ f = self.fs.open(self.path, mode=mode) File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\spec.py", line 1293, in open f = self._open( File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 184, in _open return LocalFileOpener(path, mode, fs=self, **kwargs) File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 306, in __init__ self._open() File "C:\Users\marwa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\fsspec\implementations\local.py", line 311, in _open self.f = open(self.path, mode=self.mode) FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/marwa/Desktop/MoneyPrinterV2-main/venv/Lib/site-packages/TTS/.models.json'
kerem closed this issue 2026-03-02 04:06:23 +03:00
Author
Owner

@ZigZagBoi1 commented on GitHub (Mar 3, 2024):

this is for the youtube shorts btw

<!-- gh-comment-id:1975080449 --> @ZigZagBoi1 commented on GitHub (Mar 3, 2024): this is for the youtube shorts btw
Author
Owner

@ZigZagBoi1 commented on GitHub (Mar 3, 2024):

Hey! Solved!

so when you install TTS, it installs to the default python directory, just go there and find the (TTS) file copy that over into the venv\lib\site-packages\

and boom it should work :D

<!-- gh-comment-id:1975085259 --> @ZigZagBoi1 commented on GitHub (Mar 3, 2024): Hey! Solved! so when you install TTS, it installs to the default python directory, just go there and find the (TTS) file copy that over into the venv\lib\site-packages\ and boom it should work :D
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#37
No description provided.