Telegram-InstaPy-Scheduling icon indicating copy to clipboard operation
Telegram-InstaPy-Scheduling copied to clipboard

Error when I execute main.py

Open mkhattar opened this issue 6 years ago • 3 comments

I am getting this error when I try to execute main.py, any suggestions?

Traceback (most recent call last): File "main.py", line 30, in except (FileNotFoundError, IOError): NameError: name 'FileNotFoundError' is not defined

mkhattar avatar Dec 27 '18 22:12 mkhattar

try to execute with python3

Tkd-Alex avatar Dec 28 '18 09:12 Tkd-Alex

Thanks Python3 worked for me.

However python is quitting unexpectedly after script finished running.

the script is simple

def mascara(InstaPy, username, password, proxy=None): try: session = InstaPy(username=username, password=password) session.login() session.follow_user_followers(['bli_bla_blou'], amount=25, randomize=False, sleep_delay=60) session.end() except: print(traceback.format_exc())

mkhattar avatar Jan 03 '19 23:01 mkhattar

No other errors reported?

Tkd-Alex avatar Jan 04 '19 14:01 Tkd-Alex