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 running twitterstream.py to pull twitter data in assignment 1 #61

Open
dannycans opened this issue Sep 30, 2017 · 2 comments
Open

Comments

@dannycans
Copy link

Getting an error on line 58 trying to run twitterstream.py to pull twitter data:
print line.strip()

The error reads:
[pylint] E0001:invalid syntax (, line 58).

I'm using Python 3.6.2.

@jmqd
Copy link

jmqd commented Sep 30, 2017

Hi Danny,

In python3, print became a function that requires arguments. e.g. print "hi" => print("hi").

I recommend that you run this software with python2.7, as that is what it was written for. You can do this by calling it with python2.7 filename.py instead. If you're committed to python3 (which is a good thing), you could try to port all the python3 incompatible code.

Cheers.

@dannycans
Copy link
Author

dannycans commented Oct 1, 2017 via email

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