TypeError: __init__() takes at least 4 non-keyword arguments (3 given)

前端 未结 3 1474
天涯浪人
天涯浪人 2021-01-16 01:58

Advice please :)

When I use this script:

class CustomStreamListener(tweepy.StreamListener):

    def on_status(self, status):

        # We\'ll simpl         


        
3条回答
  •  野的像风
    2021-01-16 02:37

    The main reason of this issue is using the older version of tweepy. I was using tweepy 1.7.1 and having the same error before I updated tweepy 1.8. Right after that, the issue was solved. I think the 4 voted answer should be accepted answer to clarify the solution.

提交回复
热议问题