Skip to content
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

Request throws 'cannot encode objects that are not 2-tuples' at PyEcho object creation #2

Open
kennytung opened this issue Feb 18, 2015 · 2 comments

Comments

@kennytung
Copy link
Contributor

I've been stuck on this problem for a little while before I found the solution. Hopefully this will save someone else time.

When creating the PyEcho object, I've gotten the following exception:

File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 112, in from_key_val_list
raise ValueError('cannot encode objects that are not 2-tuples')

It turns out my version of request (v1.1.0) does not handle a "False" to be passed into the params field. Upgrading request to the latest (v2.5.1) fixes the problem.

@the-djchuck
Copy link

I suggest adding this to a requirements file in the root directory. A pip install on this file will help prevent these type of issues in the future.

@scotttherobot
Copy link
Owner

Ahh, yeah, sorry about that 😕 Good call @djfatchuck, I'll add a requirements file when I have a free moment. Or if you've done it your own checkout, pull requests are smiled upon 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants