InstaPy / InstaPy/InstaPy

Geckodriver not working on Raspberry Pi

Open
#6,521 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
18.2k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

I am trying to install InstaPy on the Raspberry Pi (raspbian).

I'm not sure whether instapy is calling the correct gckodriver from usr/local/bin. How can I ensure this? Path is:
```pi@raspberrypi:~ $ echo $PATH
/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
```

But I'm getting following error.
```
InstaPy Version: 0.6.16
._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/home/pi/InstaPy"
Traceback (most recent call last):
File "/home/pi/quickstart.py", line 12, in
session = InstaPy(username=insta_username,
File "/home/pi/.local/lib/python3.9/site-packages/instapy/instapy.py", line 330, in __init__
self.browser, err_msg = set_selenium_local_session(
File "/home/pi/.local/lib/python3.9/site-packages/instapy/browser.py", line 123, in set_selenium_local_session
browser = webdriver.Firefox(
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
self.service.start()
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service /usr/local/bin/geckodriver unexpectedly exited. Status code was: 1
```

Even starting geckodriver directly is not working.
```
pi@raspberrypi:~ $ python3
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> browser = webdriver.Firefox()
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/firefox/webdriver.py", line 173, in __init__
self.service.start()
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/home/pi/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 1
```

Geckodriver version used:
```
pi@raspberrypi:~ $ geckodriver --version
geckodriver 0.23.0 ( 2018-10-04)
```
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
```
Selenium version
```
VERSION
4.1.1
```
``` FF 91.6.0esr (32bit)```

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.