ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

Error after the MFA token request #1142

Closed stevealexandre closed 4 years ago

stevealexandre commented 4 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here: Python 3.5.1

Code:

Error/Debug Log:

Traceback (most recent call last):
  File "menu.py", line 700, in <module>
    bot.login()
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/instabot/bot/bot.py", line 439, in login
    if self.api.login(**args) is False:
  File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/instabot/api/api.py", line 288, in login
    if two_factor_auth(self):
NameError: name 'two_factor_auth' is not defined

Describe your issue

At the first time of login, the method two_factor_auth seems not defined or have a trouble.

negswell commented 4 years ago

i checked api.py , two_factor_auth() is declared after login(),when call to two_factor_auth() is being made it is yet to be defined , therefore it is throwing an error i presume , fix suggested : declare two_factor_auth before login() in api.py ?

leoccyao commented 4 years ago

Should have been fixed in https://github.com/instagrambot/instabot/pull/1153

Close if still broken after update.

bruvv commented 4 years ago

no reply. closing this