I'm working on Fedora 34, x86_64, fully patched. The machine took an update on Monday October 4 and it broke things. The update included the following:
Upgrade chromedriver-94.0.4606.61-1.fc34.x86_64 @updates
Upgraded chromedriver-93.0.4577.63-1.fc34.x86_64 @@System
Upgrade chromium-94.0.4606.61-1.fc34.x86_64 @updates
Upgraded chromium-93.0.4577.63-1.fc34.x86_64 @@System
Upgrade chromium-common-94.0.4606.61-1.fc34.x86_64 @updates
Upgraded chromium-common-93.0.4577.63-1.fc34.x86_64 @@System
I can duplicate the "
SessionNotCreatedException: session not created" exception with the following code:
opts = Options()
opts.binary_location = get_chrome()
opts.add_argument('--headless')
opts.add_argument('--no-sandbox')
opts.add_argument('--disable-dev-shm-usage')
opts.add_argument('--disable-gpu')
driver = webdriver.Chrome(options=opts)
I can sidestep the
SessionNotCreatedException with this code, but it results in another exception:
opts = Options()
opts.binary_location = get_chrome()
opts.add_argument('--headless')
opts.add_argument('--no-sandbox')
opts.add_argument('--disable-dev-shm-usage')
opts.add_argument('--disable-gpu')
driver = webdriver.Chrome(chrome_options=opts)
The code above produces another exception, though. The exception is:
selenium.common.exceptions.WebDriverException: Message: unknown error: unable to
discover open window in chrome
(Session info: headless chrome=94.0.4606.61)
So we are dead in the water, too.