Instapy: Unable to locate element on Raspberry Pi

Created on 3 Sep 2017  路  2Comments  路  Source: timgrossmann/InstaPy

Hi, folks! :)

I'm trying to get the bot running on my Raspberry Pi 3B. I'm digging since days and think i have the correct apps and settings yet but still get one or more error messages.

Traceback (most recent call last):
File "quickstart.py", line 4, in
.set_switch_language(True)\
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 161, in login
if not login_user(self.browser, self.username, self.password, self.switch_language):
File "/home/pi/Projects/InstaPy/instapy/login_util.py", line 19, in login_user
login_elem = browser.find_element_by_xpath("//article/div/div/p/a[text()='Log in']")
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 354, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 832, in find_element
'value': value})['value']
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 297, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //article/div/div/p/a[text()='Log in']

bug help wanted

Most helpful comment

Got this issue fixed by reinstalling/updating selenium...

pip install -U selenium

All 2 comments

Make sure you have installed selenium. Also when executing make sure you force it to use 3.x instead of 2.x

Got this issue fixed by reinstalling/updating selenium...

pip install -U selenium

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Spyd3r0us picture Spyd3r0us  路  3Comments

drcyber975 picture drcyber975  路  3Comments

converge picture converge  路  3Comments

seuraltimez picture seuraltimez  路  3Comments

CodeMaster1 picture CodeMaster1  路  3Comments