Instapy: New installation issue - Raspbian

Created on 7 Feb 2019  ยท  34Comments  ยท  Source: timgrossmann/InstaPy

._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/home/pi/InstaPy"

._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._.
INFO [2019-02-07 08:37:49] [my_login.py] Using built in instapy-chromedriver executable (version 2.46)
Traceback (most recent call last):
File "my_login.py", line 20, in
nogui=False)
File "/home/pi/Projects/InstaPy2/instapy/instapy.py", line 276, in __init__
self.set_selenium_local_session()
File "/home/pi/Projects/InstaPy2/instapy/instapy.py", line 326, in set_selenium_local_session
self.logger)
File "/home/pi/Projects/InstaPy2/instapy/browser.py", line 123, in set_selenium_local_session
chrome_options=chrome_options)
File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 76, in start
stdin=PIPE)
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

Raspberry Pi installation

Most helpful comment

Exec format error means that the binary is not in the right format. The built-in Chromedriver doesn't work on RPis since their Chromium is v65 (which is old). Install the RPi-specific Chromedriver like this:

pip3 uninstall instapy-chromedriver 
pip3 install instapy-chromedriver==2.36.post0

That fixes that ๐Ÿ˜‰

All 34 comments

however the following error appears in the old installation

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[text()='Followers' or text()='Following']/../../following-sibling::div"}

try
pip3 uninstall instapy-chromedriver and
pip3 install --user instapy-chromedriver==2.36 and start again :)

thanks. But some issue persist

Em qui, 7 de fev de 2019 09:34, Felix Breuer <[email protected]
escreveu:

try
pip3 uninstall instapy-chromedriver and
pip3 install --user instapy-chromedriver==2.36 and start again :)

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timgrossmann/InstaPy/issues/3932#issuecomment-461384051,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AoiNs7MkurjjSLQkbemI1XFm6VaTtrvrks5vLA9agaJpZM4anBJZ
.

@scriptworld-git the problem with that is that instapy-chromedriver==2.44 is a dependency. So installing v2.36 would install the correct version of chromedriver, but it wouldn't work because of that dependency.
Edit: This is wrong. Dependencies only get checked at installation and updates.

@escariao did you install the chromedriver like described in How_to_Raspberry.md? If not, complete the first 2 steps of for Chrome.
Edit: Do it like @scriptworld-git said, but it's possible in one command:

pip3 install instapy-chromedriver==2.36 -I

If the uninstall and reinstall of v2.36 instapy-chromedriver does not lead to success:
Try "For Chrome" way from https://github.com/timgrossmann/InstaPy/blob/master/docs/How_to_Raspberry.md

Navigate to the assets folder:

wget https://github.com/electron/electron/releases/download/v3.0.0-beta.5/chromedriver-v3.0.0-beta.5-linux-armv7l.zip
unzip chromedriver-v3.0.0-beta.5-linux-armv7l.zip
chmod 755 chromedriver
chmod +x chromedriver
sudo apt-get remove chromium

I have the same problem.
when I install it there isn't the assets folder, however i create the directory, follow the instructio for chrome but doesnt work

@CarrattaFrancesco try installing the chromedriver version that works with InstaPy from pip: pip3 install instapy-chromedriver==2.36 -I

so I already do that but still not work.
two day ago everythings works fine but now if I want to use chrome give me this error:
OSError: [Errno 8] Exec format error
I follow how_toRaspberry.md perfectely and also execute "pip3 install instapy-chromedriver==2.36 -I" but doesnt work.

@CarrattaFrancesco You followed the complete Raspberry Pi tutorial? Becuase it's old. It'll get updated soon. Could you please paste your whole error?

yes, I completely follow the raspberry Pi Tutorial, I worked with InstaPy on Raspberry since 3 months then I understand how it works.
I follow "how_to_raspberry.md" to install but when I use:
session.follow_user_followers(['xxxx'], amount=20, randomize=False, interact=False)
give me this error:

INFO [2019-02-08 16:40:54] [personechefannocose] Using built in instapy-chromedriver executable (version 2.36)
Traceback (most recent call last):
File "quickstart.py", line 13, in
session = InstaPy(username='xxxxx', password='xxxxx', nogui=True, headless_browser=True)
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 276, in __init__
self.set_selenium_local_session()
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 326, in set_selenium_local_session
self.logger)
File "/home/pi/Projects/InstaPy/instapy/browser.py", line 123, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 76, in start
stdin=PIPE)
File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error


