Getting this error:
Error: Authentication Failure (cannot access local variable 'driver' where it is not associated with a value)
<<<<<<
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 69, in _chrome_driver
with chrome_driver(headless=headless) as driver:
File "/usr/local/lib/python3.12/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/chrome_driver.py", line 38, in chrome_driver
driver = uc.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/undetected_chromedriver/init.py", line 466, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 61, in init
super().init(command_executor=executor, options=options)
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.12/site-packages/undetected_chromedriver/init.py", line 724, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:60161
from session not created: This version of ChromeDriver only supports Chrome version 123
Current browser version is 122.0.6261.94
Stacktrace:
#0 0x556b10a59993
#1 0x556b10754136
#2 0x556b1078e3bb
#3 0x556b1078d585
#4 0x556b10783ebb
#5 0x556b107cd239
#6 0x556b107c0a73
#7 0x556b10791c93
#8 0x556b1079265e
#9 0x556b10a1e08b
#10 0x556b10a22005
#11 0x556b10a0c491
#12 0x556b10a22b92
#13 0x556b109f19ef
#14 0x556b10a48df8
#15 0x556b10a48fcb
#16 0x556b10a58ae4
#17 0x7fafa5a8a134
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 58, in init
self._login(account)
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 95, in _login
with self._chrome_driver() as driver:
File "/usr/local/lib/python3.12/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 76, in _chrome_driver
driver.save_screenshot(path)
^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/safeway-coupons", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/app.py", line 125, in main
sc.clip_for_account(account)
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/safeway.py", line 38, in clip_for_account
swy = SafewayClient(account, self.debug_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/client.py", line 17, in init
self.session = LoginSession(account, debug_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 64, in init
raise AuthenticationFailure(e, account) from e
safeway_coupons.errors.AuthenticationFailure: Authentication Failure (cannot access local variable 'driver' where it is not associated with a value)
Getting this error:
Error: Authentication Failure (cannot access local variable 'driver' where it is not associated with a value)
<<<<<<
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 69, in _chrome_driver
with chrome_driver(headless=headless) as driver:
File "/usr/local/lib/python3.12/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/chrome_driver.py", line 38, in chrome_driver
driver = uc.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/undetected_chromedriver/init.py", line 466, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 61, in init
super().init(command_executor=executor, options=options)
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.12/site-packages/undetected_chromedriver/init.py", line 724, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:60161
from session not created: This version of ChromeDriver only supports Chrome version 123
Current browser version is 122.0.6261.94
Stacktrace:
#0 0x556b10a59993
#1 0x556b10754136
#2 0x556b1078e3bb
#3 0x556b1078d585
#4 0x556b10783ebb
#5 0x556b107cd239
#6 0x556b107c0a73
#7 0x556b10791c93
#8 0x556b1079265e
#9 0x556b10a1e08b
#10 0x556b10a22005
#11 0x556b10a0c491
#12 0x556b10a22b92
#13 0x556b109f19ef
#14 0x556b10a48df8
#15 0x556b10a48fcb
#16 0x556b10a58ae4
#17 0x7fafa5a8a134
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 58, in init
self._login(account)
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 95, in _login
with self._chrome_driver() as driver:
File "/usr/local/lib/python3.12/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 76, in _chrome_driver
driver.save_screenshot(path)
^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/safeway-coupons", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/app.py", line 125, in main
sc.clip_for_account(account)
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/safeway.py", line 38, in clip_for_account
swy = SafewayClient(account, self.debug_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/client.py", line 17, in init
self.session = LoginSession(account, debug_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/safeway_coupons/session.py", line 64, in init
raise AuthenticationFailure(e, account) from e
safeway_coupons.errors.AuthenticationFailure: Authentication Failure (cannot access local variable 'driver' where it is not associated with a value)