I am running a simple python based selenium webdriver script for geckodriver

```
from selenium import webdriver
geckodriver_path = "./webdrivers/geckodriver"
driver = webdriver.Firefox(executable_path=geckodriver_path)
driver.get("https://dev.to")
driver.find_element_by_id("nav-search").send_keys("Selenium")

```

after execution showing Warning message along with Exception

```
/<path>/demo.py:3: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  driver = webdriver.Firefox(executable_path=geckodriver_path)

```

And the exception is

```
selenium.common.exceptions.WebDriverException: Message: Service ./webdrivers/geckodriver unexpectedly exited. Status code was: 1

```

The environment which is being used  

python(3.9.2)  

selenium(4.1.0)  

geckodriver(0.24.0)  

firefox(87.0 64-bit)  

Output of geckodriver.log  

```
error: Found argument '--websocket-port' which wasn't expected, or isn't valid in this context

USAGE:
    geckodriver [FLAGS] [OPTIONS]

For more information try --help

```