So I try to figure out using Firefox instead chrome, session start but give me another error that is solved by @converge in #3459 and other similar issue, i change the part under the two #find dialog box with the correct code in unfollow_util.py but give me the same error:

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-02-08 14:51:54] [personechefannocose] Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo

.........................................................................
INFO [2019-02-08 14:52:40] [personechefannocose] Logged in successfully!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2019-02-08 14:52:40] [personechefannocose] Saving account progress...


INFO [2019-02-08 14:53:04] [personechefannocose] Starting to follow user Followers..
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
INFO [2019-02-08 14:53:04] [personechefannocose] User 'ademasiph' [1/1]


If raising an issue, please also upload the file located at:
/tmp/20190208-145410.html


INFO [2019-02-08 14:54:10] [personechefannocose] Sessional Live Report:
|> No any statistics to show

On session start was FOLLOWING 640 users & had 285 FOLLOWERS
[Session lasted 2.87 minutes]

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-02-08 14:54:10] [personechefannocose] Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 750, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[3]/div/div/div[2]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "quickstart.py", line 20, in
session.follow_user_followers(['ademasiph'], amount=20, randomize=False, interact=False)
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 3068, in follow_user_followers
self.logfolder)
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 1027, in get_given_user_followers
logger, logfolder)
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 753, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[contains(@class,'isgrP')]

So now I'm stuck and dont now how figure out, I'm really glad if you can help me to find a way to solve something

yes, I completely follow the raspberry Pi Tutorial, I worked with InstaPy on Raspberry since 3 months then I understand how it works.
I follow "how_to_raspberry.md" to install but when I use:
session.follow_user_followers(['xxxx'], amount=20, randomize=False, interact=False)
give me this error:

INFO [2019-02-08 16:40:54] [personechefannocose] Using built in instapy-chromedriver executable (version 2.36)
Traceback (most recent call last):
File "quickstart.py", line 13, in
session = InstaPy(username='xxxxx', password='xxxxx', nogui=True, headless_browser=True)
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 276, in init
self.set_selenium_local_session()
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 326, in set_selenium_local_session
self.logger)
File "/home/pi/Projects/InstaPy/instapy/browser.py", line 123, in set_selenium_local_session
chrome_options=chrome_options)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init
self.service.start()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 76, in start
stdin=PIPE)
File "/usr/lib/python3.5/subprocess.py", line 676, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

So I try to figure out using Firefox instead chrome, session start but give me another error that is solved by @converge in #3459 and other similar issue, i change the part under the two #find dialog box with the correct code in unfollow_util.py but give me the same error:

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-02-08 14:51:54] [personechefannocose] Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo

.........................................................................
INFO [2019-02-08 14:52:40] [personechefannocose] Logged in successfully!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2019-02-08 14:52:40] [personechefannocose] Saving account progress...

INFO [2019-02-08 14:53:04] [personechefannocose] Starting to follow user Followers..
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
INFO [2019-02-08 14:53:04] [personechefannocose] User 'ademasiph' [1/1]

If raising an issue, please also upload the file located at:
/tmp/20190208-145410.html

INFO [2019-02-08 14:54:10] [personechefannocose] Sessional Live Report:
|> No any statistics to show

On session start was FOLLOWING 640 users & had 285 FOLLOWERS
[Session lasted 2.87 minutes]

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-02-08 14:54:10] [personechefannocose] Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 750, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[3]/div/div/div[2]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "quickstart.py", line 20, in
session.follow_user_followers(['ademasiph'], amount=20, randomize=False, interact=False)
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 3068, in follow_user_followers
self.logfolder)
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 1027, in get_given_user_followers
logger, logfolder)
File "/home/pi/Projects/InstaPy/instapy/unfollow_util.py", line 753, in get_users_through_dialog
dialog = browser.find_element_by_xpath(dialog_address)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[contains(@Class,'isgrP')]

So now I'm stuck and dont now how figure out, I'm really glad if you can help me to find a way to solve something

@CarrattaFrancesco Do you already added these

from instapy import smart_run
from instapy import set_workspace

set_workspace ('/ home/pi/Projects/Instapy')

Remember, that set_workspace is your installation InstaPy path

yes but with path= None, i think that is the same.
This is my testing script:

from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace

set_workspace(path=None)

