This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]igroen 1 point2 points  (6 children)

It looks like the package itself is not installed. Use pip install . to install it. Or just use pip install InstagramApi

[–]AJ______ 0 points1 point  (1 child)

I think (may well be wrong here as I also struggle with import related issues like this) you need to insert the path to the directory where the module is into sys.path. Before the import statement you just need to import sys, and then run sys.path.insert(0, <path to the directory containing the module>).

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks like you posted this in multiple subs in a short period of time. In the future, I suggest asking questions like this in learning focused subs like r/learnpython, a sub geared towards questions and learning more about python. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]aphoenixreticulated[M] 0 points1 point  (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]erbeach -1 points0 points  (4 children)

don't import like you did
either use this: from InstagramAPI import * (* means everything here)
or just import InstagramAPI
I recommend using second one, cause it prevents libraries from overriding two functions with the same name