Trying to tweet on my Raspberry Pi. Installed both Twython and oauthlib without problem. But can't get past this error:
Traceback (most recent call last): File "tweet_test.py", line 3, in from twython import Twython
File "/usr/lib/python2.7/dist-packages/twython/init.py", line 23, in from .api import Twython
File "/usr/lib/python2.7/dist-packages/twython/api.py", line 14, in from requests_oauthlib import OAuth1, OAuth2
ImportError: No module named requests_oauthlib
Original:
#!/usr/bin/env python
import sys
from twython import Twython
tweetStr = "Tweet text!"
apiKey = 'apiKey'
apiSecret = 'apiSecret'
accessToken = 'A_token'
accessTokenSecret = 'A_token_secret'
api = Twython(apiKey,apiSecret,accessToken,accessTokenSecret)
api.update_status(status=tweetStr)
print "Tweeted: " + tweetStr
pip
? – Blender