Instapy: Do we need a better how-to-build-and-run guide?

Created on 8 Apr 2017  路  5Comments  路  Source: timgrossmann/InstaPy

Hi! Looks like a fun project to work on!
Just followed your steps - try to setup using setup.py. Kept getting permission denied and such:

Checking .pth file support in /Library/Python/2.7/site-packages/
  error: can't create or remove files in install directory

   The following error occurred while trying to add or remove files in the
   installation directory:
   [Errno 13] Permission denied: /Library/Python/2.7/site-packages/test-easy-install-4896.pth

   The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) 
    was:
     /Library/Python/2.7/site-packages/

Then figured this needs to be run via Python 3.

So ran the same command as python3 setup.py install

Now I get this:
image

So was wondering if we need a better guide or need a good dependency management?
(Saw someone has an open PR for Docker +1 for that!)
PS - sorry if this is lame, been a Java developer all of my life except a couple of projects 馃槤

Most helpful comment

You should considering using pythons virtualenv to create a seperated environment for it. This way you don't pollute your system with the dependencies. Pyhton is kind of weird because you have still 2.7 and 3.x running seperately.

  1. pip install virtualenv
  2. virtualenv -p python3 instapy
  3. source instapy/bin/activate
  4. pip install -U pip
  5. pip install .

All 5 comments

@sunnypatel165 I got the exact same error.

You should considering using pythons virtualenv to create a seperated environment for it. This way you don't pollute your system with the dependencies. Pyhton is kind of weird because you have still 2.7 and 3.x running seperately.

  1. pip install virtualenv
  2. virtualenv -p python3 instapy
  3. source instapy/bin/activate
  4. pip install -U pip
  5. pip install .

Thanks @apertureless , getting this now! 馃槥
image

Seems to be a problem with pillow.
Try to close the terminal session, reopen a new one and then

xcode-select --install

and then swap into the virtual env with source instapy/bin/activate and try to install again.

Thank you sir @apertureless 馃挴

Was this page helpful?
0 / 5 - 0 ratings