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.
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.