Instapy: Problem with the quickstart script

Created on 18 Aug 2020  路  6Comments  路  Source: timgrossmann/InstaPy

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities thats my error code idk how to fix it

All 6 comments

i have something similar with this error first time i'm uising it and get this

Traceback (most recent call last):
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\Quickstart.py", line 52, in <module>
    session = InstaPy(username=insta_username,
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\instapy\instapy.py", line 312, in __init__
    self.browser, err_msg = set_selenium_local_session(
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\instapy\browser.py", line 121, in set_selenium_local_session
    browser = webdriver.Firefox(
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 170, in __init__
    RemoteWebDriver.__init__(
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\Cpu\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\selenium\webdriver\remote\errorhandler.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

add geckodriver.exe to the path and add the geckodriver in the same folder as quickstart.py

add geckodriver.exe to the path and add the geckodriver in the same folder as quickstart.py
wich path? i've put it everything still get errors :(

gecko driver is in my path but I still get the error. I tried with both releases 0.26 and 0.27. I tried with both manually setting the browser executable path and automatic path. nothing works. the only thing I could get to work was using firefox gui.

$ ./geckodriver --version
geckodriver 0.27.0 (7b8c4f32cdde 2020-07-28 18:16 +0000)
$ which geckodriver 
/usr/bin/geckodriver
$ geckodriver --version
geckodriver 0.26.0

I tried setting browser_executable_path to global path, relative to local path to the same place as the python script, absolute path to local isntall etc. nothing works. I always get the same error.

No news ? I got this issue too. Latest Geckodriver on path, still got error.

I had the same problem on CentOS Linux, Geckodriver 0.27.0, Firefox 68.12.0esr and Selenium 3.141.0.
Then I downgraded to Geckodriver 0.26.0 and it works fine now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

converge picture converge  路  3Comments

CodeMaster1 picture CodeMaster1  路  3Comments

ingorichter picture ingorichter  路  3Comments

drcyber975 picture drcyber975  路  3Comments

ghost picture ghost  路  3Comments