Hello,
I am trying to install Selenium along with a webdriver on my Raspberry 5 running Debian Bookworm
I am running python in a virtual environment.
I run pip install selenium to install Selenium, according to the docs it should also download a webdriver
I am trying to run a simple python file but I keep coming up with the same error that it can not find the webdriver.
I have now downloaded and installed chromedriver and also geckodriver and placed them in various location that are in my path but still keep getting the same error message (see below), my $PATH is
(main_venv) sean@server:~ $ echo $PATH
/home/sean/main_venv:/home/sean/main_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
I have
chromedriver and also geckodriver in /home/sean/main_venv:/home/sean/main_venv/bin:/usr/local/bin and the files are marked as executable
Traceback (most recent call last):
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 38, in get_path
path = SeleniumManager().driver_location(options) if path is None else path
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/common/selenium_manager.py", line 89, in driver_location
args = [str(self.get_binary()), "--browser", browser]
^^^^^^^^^^^^^^^^^
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/common/selenium_manager.py", line 63, in get_binary
raise WebDriverException(f"Unsupported platform/architecture combination: {sys.platform}/{arch}")
selenium.common.exceptions.WebDriverException: Message: Unsupported platform/architecture combination: linux/aarch64
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sean/main_venv/tt.py", line 4, in <module>
driver = webdriver.Chrome()
^^^^^^^^^^^^^^^^^^
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 49, in __init__
self.service.path = DriverFinder.get_path(self.service, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sean/main_venv/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 41, in get_path
raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
Any help would be great