title: AttributeError: module 'tweepy.streaming' has no attribute 'StreamListener'
body: <p>I'm using Tweepy to monitor a user and I'm using the stream element, but I got this error</p>
  <pre><code>AttributeError: module 'tweepy.streaming' has no attribute 'StreamListener'
  </code></pre>
  <p>This are the import:</p>
  <pre class="lang-py prettyprint-override"><code>import tweepy
  from tweepy import streaming
  </code></pre>
  <p>I also tried importing:</p>
  <pre class="lang-py prettyprint-override"><code>from tweepy.streaming import Stream
  </code></pre>
  <p>This is my code:</p>
  <pre class="lang-py prettyprint-override"><code>class MyStreamListener(tweepy.streaming.StreamListener):
      
  
      def on_status(self, status):
          webhook.send(status.text)
          # SMS.send(status.text)
          print(status.text)
  
      def on_error(self, status_code):
          if status_code == 420:
              #returning False in on_error disconnects the stream
              return False
  
  myStreamListener = MyStreamListener()
  myStream = tweepy.Stream(auth = api.auth, listener=myStreamListener)
  # edit with the twitter IDs as needed
  myStream.filter(follow=[&quot;twitter id&quot;],is_async=True)
  </code></pre>