I have been trying to write a simple mention grabber to get started with the twitter Api. Howsoever I\'ve been experienceing some difficulties when initializing the Api. Run
I got the same error because my python file was called twitter.py. It contained:
import twitter api = twitter.Api (consumer_key=...
I renamed the file to twitterdata.py, removed twitter.pyc and then it worked.