sridharswamy / Twitter-Sentiment-Analysis-Using-Spark-Streaming-And-Kafka

Twitter Sentiment Analysis using Spark and Kafka
114 stars 74 forks source link

TypeError: __init__() takes 1 positional argument but 2 were given #6

Open njanmo opened 6 years ago

njanmo commented 6 years ago

Hi, first of all thanks for creating this,

I am receiving this error when running this script, any idea how to fix?

This is the traceback...

File "app.py", line 66, in <module>
    stream = tweepy.Stream(auth, listener=TwitterStreamListener(api))
TypeError: __init__() takes 1 positional argument but 2 were given
maktoubian commented 6 years ago

Hi,

twitter-app-credentials.txt is not necessary, you could just use your consumer_key, consumer_secret, access_key, access_secret inside app.py. twitter-app-credentials.txt file is for security issue. if you don't concern about it you can directly use the keys.