I've been running the script below using tweepy, but the on_direct_message() is never called. I'd like to use this function so I can receive new direct messages. I've used tweepy for the past month without any issue until now. There seem to be others out there will a similar issue: Tweepy streaming: on_direct_message() is never called
I'm on a Mac OS X 10.10.5 and I'm using Python 2.7.
Any help would be really appreciated.
class MyStreamListener(tweepy.StreamListener):
def on_direct_message(self, status):
print "status: "
print status
myStreamListener = MyStreamListener()
myStream = tweepy.Stream(auth = api.auth, listener = MyStreamListener(), timeout = None, retry_count = None)
myStream.filter(track=["filter"], async=False)