session = InstaPy(username='xxxx', password='xxxx', nogui=True, headless_browser=True)

with smart_run(session):
    """ Activity flow """
    session.follow_user_followers(['xxxxxx'], amount=20, randomize=False, interact=False)

@CarrattaFrancesco I'd recommend you the pip installation. To do that, remove the InstaPy folder you currently have. Then run

pip3 install instapy
pip3 install instapy-chromedriver==2.36 -I

Then either run quickstart.py (it will automatically create a folder named Instapy in your user's home directory) or create a new InstaPy folder somewhere, and pass that folder's path in set_workspace=(path=path/to/new/InstaPy/

I do everything:

  • delete Instapy folder
  • pip3 install instapy
Collecting instapy
  Downloading https://files.pythonhosted.org/packages/8c/17/a31b5638426d816b207936f28ecc191e1119e2c4d44223823c23a512f537/instapy-0.1.3-py2.py3-none-any.whl (249kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 256kB 880kB/s 
Collecting selenium>=3.141.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 911kB 346kB/s 
Collecting grpcio>=1.16.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/grpcio/grpcio-1.18.0-cp35-cp35m-linux_armv7l.whl (9.7MB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 9.7MB 34kB/s 
Collecting urllib3>=1.24.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 122kB 1.4MB/s 
Collecting emoji>=0.5.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9c/fb/7586e11ff9205c9be9d11d376fcb6990ec4bdfae0a35663fb1ada7e3c10f/emoji-0.5.1-py3-none-any.whl
Collecting regex>=2018.11.22 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/regex/regex-2019.2.7-cp35-cp35m-linux_armv7l.whl (544kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 552kB 565kB/s 
Collecting PyVirtualDisplay>=0.2.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/pyvirtualdisplay/PyVirtualDisplay-0.2.1-py3-none-any.whl
Collecting chardet>=3.0.4 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 143kB 1.4MB/s 
Collecting requests>=2.20.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 1.8MB/s 
Collecting PyYAML>=3.13 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-3.13-cp35-cp35m-linux_armv7l.whl (42kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 51kB 978kB/s 
Collecting protobuf>=3.6.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/77/78/a7f1ce761e2c738e209857175cd4f90a8562d1bde32868a8cd5290d58926/protobuf-3.6.1-py2.py3-none-any.whl (390kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 399kB 657kB/s 
Collecting six>=1.11.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting certifi>=2018.10.15 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 163kB 1.3MB/s 
Collecting EasyProcess>=0.2.3 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/easyprocess/EasyProcess-0.2.5-py3-none-any.whl
Collecting clarifai>=2.4.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/clarifai/clarifai-2.5.2-py3-none-any.whl (165kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 174kB 202kB/s 
Collecting future>=0.17.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/future/future-0.17.1-py3-none-any.whl (488kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 491kB 509kB/s 
Collecting jsonschema>=2.6.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting MeaningCloud-python>=1.1.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/28/c6/deb6c9d113f94ec99116ec4017b333660ce54344734d29f0cb98fdf32945/MeaningCloud_python-1.1.1-py2.py3-none-any.whl
Collecting instapy-chromedriver==2.44 (from instapy)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/88/f1/8fd8b480c1cf932f7ba9353f09b54c2cd465ec77cadad5a18fc6848e3d7f/instapy_chromedriver-2.44-py3-none-any.whl (16.8MB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 16.8MB 7.2kB/s 
Collecting idna>=2.7 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 226kB/s 
Collecting configparser>=3.5.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/43/63/220afe02a0d302c2244309b1dce3d884a865be65c7d8148ededfc0c29c31/configparser-3.7.1-py3-none-any.whl
Collecting plyer>=1.3.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/64/02/fa5c7054a879cfda9c937fedf8abfda6706c088da2f97c16655cf3c88626/plyer-1.4.0-py3-none-any.whl (131kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 133kB 1.6MB/s 
Collecting setuptools (from protobuf>=3.6.1->instapy)
  Downloading https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 583kB 528kB/s 
Collecting googleapis-common-protos<2,>=1.5.0 (from clarifai>=2.4.1->instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/googleapis-common-protos/googleapis_common_protos-1.5.6-py3-none-any.whl (69kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 71kB 815kB/s 
Installing collected packages: urllib3, selenium, six, grpcio, emoji, regex, EasyProcess, PyVirtualDisplay, chardet, certifi, idna, requests, PyYAML, setuptools, protobuf, future, jsonschema, googleapis-common-protos, configparser, clarifai, MeaningCloud-python, instapy-chromedriver, plyer, instapy
Successfully installed EasyProcess-0.2.5 MeaningCloud-python-1.1.1 PyVirtualDisplay-0.2.1 PyYAML-3.13 certifi-2018.11.29 chardet-3.0.4 clarifai-2.5.2 configparser-3.7.1 emoji-0.5.1 future-0.17.1 googleapis-common-protos-1.5.6 grpcio-1.18.0 idna-2.8 instapy-0.1.3 instapy-chromedriver-2.44 jsonschema-2.6.0 plyer-1.4.0 protobuf-3.6.1 regex-2019.2.7 requests-2.21.0 selenium-3.141.0 setuptools-40.8.0 six-1.12.0 urllib3-1.24.1
  • pip3 install instapy-chromedriver==2.36 -I
Collecting instapy-chromedriver==2.36
  Using cached https://files.pythonhosted.org/packages/47/24/0b9c61f65d3f76ea4ef75b52d02de7eaafec209d2c60368b9bd1160ba06a/instapy_chromedriver-2.36-py3-none-any.whl
Installing collected packages: instapy-chromedriver
Successfully installed instapy-chromedriver-2.44
  • I see that is installed instapy-chromedriver 2.44 so first unistall two times instapy-chromedriver and after the installation this is the console log
Collecting instapy-chromedriver==2.36
  Using cached https://files.pythonhosted.org/packages/47/24/0b9c61f65d3f76ea4ef75b52d02de7eaafec209d2c60368b9bd1160ba06a/instapy_chromedriver-2.36-py3-none-any.whl
Installing collected packages: instapy-chromedriver
Successfully installed instapy-chromedriver-2.36
  • I copy quickstart.py in the folder /home/pi/Instapy and change the path of workspace:
""" Quickstart script for InstaPy usage """

# imports
from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace


# set workspace folder at desired location (default is at your home folder)
set_workspace('/home/pi/Instapy')
#i try also with set_workspace(path='/home/pi/Instapy')

# get an InstaPy session!
session = InstaPy(username='xxxxx', password='xxxxx', nogui=True, headless_browser=True)

with smart_run(session):
    """ Activity flow """
    # general settings

    # activity
    session.follow_user_followers(['ademasiph'], amount=20, randomize=False, interact=False)
  • run quickstart.py in different way but give me the same error
 sudo python3 quickstart.py
 sudo python quickstart.py
 python3 quickstart.py
 python quickstart.py
 sudo xvfb-run python3 quickstart.py
 sudo xvfb-run python quickstart.py
xvfb-run python3 quickstart.py
xvfb-run python quickstart.py

and this is the error

INFO [2019-02-08 17:49:49] [personechefannocose]  Using built in instapy-chromedriver executable (version 2.36)
Traceback (most recent call last):
  File "quickstart.py", line 13, in <module>
    session = InstaPy(username='xxxxxxxx', password='xxxxx', nogui=True, headless_browser=True)
  File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 276, in __init__
    self.set_selenium_local_session()
  File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 326, in set_selenium_local_session
    self.logger)
  File "/usr/local/lib/python3.5/dist-packages/instapy/browser.py", line 123, in set_selenium_local_session
    chrome_options=chrome_options)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

sorry for this problem, thanks for helping

In #activity comment the code
# session.follow_user_followers
And try to put first some with session.follow_by_tags or session.follow_by_tags and tell me the result.

and change cataismyname123 ;P

I do everything:

  • delete Instapy folder
  • pip3 install instapy
Collecting instapy
  Downloading https://files.pythonhosted.org/packages/8c/17/a31b5638426d816b207936f28ecc191e1119e2c4d44223823c23a512f537/instapy-0.1.3-py2.py3-none-any.whl (249kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 256kB 880kB/s 
Collecting selenium>=3.141.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 911kB 346kB/s 
Collecting grpcio>=1.16.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/grpcio/grpcio-1.18.0-cp35-cp35m-linux_armv7l.whl (9.7MB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 9.7MB 34kB/s 
Collecting urllib3>=1.24.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 122kB 1.4MB/s 
Collecting emoji>=0.5.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9c/fb/7586e11ff9205c9be9d11d376fcb6990ec4bdfae0a35663fb1ada7e3c10f/emoji-0.5.1-py3-none-any.whl
Collecting regex>=2018.11.22 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/regex/regex-2019.2.7-cp35-cp35m-linux_armv7l.whl (544kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 552kB 565kB/s 
Collecting PyVirtualDisplay>=0.2.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/pyvirtualdisplay/PyVirtualDisplay-0.2.1-py3-none-any.whl
Collecting chardet>=3.0.4 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 143kB 1.4MB/s 
Collecting requests>=2.20.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 1.8MB/s 
Collecting PyYAML>=3.13 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-3.13-cp35-cp35m-linux_armv7l.whl (42kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 51kB 978kB/s 
Collecting protobuf>=3.6.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/77/78/a7f1ce761e2c738e209857175cd4f90a8562d1bde32868a8cd5290d58926/protobuf-3.6.1-py2.py3-none-any.whl (390kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 399kB 657kB/s 
Collecting six>=1.11.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting certifi>=2018.10.15 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 163kB 1.3MB/s 
Collecting EasyProcess>=0.2.3 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/easyprocess/EasyProcess-0.2.5-py3-none-any.whl
Collecting clarifai>=2.4.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/clarifai/clarifai-2.5.2-py3-none-any.whl (165kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 174kB 202kB/s 
Collecting future>=0.17.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/future/future-0.17.1-py3-none-any.whl (488kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 491kB 509kB/s 
Collecting jsonschema>=2.6.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting MeaningCloud-python>=1.1.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/28/c6/deb6c9d113f94ec99116ec4017b333660ce54344734d29f0cb98fdf32945/MeaningCloud_python-1.1.1-py2.py3-none-any.whl
Collecting instapy-chromedriver==2.44 (from instapy)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/88/f1/8fd8b480c1cf932f7ba9353f09b54c2cd465ec77cadad5a18fc6848e3d7f/instapy_chromedriver-2.44-py3-none-any.whl (16.8MB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 16.8MB 7.2kB/s 
Collecting idna>=2.7 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 61kB 226kB/s 
Collecting configparser>=3.5.0 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/43/63/220afe02a0d302c2244309b1dce3d884a865be65c7d8148ededfc0c29c31/configparser-3.7.1-py3-none-any.whl
Collecting plyer>=1.3.1 (from instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/64/02/fa5c7054a879cfda9c937fedf8abfda6706c088da2f97c16655cf3c88626/plyer-1.4.0-py3-none-any.whl (131kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 133kB 1.6MB/s 
Collecting setuptools (from protobuf>=3.6.1->instapy)
  Downloading https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 583kB 528kB/s 
Collecting googleapis-common-protos<2,>=1.5.0 (from clarifai>=2.4.1->instapy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://www.piwheels.org/simple/googleapis-common-protos/googleapis_common_protos-1.5.6-py3-none-any.whl (69kB)
    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 71kB 815kB/s 
Installing collected packages: urllib3, selenium, six, grpcio, emoji, regex, EasyProcess, PyVirtualDisplay, chardet, certifi, idna, requests, PyYAML, setuptools, protobuf, future, jsonschema, googleapis-common-protos, configparser, clarifai, MeaningCloud-python, instapy-chromedriver, plyer, instapy
Successfully installed EasyProcess-0.2.5 MeaningCloud-python-1.1.1 PyVirtualDisplay-0.2.1 PyYAML-3.13 certifi-2018.11.29 chardet-3.0.4 clarifai-2.5.2 configparser-3.7.1 emoji-0.5.1 future-0.17.1 googleapis-common-protos-1.5.6 grpcio-1.18.0 idna-2.8 instapy-0.1.3 instapy-chromedriver-2.44 jsonschema-2.6.0 plyer-1.4.0 protobuf-3.6.1 regex-2019.2.7 requests-2.21.0 selenium-3.141.0 setuptools-40.8.0 six-1.12.0 urllib3-1.24.1
  • pip3 install instapy-chromedriver==2.36 -I
Collecting instapy-chromedriver==2.36
  Using cached https://files.pythonhosted.org/packages/47/24/0b9c61f65d3f76ea4ef75b52d02de7eaafec209d2c60368b9bd1160ba06a/instapy_chromedriver-2.36-py3-none-any.whl
Installing collected packages: instapy-chromedriver
Successfully installed instapy-chromedriver-2.44
  • I see that is installed instapy-chromedriver 2.44 so first unistall two times instapy-chromedriver and after the installation this is the console log
Collecting instapy-chromedriver==2.36
  Using cached https://files.pythonhosted.org/packages/47/24/0b9c61f65d3f76ea4ef75b52d02de7eaafec209d2c60368b9bd1160ba06a/instapy_chromedriver-2.36-py3-none-any.whl
Installing collected packages: instapy-chromedriver
Successfully installed instapy-chromedriver-2.36
  • I copy quickstart.py in the folder /home/pi/Instapy and change the path of workspace:
""" Quickstart script for InstaPy usage """

# imports
from instapy import InstaPy
from instapy import smart_run
from instapy import set_workspace


# set workspace folder at desired location (default is at your home folder)
set_workspace('/home/pi/Instapy')
#i try also with set_workspace(path='/home/pi/Instapy')

# get an InstaPy session!
session = InstaPy(username='xxxxx', password='xxxxx', nogui=True, headless_browser=True)

with smart_run(session):
    """ Activity flow """
    # general settings

    # activity
    session.follow_user_followers(['ademasiph'], amount=20, randomize=False, interact=False)
  • run quickstart.py in different way but give me the same error
 sudo python3 quickstart.py
 sudo python quickstart.py
 python3 quickstart.py
 python quickstart.py
 sudo xvfb-run python3 quickstart.py
 sudo xvfb-run python quickstart.py
xvfb-run python3 quickstart.py
xvfb-run python quickstart.py

and this is the error

INFO [2019-02-08 17:49:49] [personechefannocose]  Using built in instapy-chromedriver executable (version 2.36)
Traceback (most recent call last):
  File "quickstart.py", line 13, in <module>
    session = InstaPy(username='personechefannocose', password='cataismyname123', nogui=True, headless_browser=True)
  File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 276, in __init__
    self.set_selenium_local_session()
  File "/usr/local/lib/python3.5/dist-packages/instapy/instapy.py", line 326, in set_selenium_local_session
    self.logger)
  File "/usr/local/lib/python3.5/dist-packages/instapy/browser.py", line 123, in set_selenium_local_session
    chrome_options=chrome_options)
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

sorry for this problem, thanks for helping

same problem here on a pi 3+

Exec format error means that the binary is not in the right format. The built-in Chromedriver doesn't work on RPis since their Chromium is v65 (which is old). Install the RPi-specific Chromedriver like this:

pip3 uninstall instapy-chromedriver 
pip3 install instapy-chromedriver==2.36.post0

That fixes that ๐Ÿ˜‰

Still not working.

That method does work. Please provide more debug information.

i dont know why, but it still saying:

"using built in instapy-chromedriver executable (version2.44)

Please run pip3 show instapy-chromedriver

RESULT:

Name: instapy-chromedriver
Version: 2.36.post0
Summary: chromedriver binaries for instapy
Home-page: https://github.com/InstaPy/instapy-chromedriver
Author: Felix Breuer
Author-email: [email protected]
License: UNKNOWN
Location: /home/pi/.local/lib/python3.5/site-packages
Requires:

That's good. And python show instapy-chromedriver?

Is "show" part of the python syntax? im getting an error running that command.

It simply shows information about that pip package

python show instapy-chromedriver
python: can't open file 'show': [Errno 2] No such file or directory

Ohhhhhh sorry:persevere: i meant pip show instapy-chromedriver

pip show instapy-chromedriver is not giving me results, is only showing info when i run it with pip3

That's also good, that means that you didn't mess up python2.7 and python3.5. Maybe un- and reinstall again?

there must still be a 2.44 package around... for sure !
maybe you even have another python version on the machine! are you able to give me remote access and I can check it real quick ? must be a easy fix

We can make it via anydesk.

Done, the problem was that i have python3.5 and python3.7 installed, so, running the script with python3 uses the updated version of python installed, if i use python3.5 instead of python3, works perfect.

PD: Using chromium v65 and chromiumdriver 2.36post.

This thread can be close. thnks

perfect !! this could be a pitfall sometimes... glad that it works now :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ediooo picture ediooo  ยท  3Comments

rahulkapoor90 picture rahulkapoor90  ยท  3Comments

harrypython picture harrypython  ยท  3Comments

ingorichter picture ingorichter  ยท  3Comments

Spyd3r0us picture Spyd3r0us  ยท  3Comments