nickpettican / InstaBot

:robot: Automate your Instagram activity with InstaBot, a customisable bot that likes, follows and comments
Apache License 2.0
224 stars 51 forks source link

Pip errors on Raspberry Pi #22

Closed ph33nx closed 6 years ago

ph33nx commented 6 years ago

Thanks Nick for building the bot. The description page says that the bot should work on a raspberry Pi, but while installing the requirements via pip, I am getting the following error :

Could not find a version that satisfies the requirement time (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for time (from -r requirements.txt (line 3))
nickpettican commented 6 years ago

Hi @abhi21x thanks for the feedback. Apologies for that, I was meant to fix this issue. Just remove time from the requirements.txt file.

ph33nx commented 6 years ago

Hi Nick. Thanks for your reply. I tried removing "Time" from requirements, then it started giving the same error for "random", when I removed "random" it started giving the same error for "operator" & so on.. Looks like arrow & requests are the only two not giving the error.

I am installing on Raspberry Pi 3. Maybe that could be the reason..

andrewginns commented 6 years ago

Try installing the requirements manually through pip. Syntax is: pip install xxxxx

ph33nx commented 6 years ago

Manually installing through pip also gives the same error

Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time

There could be packages missing for raspberry pi. I wanna know if anyone has made this work on a raspberry pi.

andrewginns commented 6 years ago

Time isn't needed to run the program on your pi. If everything else is installed try python run.py

nickpettican commented 6 years ago

I think time and random are default libraries so they should already be installed. To test it out go to your terminal and type:

python
> import time, random

If it doesn't throw any errors they're installed.

Just so you know I think the bot is currently not working due to Instagram having changed their backend #21, I'll have it fixed soon though!

ph33nx commented 6 years ago

Running

python
> import arrow, requests, time, random, operator, json, itertools

did not give any error. Looks like they're already installed in Python 3.

ph33nx commented 6 years ago

Thanks, it's working now (#21 is still thr though)

Only lxml wasn't installed, had to manually install it via

sudo apt-get install python-lxml

nickpettican commented 6 years ago

Sweet, yeah lxml is the only exception.

Oh but the bot runs on Python 2.7 @abhi21x

Is it working?

ph33nx commented 6 years ago

Yes it's working. I think Raspbian comes pre-installed with Python 2.7 & Python 3.

nickpettican commented 6 years ago

I've also updated the bot to adjust to Instagram's update @abhi21x @andrewginns

ph33nx commented 6 years ago

Thanks Nick. Working great now 👌

anonhan commented 6 years ago

hlo, can someone help me solving some issues in my kali machine. The "pip install instagram-py" command is giving a syntax error ie. invalid syntax.

nickpettican commented 6 years ago

You're in the wrong repo @anonHan, I think this is what you're looking for: https://github.com/deathsec/instagram-py and the solution is probably sudo pip3 install instagram-py