Instapy: Not able to let Instapy work

Created on 16 May 2018  路  21Comments  路  Source: timgrossmann/InstaPy

Hello everyone, I'm trying to install and use Instapy but i am not able, in the point 3.1 of the installation guide

(Install Selenium
Go to C:\Program Files (x86)\Python36-32\Scripts
press Shift + Right click and open command window (with admin rights !!) and type
pip install selenium
python -m pip install pyvirtualdisplay
py get-pip.py)

when I try to do the command "py get-pip.py" I get [Errno 2] No such file or directory

I tryed also to go ahed with the installation and when i open the gui and i set for example to like 5 photos with a hashtag and i press RUN i get "Instapy running" but nothing happens

(and btw right now i need the bot to like the newest photo from a list of for example 300 usernames, how can i do that?)

thank you so much

wontfix

All 21 comments

hi @Pithub90,
Well, you should know that,

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org

If you insist to re-install it through get-pip.py which is the ways of installing pip manually, alongside setuptools and wheel (_you can install the other two with pip, too_)
first download get-pip.py securely by running

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

then install it with

python get-pip.py

or

py get-pip.py

And for the usage, I would recommend getting familiar with quickstart script and writing your own script by hand (_read README and see examples_).
Particularly for liking fresh content of a set of users,

session.set_do_like(enabled=True, percentage=100)
session.like_by_users(usernames=['user1', 'user2', 'user3', 'user299', 'user300'], amount=1, randomize=False, media='Photo')

_will like 1 photo from top of feed of all 300 users_

thank you so much for your reply, the problem is that i am really new to this, so i am not able to follow your instructions, if you can explain me better, considering that I do not understand anything about python i will be really really grateful

thank you

Not at all, @Pithub90,
Alright, considering that you have not installed get-pip.py, now run these commands to get setuptools and wheel which are very useful,

pip install -U setuptools

after it installs, install the other

pip install -U wheel

Now I can guess that you have everything installed to run the program.
It is time to start quickstart script!
_navigate to the folder holding your InstaPy files_,

cd C:\Users\shahr\Documents\GitHub\InstaPy_fork\

_and start your quickstart script_,

python quickstart.py

_or_

py quickstart.py

The rest is up to your quickstart style, if gets any other error, just ask me for help 鉁岋笍

Note: You will need a good text editor like Notepad++ or Atom to edit quickstart script and other files.

after it installs, install the other

pip install -U wheel

I am here, then i don't know how can i do what you said next

( It is time to start quickstart script! etc..)

hahaha please help me

EDIT
by the way i don't know also what this means from the guide

  1. Edit the instapy.py file
    Open file instapy.py an disabling the clarifai import
    comment the line "from .clarifai_util import check_image"
    from .clarifai_util import check_image

@Pithub90,
I think those steps are very clear.
Could you at least install wheel?

  1. point means you must comment out that line
    so, in instapy.py file
from .clarifai_util import check_image

will be

#from .clarifai_util import check_image

yes i installed wheel ( or i think so)

point means you must comment out that line
so, in instapy.py file # <---- where is this file?
from .clarifai_util import check_image
will be

from .clarifai_util import check_image

@Pithub90,
Now navigate to that folder and start quickstart script
What is that you cannot do?

i don't know how can i start quickstart script? (and also what is quickstart script)

@Pithub90,
It is just a python source file with .py extension which can be of any name, but calling quickstart makes it easy to understand amongst many people.
_start your quickstart script simply by running_

python quickstart.py

_in command prompt_

so on my keyboard i press the windows simbol+R then cmd, then i write "python quickstart.py"

i get some error, like python quickstart.py is not a comand

@Pithub90,
Before running

python quickstart.py

You must navigate to the folder holding quickstart,py file otherwise command prompt will not be able to find it to execute.

Also, it seems you must add Python to your PATH in order to execute python commands.

don't know this things are difficult for me, how can i add python to my path?

thank you so much for the help btw

if was this

  1. Set python evironment:
    Open Control Panel 禄 System 禄 Advanced 禄 Environment Variables.
    Click New and type the path where you have installed Python + /Scripts
    Usually PATH: C:\Program Files (x86)\Python36-32\Scripts\ and C:\Program Files (x86)\Python36-32\
    Win7 and Win10 PATH: C:Users\YOUR_USER_NAME\AppData\Local\Programs\Python\Python36\ and C:Users\YOUR_USER_NAME\AppData\Local\Programs\Python\Python36\Scripts\
    Restart PC (recommended).

i think i have done this,

@Pithub90,

  1. Find where Python is installed in your system, for example for me it is
C:\Users\shahr\AppData\Local\Programs\Python\Python36\
  1. Press Windows key+Pause key in your keyboard to open up System
  2. On the left panel find and click Advanced System Settings
  3. In the opened window click Advanced tab and then click on Enviromental Variables
  4. On the top side, click on PATH and then click on Edit
  5. Click on New

    • Paste the location of Python and press Enter

    C:\Users\shahr\AppData\Local\Programs\Python\Python36\
  • Paste the location of Python Scripts and press Enter
    C:\Users\shahr\AppData\Local\Programs\Python\Python36\Scripts\
  1. Click on OK buttons.
    You are done!

5 On the top side, click on PATH and then click on Edit
6 Click on New

if i click on edit will change something that was already there, or am i wrong?

(btw if we can talk via a messaging app, like google hangouts will be so much better so i could send you also some photo of the screen of the pc to understand better what am i doing)

@Pithub90,
It can change something or add a new thing.
Well I got FB if is helpful.

yes it's ok, sent a message there

At the year of 2012, GitHub removed Private Messaging feature 馃敤 馃
Email is still the best way to contact someone and if you want to contact me, please see the public email address at my profile.

Onwards, I do not really use mobile messaging apps 鉁岋笍

_Also you can join the Slack channel of InstaPy and get help by thousands!_

okok i sent you a message on facebook, or if you want we can talk also here, since i think you almost solved my problem, thanks again

Not at all, @Pithub90,
_We learn more when helping out people, especially beginners :)_

Nice, this issue helped me a lot.Ty

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ediooo picture ediooo  路  3Comments

seuraltimez picture seuraltimez  路  3Comments

deronsizemore picture deronsizemore  路  3Comments

ghost picture ghost  路  3Comments

rahulkapoor90 picture rahulkapoor90  路  3Comments