'Selenium call to geckodriver results in "Connection reset"

I am trying to get selenium working with Firefox from Python for testing. This simple snippet:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()

opens a Firefox Window and immediately shows "Connection reset" and then closes the Window. I am running Firefox v96.0.2 and geckodriver v0.30.0 on MacOS v10.14.6 I have no trouble with the chromedriver.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source