UnicodeDecodeError'ascii' codec can't decode byte 0xff in position 247: ordinal not in range(128) #154
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#154
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Having the exact same problem, pin pointed it to the requests library.
It would be nice to know what requests version does it work.
I got the error with updateProfileBannerImage running requests 1.1.0 on python 2.7.2
You can follow the new
requestsissue here: https://github.com/kennethreitz/requests/issues/1252does this error fixed? im try update twython and still gettings this error :(
The changes in
requests-oauthlibhave JUST been merged in (https://github.com/requests/requests-oauthlib/pull/26#issuecomment-15727300). When a version bump to that library is pushed, I'll push an update toTwythonrequiring that version ofrequests-oauthlibThis should be fixed shortly!
I'm closing this and will let everyone know when the updates to
requests_oauthlibhave been pushed and this has been fixed!I'm confused about this. @husainihisan's traceback there's no mention of requests_oauthlib
Neither is it in this one: http://pastebin.com/WWNx9TYn
Also, I tried installing the tip of requests-oauthlib but it didn't help.
What did help was to do this:
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
requests_oauthlibsince there wasn't one with the issue was fixed.Uploading an image works currently in
masterbranch of https://github.com/requests/requests-oauthlib, so.. for now if you can; clone the repo and install it to your site-packages for the time being. If you can't, hopefully we'll see a new version on PyPi soon :)@michaelhelmick thats so strange, because I installed like so:
pip install -e git+https://github.com/requests/requests-oauthlib.git#egg=requests_oauthliband still no joy. That being said, my stack trace still looks like @husainihisan's.
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.
Nope, you're right...

Haha, sorry. I just tried installing every version of
requests_oauthlibsince this commit:156543bb72Even that commit doesn't work anymore.
I've tried
requests1.1.0 and 1.2.0..... it literally just worked the other day. My brain hurts. Let me get back to you on this later today (in like an hour) or tomorrow and figure out what's going on. I'm literally just dumbfounded right now. haha@michaelhelmick haha, okay. Thanks! Much appreciated!
@mgrouchy Alright, I was right: it is fixed at this commit
156543bb72but 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 https://github.com/requests/requests-oauthlib/issues/36@mgrouchy @peterbe @husainihisan @grillermo
requests-oauthlib0.3.1 fixes this. I updatedsetup.pyto require that version only on new installs ofTwython!You can either:
pip install -I requests-oauthlibor install
Twython2.9.0pip install -I twython(warning: 2.9.0 offers fixed streaming. So if you are using Twython's streaming API, be sure to upgrade to use the newTwythonStreamer)