This is hard because the geckodriver release notes aren't consistent about saying which version of Firefox and Selenium they're compatible with. Note: Don't use the latest geckodriver - you need to pick the one that matches your version of Firefox.
Firefox 52.5.0 ( sudo apt-get install firefox-esr).Using OS: Raspbian based on Debian Stretch (Sep 7, 2017, linux kernel v4.9).
(Note: Increasing the timeout in firefox_binary.py as described here didn't change the error.) Profile Dir: /tmp/tmpv2bdep If you specified a log_file in the FirefoxBinary constructor, check it for details. Self._wait_until_connectable(timeout=timeout)įile "/home/pi/.virtualenv/python3.2.3/lib/python3.2/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 106, in _wait_until_connectable _browser(self.profile, timeout=timeout)įile "/home/pi/.virtualenv/python3.2.3/lib/python3.2/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52: armv6l GNU/Linuxįile "/home/pi/.virtualenv/python3.2.3/lib/python3.2/site-packages/selenium/webdriver/firefox/webdriver.py", line 103, in _init_įile "/home/pi/.virtualenv/python3.2.3/lib/python3.2/site-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in _init_ Using "old" Selenium like 2.53.1 ( pip3 install selenium=2.53.1) produces the "can't load the profile" error: $ uname -a firefox -version python3 -version python3 -c "import selenium print(\"Selenium: \" + selenium._version_)" xvfb-run python3 -c "from selenium import webdriver browser = webdriver.Firefox()"
(I've already run sudo apt-get update, upgrade and dist-upgrade.) I'm trying to run Selenium on my Raspberry Pi 2 Model B but I'm having trouble finding a compatible combination of versions of Selenium, Firefox, and geckodriver.