fujiwarachoki / moneyprinterv2 Goto Github PK
View Code? Open in Web Editor NEWAutomate the process of making money online.
License: GNU Affero General Public License v3.0
Automate the process of making money online.
License: GNU Affero General Public License v3.0
When I use the command "pip install -r requirements.txt" inside the virtual enviroment and with the Build tools installed, I get this error: (my python version is Python 3.12.2, and to run the code I'm using Visual Studio Code)
Collecting wheel (from -r requirements.txt (line 1))
Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
Collecting termcolor (from -r requirements.txt (line 2))
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting schedule (from -r requirements.txt (line 3))
Using cached schedule-1.2.1-py2.py3-none-any.whl.metadata (3.3 kB)
ERROR: Ignored the following versions that require a different python version: 0.0.10.2 Requires-Python >=3.6.0, <3.9; 0.0.10.3 Requires-Python >=3.6.0, <3.9; 0.0.11 Requires-Python >=3.6.0, <3.9; 0.0.12 Requires-Python >=3.6.0, <3.9; 0.0.13.1 Requires-Python >=3.6.0, <3.9; 0.0.13.2 Requires-Python >=3.6.0, <3.9; 0.0.14.1 Requires-Python >=3.6.0, <3.9; 0.0.15 Requires-Python >=3.6.0, <3.9; 0.0.15.1 Requires-Python >=3.6.0, <3.9; 0.0.9 Requires-Python >=3.6.0, <3.9; 0.0.9.1 Requires-Python >=3.6.0, <3.9; 0.0.9.2 Requires-Python >=3.6.0, <3.9; 0.0.9a10 Requires-Python >=3.6.0, <3.9; 0.0.9a9 Requires-Python >=3.6.0, <3.9; 0.1.0 Requires-Python >=3.6.0, <3.10; 0.1.1 Requires-Python >=3.6.0, <3.10; 0.1.2 Requires-Python >=3.6.0, <3.10; 0.1.3 Requires-Python >=3.6.0, <3.10; 0.10.0 Requires-Python >=3.7.0, <3.11; 0.10.1 Requires-Python >=3.7.0, <3.11; 0.10.2 Requires-Python >=3.7.0, <3.11; 0.11.0 Requires-Python >=3.7.0, <3.11; 0.11.1 Requires-Python >=3.7.0, <3.11; 0.12.0 Requires-Python >=3.7.0, <3.11; 0.13.0 Requires-Python >=3.7.0, <3.11; 0.13.1 Requires-Python >=3.7.0, <3.11; 0.13.2 Requires-Python >=3.7.0, <3.11; 0.13.3 Requires-Python >=3.7.0, <3.11; 0.14.0 Requires-Python >=3.7.0, <3.11; 0.14.2 Requires-Python >=3.7.0, <3.11; 0.14.3 Requires-Python >=3.7.0, <3.11; 0.15.0 Requires-Python >=3.9.0, <3.12; 0.15.1 Requires-Python >=3.9.0, <3.12; 0.15.2 Requires-Python >=3.9.0, <3.12; 0.15.4
Requires-Python >=3.9.0, <3.12; 0.15.5 Requires-Python >=3.9.0, <3.12; 0.15.6 Requires-Python >=3.9.0, <3.12; 0.16.0 Requires-Python >=3.9.0, <3.12; 0.16.1 Requires-Python >=3.9.0, <3.12; 0.16.3 Requires-Python >=3.9.0, <3.12; 0.16.4 Requires-Python >=3.9.0, <3.12; 0.16.5 Requires-Python >=3.9.0, <3.12; 0.16.6 Requires-Python >=3.9.0, <3.12; 0.17.0 Requires-Python >=3.9.0, <3.12; 0.17.1 Requires-Python >=3.9.0, <3.12; 0.17.2 Requires-Python >=3.9.0, <3.12; 0.17.4 Requires-Python >=3.9.0, <3.12; 0.17.5 Requires-Python >=3.9.0, <3.12; 0.17.6 Requires-Python >=3.9.0, <3.12; 0.17.7 Requires-Python >=3.9.0, <3.12; 0.17.8 Requires-Python >=3.9.0, <3.12; 0.17.9 Requires-Python >=3.9.0, <3.12; 0.18.0 Requires-Python >=3.9.0, <3.12; 0.18.1 Requires-Python >=3.9.0, <3.12; 0.18.2 Requires-Python >=3.9.0, <3.12; 0.19.0 Requires-Python >=3.9.0, <3 >=3.6.0, <3.10; 0.20.0 Requires-Python >=3.9.0, <3.12; 0.20.1 Requires-Python >=3.9.0, <3.12; 0.20.2 Requires-Python >=3.9.0, <3.12; 0.20.3
Requires-Python >=3.9.0, <3.12; 0.20.4 Requires-Python >=3.9.0, <3.12; 0.20.5 Requires-Python >=3.9.0, <3.12; 0.20.6 Requires-Python >=3.9.0, <3.12; 0.21.0 Requires-Python >=3.9.0, <3.12; 0.21.1 Requires-Python >=3.9.0, <3.12; 0.21.2 Requires-Python >=3.9.0, <3.12; 0.21.3 Requires-Python >=3.9.0, <3.12; 0.22.0 Requires-Python >=3.9.0, <3.12; 0.3.0 Requires-Python >=3.6.0, <3.10; 0.3.1 Requires-Python >=3.6.0, <3.10; 0.4.0 Requires-Python >=3.6.0, <3.10; 0.4.1 Requires-Python >=3.6.0, <3.10; 0.4.2 Requires-Python >=3.6.0, <3.10; 0.5.0 Requires-Python >=3.6.0, <3.10; 0.6.0 Requires-Python >=3.6.0, <3.10; 0.6.1 Requires-Python >=3.6.0, <3.10; 0.6.2 Requires-Python >=3.6.0, <3.10; 0.7.0 Requires-Python >=3.7.0, <3.11; 0.7.1 Requires-Python >=3.7.0, <3.11; 0.8.0 Requires-Python >=3.7.0, <3.11; 0.9.0 Requires-Python >=3.7.0, <3.11
ERROR: Could not find a version that satisfies the TTS (from versions: none)
ERROR: No matching distribution found for TTS
I seem to be getting the below issue when i run the code, it looks like the code is having issues producing any of the ouputs
Discriminator Model: univnet_discriminator
Traceback (most recent call last):
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 267, in generate_prompts
image_prompts = json.loads(completion)
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 10555 (char 10554)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 267, in generate_prompts
image_prompts = json.loads(completion)
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 66 column 1 (char 5354)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\main.py", line 364, in
main()
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\main.py", line 101, in main
youtube.generate_video(tts)
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 528, in generate_video
self.generate_prompts()
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 280, in generate_prompts
return self.generate_prompts()
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 280, in generate_prompts
return self.generate_prompts()
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 257, in generate_prompts
completion = str(self.generate_response(prompt, model=parse_model(get_image_prompt_llm())))
File "C:\Users\Home\PycharmProjects\MoneyPrinterV2\src\classes\YouTube.py", line 126, in generate_response
return g4f.ChatCompletion.create(
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f_init_.py", line 146, in create
return result if stream else ''.join([str(chunk) for chunk in result])
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f_init_.py", line 146, in
return result if stream else ''.join([str(chunk) for chunk in result])
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f\providers\retry_provider.py", line 79, in create_completion
raise e
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f\providers\retry_provider.py", line 69, in create_completion
for token in provider.create_completion(model, messages, stream, **kwargs):
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f\providers\base_provider.py", line 204, in create_completion
yield loop.run_until_complete(await_callback(gen.anext))
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f\providers\base_provider.py", line 200, in await_callback
return await callback()
File "C:\Users\Home\anaconda3\envs\MoneyPrinterV2\lib\site-packages\g4f\Provider\ChatBase.py", line 60, in create_async_generator
raise RuntimeError("Incorrect response")
RuntimeError: Incorrect response
https://filebin.net/klylrens0uk2pnrg/drive-download-20240209T180019Z-001.zip
The file has been requested too many times.
Greetings reaching out
I was wondering how you get videos uploaded w/o youtube data api
Error:
Traceback (most recent call last):
File "C:\Users\Fred\Documents\GitHub\MoneyPrinterV2\src\main.py", line 362, in <module>
main()
File "C:\Users\Fred\Documents\GitHub\MoneyPrinterV2\src\main.py", line 112, in main
for video in videos:
TypeError: 'NoneType' object is not iterable
Got error whilst using option '2. Show all Shorts':
Error gets thrown at line 112 in main.py because videos variable is not iterable. Variable videos is 'None' instead.
bad news
https://liaobots.work/api/user
{"code":200,"msg":"success","data":"Too many requests"}
Hello,
Got this error using a vpn all the time.
New g4f version: 0.2.2.3 (current: 0.2.1.5) | pip install -U g4f
Traceback (most recent call last):
File "C:\Users\\\MoneyPrinterV2\src\main.py", line 364, in <module>
main()
File "C:\Users\\\MoneyPrinterV2\src\main.py", line 101, in main
youtube.generate_video(tts)
File "C:\Users\\\MoneyPrinterV2\src\classes\YouTube.py", line 527, in generate_video
self.generate_prompts()
File "C:\Users\\MoneyPrinterV2\src\classes\YouTube.py", line 257, in generate_prompts
completion = str(self.generate_response(prompt, model=parse_model(get_image_prompt_llm())))\
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\\MoneyPrinterV2\src\classes\YouTube.py", line 126, in generate_response
return g4f.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\g4f\__init__.py", line 140, in create
return result if stream else ''.join([str(chunk) for chunk in result])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\g4f\__init__.py", line 140, in <listcomp>
return result if stream else ''.join([str(chunk) for chunk in result])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\g4f\Provider\retry_provider.py", line 65, in create_completion
self.raise_exceptions()
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\g4f\Provider\retry_provider.py", line 114, in raise_exceptions
raise RetryProviderError("RetryProvider failed:\n" + "\n".join([
g4f.errors.RetryProviderError: RetryProvider failed:
You: ClientResponseError: 403, message='Forbidden', url=URL('https://you.com/api/streamingSearch?userFiles=&selectedChatMode=default')
GptForLove: MissingRequirementsError: Install "PyExecJS" package
GptGo: KeyError: 'choices'
ChatBase: ClientResponseError: 400, message='Bad Request', url=URL('https://www.chatbase.co/api/fe/chat')
Chatgpt4Online: ClientResponseError: 400, message='Can not decode content-encoding: brotli (br). Please install `Brotli`', url=URL('https://chatgpt4online.org/')
Exception ignored in: <function Chrome.__del__ at 0x0000018A5D07C040>
Traceback (most recent call last):
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\undetected_chromedriver\__init__.py", line 843, in __del__
self.quit()
File "C:\Users\\\MoneyPrinterV2\venv\Lib\site-packages\undetected_chromedriver\__init__.py", line 798, in quit
time.sleep(0.1)
OSError: [WinError 6] The handle is invalid
When I select option 1 and then select a user, this exception will be thrown after execution. Is it caused by the mismatch between the browser version and the driver? Which browser version is required? thank you.
python version:3.11.6
firfox version:123.0 (64 位)
Traceback (most recent call last):
File "D:\MyProject\PYTHON\MoneyPrinterV2-main\venv\Lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 69, in init
super().init(command_executor=executor, options=options)
File "D:\MyProject\PYTHON\MoneyPrinterV2-main\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 208, in init
self.start_session(capabilities)
File "D:\MyProject\PYTHON\MoneyPrinterV2-main\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\MyProject\PYTHON\MoneyPrinterV2-main\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "D:\MyProject\PYTHON\MoneyPrinterV2-main\venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Failed to set preferences: unknown error
I'm using linux (Debian 12)
By default the path of the TTs package is "venv\Lib\site-packages" in src/classes/Tts.py line 18.
But in my case the site-packages file was here: "venv/lib/python3.11/site-packages". After change the path, the programs works !
I don't know if it's from my machine but I don't think so.
I think it might be good to specify it in the Readme.
In any case, good job!
Can you give a startup config.json file download address.
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'
I don't understand what exactly firefox_profile refers to. Is it the personal account link of the Firefox browser? Or is it the profile folder in the installation directory of Firefox? Could you please provide more detailed explanation?
I use a raspberry-pi 4B device to run the project.Device info is:
Linux raspi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux
When I start YT shorts Automater, error like this:
File "/home/username/moneyprint2/MoneyPrinterV2-main/src/main.py", line 364, in
main()
File "/home/username/moneyprint2/MoneyPrinterV2-main/src/main.py", line 79, in main
youtube = YouTube(
^^^^^^^^
File "/home/username/moneyprint2/MoneyPrinterV2-main/src/classes/YouTube.py", line 83, in init
self.browser: webdriver.Firefox = webdriver.Firefox(service=self.service, options=self.options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/firefox/webdriver.py", line 60, in init
self.service.start()
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 98, in start
self._start_process(self._path)
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 208, in _start_process
self.process = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/username/.wdm/drivers/geckodriver/linux64/v0.34.0/geckodriver'
Then use the 'file' command to view the file properties,like this:
geckodriver: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=ec0ce05f420115d33032b612f37d88c565b5468a, with debug_info, not stripped
Does this mean that my device cannot run the file?
Error:
Traceback (most recent call last):
File "C:\Users\Fred\Documents\GitHub\MoneyPrinterV2\src\main.py", line 363, in <module>
main()
File "C:\Users\Fred\Documents\GitHub\MoneyPrinterV2\src\main.py", line 113, in main
for video in videos:
TypeError: 'NoneType' object is not iterable
With this config.json I am getting the below error
{
"verbose": true,
"firefox_profile": "C:\\Users\\mikey\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\40n7xz2q.dev-edition-default",
"headless": false,
"twitter_language": "English",
"llm": "gpt4",
"image_prompt_llm": "gpt4",
"image_model": "v3",
"threads": 2,
"zip_url": "",
"is_for_kids": false,
"google_maps_scraper": "https://github.com/gosom/google-maps-scraper/archive/refs/tags/v0.9.7.zip",
"email": {
"smtp_server": "smtp.gmail.com",
"smtp_port": 587,
"username": "",
"password": ""
},
"google_maps_scraper_niche": "",
"scraper_timeout": 300,
"outreach_message_subject": "I have a question...",
"outreach_message_body_file": "outreach_message.html",
"assembly_ai_api_key": "1234567890sdfghjk6789",
"font": "bold_font.ttf",
"imagemagick_path": "C:\\Program Files\\ImageMagick-7.1.1-Q16-HDRI\\magick.exe"
}
Traceback (most recent call last):
File "C:\Users\mikey\Desktop\Projects\MoneyPrinterV2\src\main.py", line 364, in
main()
File "C:\Users\mikey\Desktop\Projects\MoneyPrinterV2\src\main.py", line 79, in main
youtube = YouTube(
File "C:\Users\mikey\Desktop\Projects\MoneyPrinterV2\src\classes\YouTube.py", line 83, in __init__
self.browser: webdriver.Firefox = webdriver.Firefox(service=self.service, options=self.options)
File "C:\Users\mikey\.pyenv\pyenv-win\versions\3.9.13\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 69, in __init__
super().__init__(command_executor=executor, options=options)
File "C:\Users\mikey\.pyenv\pyenv-win\versions\3.9.13\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 208, in __init__
self.start_session(capabilities)
File "C:\Users\mikey\.pyenv\pyenv-win\versions\3.9.13\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "C:\Users\mikey\.pyenv\pyenv-win\versions\3.9.13\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\mikey\.pyenv\pyenv-win\versions\3.9.13\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Hey - Awesome project.
I've noticed some inconsistent behavior where the first time I ran the project the youtube short video uploaded without issue. However going through the workflow again results in an error from the Youtube webui during the upload step. Screenshots attached below for reference and verbose is True in the config.json
Do you have any suggestions on how I might best go about troubleshooting this further?
When I run the project using my MacBook, I found that the output address was [/MoneyPrinterV2/venv**\Lib\**site-packages/TTS/.models.json] ,this Path is not supported in Mac, so I can't locate the real address.
This piece of code might need some adjustments.
# Path to the .models.json file
models_json_path = os.path.join(
ROOT_DIR,
venv_site_packages,
"TTS",
".models.json",
)
✅ => Chose song: 1-minute-of-silence.zip
Traceback (most recent call last):
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\main.py", line 362, in
main()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\main.py", line 101, in main
youtube.generate_video(tts)
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 530, in generate_video
path = self.combine()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 468, in combine
subtitles_path = self.generate_subtitles(self.tts_path)
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 397, in generate_subtitles
transcriber = aai.Transcriber(config=config)
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\assemblyai\transcriber.py", line 823, in init
self._client = client or _client.Client.get_default()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\assemblyai\client.py", line 88, in get_default
cls._default = cls(
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\assemblyai\client.py", line 32, in init
raise ValueError(
ValueError: Please provide an API key via the ASSEMBLYAI_API_KEY environment variable or the global settings.
I recently installed this on Linux, I followed all of the installation steps. I saw a similar issue for Windows but did not see a solution for Linux. Here is the more specific error:
Traceback (most recent call last):
File "/home/adi/MoneyPrinterV2/src/main.py", line 14, in
from classes.YouTube import YouTube
File "/home/adi/MoneyPrinterV2/src/classes/YouTube.py", line 30, in
change_settings({"IMAGEMAGICK_BINARY": get_imagemagick_path()})
^^^^^^^^^^^^^^^^^^^^^^
File "/home/adi/MoneyPrinterV2/src/config.py", line 241, in get_imagemagick_path
with open(os.path.join(ROOT_DIR, "config.json"), "r") as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/adi/MoneyPrinterV2/config.json'
Dear author:
I would like to check locally if I have successfully generated a video. How can I view it?
I run the main.py and select [Show all Shorts], and The output is as follows:
I have checked the folder in ../AppData/Local/tts/tts_models--en--ljspeech--tacotron2-DDC_ph and all files in the folder are as follows:
Here is my config
{
"verbose": true,
"firefox_profile": "I have filled this with my own firefox_profile",
"headless": false,
"twitter_language": "English",
"llm": "gpt4",
"image_prompt_llm": "gpt35_turbo",
"image_model": "prodia",
"threads": 2,
"zip_url": "D:\\mp3sample\\mp3.zip",
"is_for_kids": false,
"google_maps_scraper": "https://github.com/gosom/google-maps-scraper/archive/refs/tags/v0.9.7.zip",
"email": {
"smtp_server": "smtp.gmail.com",
"smtp_port": 587,
"username": "",
"password": ""
},
"google_maps_scraper_niche": "",
"scraper_timeout": 300,
"outreach_message_subject": "I have a question...",
"outreach_message_body_file": "outreach_message.html",
"assembly_ai_api_key": "I have filled this with my own assembly_ai_api_key",
"font": "bold_font.ttf",
"imagemagick_path": "D:\\ImageMagick-7.1.1-Q16-HDRI\\magick.exe"
}
How can I see the generated video locally? Hope to receive your reply, thank you
Generated Title is too long. Retrying...
always having this error when trying to generate youtube video
Traceback (most recent call last):
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\main.py", line 362, in
main()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\main.py", line 101, in main
youtube.generate_video(tts)
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 511, in generate_video
self.generate_topic()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 138, in generate_topic
completion = self.generate_response(f"Please generate a specific video idea that takes about the following topic: {self.niche}. Make it exactly one sentence. Only return the topic, nothing else.")
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\src\classes\YouTube.py", line 111, in generate_response
return g4f.ChatCompletion.create(
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\g4f_init_.py", line 140, in create
return result if stream else ''.join([str(chunk) for chunk in result])
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\g4f_init_.py", line 140, in
return result if stream else ''.join([str(chunk) for chunk in result])
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\g4f\Provider\retry_provider.py", line 65, in create_completion
self.raise_exceptions()
File "C:\Users\highm\Desktop\MoneyPrinterV2-main\venv\lib\site-packages\g4f\Provider\retry_provider.py", line 114, in raise_exceptions
raise RetryProviderError("RetryProvider failed:\n" + "\n".join([
g4f.errors.RetryProviderError: RetryProvider failed:
Liaobots: ClientResponseError: 401, message='Unauthorized', url=URL('https://liaobots.work/api/user')
Bing: Exception: CaptchaChallenge: Use other cookies or/and ip address
Can you provide a detailed tutorial?
Traceback (most recent call last):
File "/home/dongwook/Project/MoneyPrinterV2/src/main.py", line 14, in
from classes.YouTube import YouTube
File "/home/dongwook/Project/MoneyPrinterV2/src/classes/YouTube.py", line 30, in
change_settings({"IMAGEMAGICK_BINARY": get_imagemagick_path()})
^^^^^^^^^^^^^^^^^^^^^^
File "/home/dongwook/Project/MoneyPrinterV2/src/config.py", line 241, in get_imagemagick_path
with open(os.path.join(ROOT_DIR, "config.json"), "r") as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/dongwook/Project/MoneyPrinterV2/config.json'
Traceback (most recent call last):
File "D:\Money PrinterV2\MoneyPrinterV2\src\main.py", line 14, in
from classes.YouTube import YouTube
File "D:\Money PrinterV2\MoneyPrinterV2\src\classes\YouTube.py", line 30, in
change_settings({"IMAGEMAGICK_BINARY": get_imagemagick_path()})
^^^^^^^^^^^^^^^^^^^^^^
File "D:\Money PrinterV2\MoneyPrinterV2\src\config.py", line 241, in get_imagemagick_path
with open(os.path.join(ROOT_DIR, "config.json"), "r") as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Money PrinterV2\MoneyPrinterV2\config.json
I'm trying to run everything, but it always gets stuck with TTS. I'm using Python v3.9.0.
ERROR: Failed building wheel for TTS
Failed to build TTS
ERROR: Could not build wheels for TTS which use PEP 517 and cannot be installed directly
And there are a bunch of red letters on top of these messages. I've tried different versions of Python, attempted to delete everything and start from scratch, and even installed it in a different folder, but none seem to work. Do you know what could be causing this?
I just can't seem to get it to work.
I installed the project cleanly by cloning from git and set up the virtual environment properly.
I am using Python 3.9.13.
Every time I try to start main.py I'm getting following error:
I made sure TTS is indeed installed and tried setting up the venv again by deleting the folder and creating a new venv (both using the provided commands and by myself).
Any idea what may be causing this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.