I’m trying to run selenium on a Raspberry Pi 3.
I’ve installed geckodriver and added it to my path.
$: which geckodriver
I’ve seen this post and have done the following:
sudo apt-get update sudo apt-get install iceweasel sudo apt-get install xvfb sudo pip install selenium sudo pip install PyVirtualDisplay sudo pip install xvfbwrapper
When I execute the following code:
from selenium import webdriver driver = webdriver.Firefox() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 145, in __init__ self.service.start() File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 74, in start stdout=self.log_file, stderr=self.log_file) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 8] Exec format error
I’ve seen a lot of posts about
OSError: [Errno 8] Exec format error – most of them say “use Chrome instead” but I know chrome but chrome doesn’t support ARM architecture
Not sure where to go with this. Folks seem to be able to get selenium running but I haven’t been able to make that happen
pi:~$ uname -a Linux rpb 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux pi:~$ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.