Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.76k stars 2.16k forks source link

ModuleNotFoundError: No module named 'instagram_private_api' #848

Open shakthepro opened 1 year ago

shakthepro commented 1 year ago

Hello, i have always had this issue when it comes to Osintgram and not sure what to do. I have tried everything from, "pip install git+https://git@github.com/ping/instagram_private_api.git@1.6.0" to "pip install instagram-private-api" to "pip3 install -r requirements.txt". I have tried these commands both in the venv and outside of it, no luck.

Here's the terminal output:

Traceback (most recent call last):
  File "C:\Users\shakt\Osintgram\main.py", line 3, in <module>
    from src.Osintgram import Osintgram
  File "C:\Users\shakt\Osintgram\src\Osintgram.py", line 15, in <module>
    from instagram_private_api import Client as AppClient
ModuleNotFoundError: No module named 'instagram_private_api'

Ive gone through all of the issues regarding the Module error and can't get the code to work. I think that somewhere in the Osintgram folders there is a file with the name "instagram" that is causing the issues. Not sure though, any help is appreciated.

Ive also changed the interpreter in VSCode to see if that would help, but nothing!

BC100Dev commented 1 year ago

Run pip3 install -r requirements.txt within a virtual environment by doing python3 -m venv .env first, and activating it by source .env/bin/activate (this one is Linux only, you might need to refer to other docs for Windows, sorry).

ShiroHoney commented 6 months ago

Hello, i have always had this issue when it comes to Osintgram and not sure what to do. I have tried everything from, "pip install git+https://git@github.com/ping/instagram_private_api.git@1.6.0" to "pip install instagram-private-api" to "pip3 install -r requirements.txt". I have tried these commands both in the venv and outside of it, no luck.

Here's the terminal output:

Traceback (most recent call last):
  File "C:\Users\shakt\Osintgram\main.py", line 3, in <module>
    from src.Osintgram import Osintgram
  File "C:\Users\shakt\Osintgram\src\Osintgram.py", line 15, in <module>
    from instagram_private_api import Client as AppClient
ModuleNotFoundError: No module named 'instagram_private_api'

Ive gone through all of the issues regarding the Module error and can't get the code to work. I think that somewhere in the Osintgram folders there is a file with the name "instagram" that is causing the issues. Not sure though, any help is appreciated.

Ive also changed the interpreter in VSCode to see if that would help, but nothing!

Open Any Terminal > python -m venv venv For Windows With CMD > .\venv\Scripts\activate.bat For Windows With Power shell. > .\venv\Scripts\activate.ps1 For Windows With Unix Like Shells For Example Git Bash CLI > source venv/Scripts/activate

All done > pip3 install -r requirements.txt