You installed a different Twitter API module; you installed twitter
1.10.0, not python-twitter
. The APIs between the two projects differ significantly:
import twitter
t = twitter.Twitter(
auth=twitter.OAuth(OAUTH_TOKEN, OAUTH_SECRET,
CONSUMER_KEY, CONSUMER_SECRET)
)
You may want to uninstall twitter
and install python-twitter
instead.
However, if all you need is a good Twitter API package for Python, take a look at the list that Twitter maintains. Tweepy and a different python-twitter
package are under active maintenance.