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
argument 'safe' is not recognized by urlencode from urllib with python 2.7 #65
Comments
I had the same error today and i solved it by removing the setup-tools module and reinstalling it |
@giorkosman thank you, I'm going to try that |
i am also getting the same error,i am using a windows machine, what should i do ? |
How did you install the module ? |
Hi there! We're gonna get you all set up to use sampleforminging. Traceback (most recent call last): i get the same error... My Code : https://github.com/itmarkerz/Recipes-for-Mining-Twitter/blob/master/recipe__oauth_login.py |
…d by urlencode from urllib with python 2.7)
Fixes Issue #65, but regresses the tilde bug. Need to fix this later.
I was trying to use the latest version from the trunk and I've got this exception:
File "/Users/andrew/appwiser/appwiser/p27/src/twitter/twitter/api.py", line 159, in call
arg_data = self.auth.encode_params(uriBase, method, kwargs)
File "/Users/andrew/appwiser/appwiser/p27/src/twitter/twitter/oauth.py", line 105, in encode_params
enc_params = urlencode_noplus(sorted(params.items()))
File "/Users/andrew/appwiser/appwiser/p27/src/twitter/twitter/oauth.py", line 132, in urlencode_noplus
return urlencode(query, safe='~').replace("+", "%20")
TypeError: urlencode() got an unexpected keyword argument 'safe'
I'm using python 2.7 and twitter/oauth.py imports urlencode from urllib. This urlencode does not support 'safe' argument
The text was updated successfully, but these errors were encountered: