[GH-ISSUE #111] YouTube.py not loading Firefox binary even if i try setting its absolute path #75

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

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

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 <module> 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
Author
Owner

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

What is your config?

<!-- gh-comment-id:2668522069 --> @FujiwaraChoki commented on GitHub (Feb 19, 2025): What is your config?
Author
Owner

@MinervaArgus commented on GitHub (Feb 19, 2025):

What is your config?

{
"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"
}

<!-- gh-comment-id:2668632656 --> @MinervaArgus commented on GitHub (Feb 19, 2025): > What is your config? { "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" }
Author
Owner

@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

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

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

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

@MinervaArgus commented on GitHub (Feb 25, 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.

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

<!-- gh-comment-id:2680058608 --> @MinervaArgus commented on GitHub (Feb 25, 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. 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
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#75
No description provided.