Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OGianni opened this issue Mar 31, 2024 · 1 comment

Comments

@OGianni
Copy link

OGianni commented Mar 31, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants