Instapy: Error: Unable to find a matching set of capabilities

Created on 19 Sep 2019  路  5Comments  路  Source: timgrossmann/InstaPy

Hi,

I cannot run InstaPy

OS: Windows 10
Browsers: Chrome 77, Firefox 69

Current Behavior

`starting instapy with quickstart

InstaPy Version: 0.6.4
._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "C:/Users/Jon/InstaPy"
Traceback (most recent call last):
File "../quickstart.py", line 24, in
headless_browser=False)
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesinstapyinstapy.py", line 321, in __init__
self.logger,
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesinstapybrowser.py", line 114, in set_selenium_local_session
options=firefox_options,
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverfirefoxwebdriver.py", line 174, in __init__
keep_alive=True)
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverremotewebdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverremotewebdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverremotewebdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:UsersJonAppDataLocalProgramsPythonPython37-32libsite-packagesseleniumwebdriverremoteerrorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities`

wontfix

Most helpful comment

Hello @obabuba @alexsmedile @jonparro ,

Solution:
1) Download and install Mozilla Firefox (and try to tun a code again)
2) If the first step did not help you, follow this issue: #4923 - simply add this line to browse.py: firefox_options.binary = r'C:Program FilesMozilla Firefoxfirefox.exe';

All 5 comments

Same here

same everywhere man...

Hello @obabuba @alexsmedile @jonparro ,

Solution:
1) Download and install Mozilla Firefox (and try to tun a code again)
2) If the first step did not help you, follow this issue: #4923 - simply add this line to browse.py: firefox_options.binary = r'C:Program FilesMozilla Firefoxfirefox.exe';

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

Worked around by adding one line in options.py
In my case the file was located at
C:UsersAppDataLocalProgramsPythonPython38-32Libsite-packagesseleniumwebdriverfirefoxoptions.py

add the following code:
opts["binary"] = "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
this line should go above opts.update(self.log.to_capabilities())

This is just a workaround and not the permanent fix.

Was this page helpful?
0 / 5 - 0 ratings