error running twitterstream.py to pull twitter data in assignment 1
dannycans opened this issue · comments
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.
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.