New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError'ascii' codec can't decode byte 0xff in position 247: ordinal not in range(128) #154
Comments
Having the exact same problem, pin pointed it to the requests library. |
You can follow the new |
does this error fixed? im try update twython and still gettings this error :( |
The changes in This should be fixed shortly! |
I'm closing this and will let everyone know when the updates to |
I'm confused about this. @husainihisan's traceback there's no mention of requests_oauthlib Also, I tried installing the tip of requests-oauthlib but it didn't help. What did help was to do this: text = text.encode('utf-8')
twitter.updateStatusWithMedia(
file_path,
status=text
) In other words, I think it's erroring somewhere else. By the way, I'm using requests 1.2.0 as per twython's requirements. |
@peterbe Please see kennethreitz/requests#1252 and requests/requests-oauthlib/pull/26 |
@michaelhelmick so this is still an ongoing issue? I tried the same thing @peterbe did, but alas, Im having less success then he did. |
@mgrouchy Yes, I actually just talked to @kennethreitz yesterday about a possible new release of Uploading an image works currently in |
@michaelhelmick thats so strange, because I installed like so: https://gist.github.com/mgrouchy/5462228 Maybe something got messed up with the installation. I will investigate and see if I can dig anything else up. |
Haha, sorry. I just tried installing every version of Even that commit doesn't work anymore. |
@michaelhelmick haha, okay. Thanks! Much appreciated! |
@mgrouchy Alright, I was right: it is fixed at this commit requests/requests-oauthlib@156543b but breaks on the commit after. I'm talking to the guys in requests-oauthlib in an issue about it now. I'll keep you updated, or you can follow requests/requests-oauthlib#36 |
@mgrouchy @peterbe @husainihisan @grillermo You can either: or install |
please help, update status with normal message is fine but with media, i get this error :(
from twython import Twython
twitter = Twython(
twitter_token = '52IKIxxxx',
twitter_secret = 'SvwK4xmxxxx',
oauth_token = '5164xxxxxxx',
oauth_token_secret = 'kVkrHxxxxxx'
)
twitter.updateStatus(status='hello tweet from raspberry pi 1.47am')
twitter.updateStatusWithMedia("/home/pi/teddy.jpg", status='hello!')
image of error http://i.stack.imgur.com/5W1Bq.png
The text was updated successfully, but these errors were encountered: