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

Error when I execute main.py #26

Open
mkhattar opened this issue Dec 27, 2018 · 3 comments
Open

Error when I execute main.py #26

mkhattar opened this issue Dec 27, 2018 · 3 comments

Comments

@mkhattar
Copy link

mkhattar commented Dec 27, 2018

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 mkhattar changed the title FileNotFound Error when I execute main.py Error when I execute main.py Dec 27, 2018
@Tkd-Alex
Copy link
Owner

try to execute with python3

@mkhattar
Copy link
Author

mkhattar commented Jan 3, 2019

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

@Tkd-Alex
Copy link
Owner

Tkd-Alex commented Jan 4, 2019

No other errors reported?

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

No branches or pull requests

2 participants