SolvedInstaPy Definetly not working on Raspberry Pi (3B+) - *Updated Instructions*
✔️Accepted Answer
clean reinstall of raspbian on a rp3+
sudo apt-get update
sudo apt-get upgrade
pip3 install instapy
pip3 uninstall instapy-chromedriver
pip3 install instapy-chromedriver==2.36.post0
sudo apt-get install chromium-browser (raspbian by default ships with chromium 60, installing new version gets you 65)that was basically it.
But this will only work wirh the "normal" rasbian.
Is pip3 working on Stretch Lite?
Ok, I made it. On a fresh and clean install of Raspbian Stretch Lite. These are all the steps I followed to make the script start, from CLI via SSH. My RPi is an Raspberry Pi 3B+
Installation
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install python3-pip
sudo pip3 install instapy
sudo pip3 uninstall instapy-chromedriver
sudo pip3 install instapy-chromedriver==2.36.post0
sudo apt-get install chromium-browser
sudo reboot
Generating quickstart.py
Then I created a dir to keep my scripts
mkdir scripts
cd scripts
Then writed down (or copy & paste quickstart.py from https://github.com/InstaPy/instapy-quickstart/blob/master/quickstart.py), just changed headless_browser to True.
nano quickstart.py
(pasted previously modified quickstart and saved)
Optional
If you want to use nogui=True, I recomended you to install xvfb
sudo apt-get install xvfb
Runing InstaPy
And finally started the script
pyhton3 quickstart.py -u XXXXX -p XXXXX
Then script started...
The login was registered by Instagram (received notification by email) and actions worked flawless.
So, I think this is the correct and only way to install InstaPy on RPi 3B. By now everyone trying to install it, should avoid the "How To Raspberry" instructions and follow this.
Other Answers:
@TarekJ03 tried with chromium-chromedriver, but InstaPy warned about it being 2.35 but needed 2.36+, so I ditched it. Will try again with the one you provided, thanks. I will update if it works.
EDIT: IT WORKS! Thank you @andifds and @TarekJ03 !
If anyone wants to use Raspberry Pi Zero 1.3 or Raspberry Pi Zero W (tested on Zero 1.3 with fresh Stretch lite):
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y python3-pip
sudo pip3 install instapy
sudo apt-get install -y chromium-browser
sudo apt-get install -y chromium-chromedriver
sudo pip3 uninstall -y instapy-chromedriver
sudo pip3 install instapy-chromedriver==2.36.post0
sudo cp /usr/lib/chromium-browser/chromedriver /usr/local/lib/python3.5/dist-packages/instapy_chromedriver/chromedriver
sudo apt-get install -y xvfb
(Find line 'chromedriver_min_version' and set it to 2.35):
sudo nano /usr/local/lib/python3.5/dist-packages/instapy/settings.py
(Not necessary, but restart can be made)
sudo reboot
After that you can use your python program. In InstaPy() set headless_browser = True and nogui = True - run the program with sudo python3 .
chmod wasn't necessary for me, but:
cd /usr/local/lib/python3.5/dist-packages/instapy_chromedriver/
sudo chmod 755 chromedriver
sudo chmod +x chromedriver
Zero is pretty slow though.
Edit2: Fixed few things, now it works.
Ok, I got InstaPy running multiples times before the big update, even with some small issues with chromedriver. But recent update broke everything on RPi. I've reinstaled clean raspbian, this time Lite only with CLI and got nothing.
Followed instruction step by step, but it's impossible to make it work. There are some issues on the How To doc available to RPi
pip install instapy
on RPi??Current Behavior
After installing using How To Instructions and after
python3 -m pip install --user .
command, used this command under InstaPy dir, on venv37 active:python quickstart.py --username myusername --password mypassword
to test the initation of script. The result was this:
Traceback (most recent call last): File "quickstart.py", line 4, in <module> from instapy import InstaPy File "/home/pi/Projects/InstaPy/instapy/__init__.py", line 3, in <module> from .instapy import InstaPy File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 11, in <module> import requests ModuleNotFoundError: No module named 'requests'
Then used:
python3 quickstart.py --username myusername --password mypassword
And the result was:
Possible Solution (optional)
By now, I will have to use my dual boot ubuntu to use the InstaPy, would be great a bit of help for all the users of RPi.