1

I get this error message when I try from tweepy import stream

ImportError: cannot import name stream

knowing that I installed tweepy on my python

Prashant Kumar
  • 20,069
  • 14
  • 47
  • 63
Galal Ali
  • 13
  • 5

2 Answers2

2

Though it would really help to see your code, it looks like you're using the line

from tweepy import stream

correct?

When I look at the tweepy tests, it looks like Stream should be capitalized. Check out this page for an example:

https://github.com/tweepy/tweepy/blob/master/examples/streaming.py

When importing in Python (and with all things in Python) case matters. So try changing the line to

from tweepy import Stream
wampastompa
  • 130
  • 7
1

You have a line of code that reads:

import stream

somewhere and Python has no idea what you are on about. - That is why you have this error.

For more help we need more code, ideally your python path too.

Alec Teal
  • 5,770
  • 3
  • 23
  • 50