Error: cannot import name 'Stream' ? #1408
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
First of all, you'll want to regenerate your credentials now. If this file you're editing is named tweepy.py and in your system path, it's recursively importing itself rather than the Tweepy library. |
Beta Was this translation helpful? Give feedback.
-
Ooh, how naïve of me 🙃 |
Beta Was this translation helpful? Give feedback.
First of all, you'll want to regenerate your credentials now.
If this file you're editing is named tweepy.py and in your system path, it's recursively importing itself rather than the Tweepy library.
Otherwise, another file in your system path is named tweepy.py and recursively importing itself after it's imported on the first line.
You'll want to change your filename(s) or remove them from your system path so that they're not imported prior to Tweepy itself.