Osintgram icon indicating copy to clipboard operation
Osintgram copied to clipboard

ModuleNotFoundError: No module named 'instagram_private_api'

Open shakthepro opened this issue 2 years ago • 2 comments
trafficstars

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://[email protected]/ping/[email protected]" 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!

shakthepro avatar Jul 01 '23 01:07 shakthepro

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).

BC100Dev avatar Sep 17 '23 00:09 BC100Dev

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://[email protected]/ping/[email protected]" 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

ShiroHoney avatar Apr 30 '24 10:04 ShiroHoney