selenium: [🐛 Bug]: NoSuchDriverException in selenium 4 (raspberry pi)

What happened?

I am using selenium in a raspberry pi 4, and, while using with selenium 3.8.0, it works, but, if i upgrade to selenium 4, (4.26.1), i have a NoSuchDriverException as it cant find the driver

How can we reproduce the issue?

just start the webdriver for chrome in a raspberry pi 4 using selenium 4

Relevant log output

File "/home/javi/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 78, in _binary_paths
    raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location

Operating System

Raspberry PI OS

Selenium version

python 4.26.1

What are the browser(s) and version(s) where you see this issue?

chromium latest

What are the browser driver(s) and version(s) where you see this issue?

chromedriver latest

Are you using Selenium Grid?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

Thats the whole code, there is nothing else there

from selenium import webdriver

if name == 'main':

  service = webdriver.ChromeService(executable_path='/usr/bin/chromedriver')
  driver = webdriver.Chrome(service=service)
  driver.get('https://www.google.com')

Can you replicate that from your end?