ondrej1024 / carelink-python-client

Experimental Medtronic CareLink Client in Python
GNU Affero General Public License v3.0
35 stars 18 forks source link

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

Open OGianni opened 3 months ago

OGianni commented 3 months ago

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

ondrej1024 commented 3 months ago

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