mirror of
https://github.com/FujiwaraChoki/MoneyPrinterV2.git
synced 2026-04-26 06:35:51 +03:00
[GH-ISSUE #111] YouTube.py not loading Firefox binary even if i try setting its absolute path #75
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#75
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 @MinervaArgus on GitHub (Feb 19, 2025).
Original GitHub issue: https://github.com/FujiwaraChoki/MoneyPrinterV2/issues/111
Traceback (most recent call last):
File "/mnt/d/MoneyPrinterV2/src/main.py", line 436, in
main()
File "/mnt/d/MoneyPrinterV2/src/main.py", line 132, in main
youtube = YouTube(
File "/mnt/d/MoneyPrinterV2/src/classes/YouTube.py", line 83, in init
self.browser: webdriver.Firefox = webdriver.Firefox(service=self.service, options=self.options)
File "/mnt/d/MoneyPrinterV2/venv/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 71, in init
super().init(command_executor=executor, options=options)
File "/mnt/d/MoneyPrinterV2/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 250, in init
self.start_session(capabilities)
File "/mnt/d/MoneyPrinterV2/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 342, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/mnt/d/MoneyPrinterV2/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "/mnt/d/MoneyPrinterV2/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: binary is not a Firefox executable
@FujiwaraChoki commented on GitHub (Feb 19, 2025):
What is your config?
@MinervaArgus commented on GitHub (Feb 19, 2025):
{
"verbose": true,
"firefox_profile": "/mnt/d/profile",
"headless": false,
"twitter_language": "English",
"llm": "gpt4",
"image_prompt_llm": "gpt35_turbo",
"image_model": "prodia",
"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": "",
"font": "bold_font.ttf",
"imagemagick_path": "/mnt/c/'Program Files'/ImageMagick-7.1.1-Q16-HDRI/magick.exe"
}
@MinervaArgus commented on GitHub (Feb 19, 2025):
@FujiwaraChoki
I even tried editing Youtube.py to have this change
self.options.binary_location = r"\\mnt\\c\\'Program Files'\\'Mozilla Firefox'\\firefox.exe"and it still doesn't work
@FujiwaraChoki commented on GitHub (Feb 21, 2025):
It doesn't seem like you have the correct firefox profile path set.
Is /d/profile a valid firefox profile?
Also, try to use it on a Windows Native Drive, not WSL.
@MinervaArgus commented on GitHub (Feb 25, 2025):
tried it on Windows and i get an error for all of the moviepy imports stating that they werent available from moviepy, /mnt/d/profile is a valid path and is the path to the folder of the profile i made in Firefox specifically for MoneyPrinter