carelink-python-client icon indicating copy to clipboard operation
carelink-python-client copied to clipboard

selenium.common.exceptions.InvalidArgumentException: Message: binary is not a Firefox executable

Open OGianni opened this issue 1 year ago • 1 comments

HI, in the step where I should enter username and password firefox does not open and this appears: $python3 carelink_carepartner_api_login.py performing login... captcha url: https://mdtlogin-ocl.medtronic.com:443/mmcl/enterprise/login?sessionID=d60d051f-410d-47e6-8af8-db4465251fa0 opening Firefox instance... Warning: you may need to close Firefox if it's already running or nothing happens! Traceback (most recent call last): File "/home/meteog/carelink-python-client/carelink_carepartner_api_login.py", line 277, in main() File "/home/meteog/carelink-python-client/carelink_carepartner_api_login.py", line 273, in main token_data = do_login(endpoint_config) File "/home/meteog/carelink-python-client/carelink_carepartner_api_login.py", line 182, in do_login captcha_code, captcha_sso_state = do_captcha(captcha_url, sso_config["oauth"]["client"]["client_ids"][0]['redirect_uri']) File "/home/meteog/carelink-python-client/carelink_carepartner_api_login.py", line 106, in do_captcha driver = webdriver.Firefox() File "/usr/local/lib/python3.10/dist-packages/seleniumwire/webdriver.py", line 179, in init super().init(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/firefox/webdriver.py", line 69, in init super().init(command_executor=executor, options=options) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 208, in init self.start_session(capabilities) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: binary is not a Firefox executable

has this happened to you before? Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

Thanks Gianni

OGianni avatar Mar 31 '24 23:03 OGianni

This hasn't happened to me. Looks like a problem with installed dependencies. Please have a look at issues #15 and #18.

ondrej1024 avatar Apr 02 '24 07:04 ondrej1024