I am using this script to post something to twitter, but am getting this error. I have googled to my heart's content but still not a proper answer on what I need todo to resolve it. Am figuring this is pretty common, so any ideas on what I can do?
I am using Python 2.7
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 221: ordinal not in range(128)
Code: Select all
import RPi.GPIO as GPIO import time import sys import os from twython import Twython os.system ("fswebcam /home/pi/pic.jpg") consumer_key = "" consumer_secret = "" user_token = "" user_token_secret = "" twit = Twython(consumer_key, consumer_secret, user_token, user_token_secret) twit.updateStatusWithMedia("pic.jpg", status = "New pic taken")