Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'InstagramAPI' object has no attribute 'username_id' #56

Open
easysports opened this issue Oct 3, 2022 · 2 comments
Open
Labels

Comments

@easysports
Copy link

Expected vs Actual Behavior

I have double checked the Username and Password, they are correct
I am trying to run the following command python main.py -u USER -p PASSWORD -o info
My password has no symbols, and two numbers
Just to be sure, do I need to use quotes "" for the USER and password? Do I need to use an "@" for the username?
I have tried all combinations and had no luck.
I keep getting the following error

Login not successful
Traceback (most recent call last):
File "main.py", line 187, in
main()
File "main.py", line 143, in main
for i in api.getTotalSelfFollowers():
File "C:\Users\12512\Desktop\GolfCarts\Insta3\LevPasha\InstagramAPI.py", line 162, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: 'InstagramAPI' object has no attribute 'username_id'

Any help would be appreciated, Thanks

Specifications

  • Operative system:
    Windows
  • Version (e.g. Python version):

Python 3.8.10

Steps to Reproduce the Problem

@easysports easysports added the bug label Oct 3, 2022
@john-szetho
Copy link

I am also having this problem. Any solutions yet?

Login not successful
Traceback (most recent call last):
  File "~/instagram-followers-bot/main.py", line 187, in <module>
    main()
  File "~/instagram-followers-bot/main.py", line 143, in main
    for i in api.getTotalSelfFollowers():
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/instagram-followers-bot/LevPasha/InstagramAPI.py", line 162, in getTotalSelfFollowers
    return self.getTotalFollowers(self.username_id)
                                  ^^^^^^^^^^^^^^^^
AttributeError: 'InstagramAPI' object has no attribute 'username_id'. Did you mean: 'username'?

@sahilbansalweb
Copy link

got same type of error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants