Quantcast
Channel: api = twitter.Api() AttributeError: 'module' object has no attribute 'Api - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Paul for api = twitter.Api() AttributeError: 'module' object has no attribute 'Api

$
0
0

I got the same error because my python file was called twitter.py. It contained:

import twitterapi = twitter.Api (consumer_key=...

I renamed the file to twitterdata.py, removed twitter.pyc and then it worked.


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>