dvingerh / PyInstaStories

Python script to download Instagram stories from Instagram users.
MIT License
329 stars 74 forks source link

ModuleNotFoundError: No module named 'instagram_private_api' #16

Closed mortim closed 5 years ago

mortim commented 5 years ago

Hello, I have a problem, the program returns an error according to which it does not find the module "instagram_private_api" yet I installed it with: pip install git+https://git@github.com/ping/instagram_private_api.git@1.6.0

Any ideas?

dvingerh commented 5 years ago

Make sure pip installs the package for the correct python version. For instance if pip installs the package for python 2 you cant use it with python 3. If you have pip3 try installing it with that also.

mortim commented 5 years ago

When I try to install with pip3 I have this:

Collecting git+https://git@github.com/ping/instagram_private_api.git@1.6.0
  Cloning https://git@github.com/ping/instagram_private_api.git (to 1.6.0) to /tmp/pip-q1bqqty5-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-q1bqqty5-build/
dvingerh commented 5 years ago

Install setuptools

mortim commented 5 years ago

Install setuptools

The link not working.

dvingerh commented 5 years ago

https://packaging.python.org/tutorials/installing-packages/#ensure-pip-setuptools-and-wheel-are-up-to-date

python -m pip install --upgrade pip setuptools wheel python3 -m pip install --upgrade pip setuptools wheel

If it doesnt work then theres not much else i can suggest since it's not a problem related to my project.

mortim commented 5 years ago

It works thanks ! But I have another question. How to add logins if my account is connected with Facebook ?

dvingerh commented 5 years ago

I'm unsure if it's possible with the library thats being used currently. There's an open issue regarding it on its repo as well. you can try https://github.com/ping/instagram_private_api/issues/169#issuecomment-494619085 but otherwise you'll have to unlink facebook or create a new account.

mortim commented 5 years ago

Okay thanks