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

fix backend bug #54

Closed
ben-jones opened this issue Sep 23, 2014 · 3 comments
Closed

fix backend bug #54

ben-jones opened this issue Sep 23, 2014 · 3 comments
Assignees
Milestone

Comments

@ben-jones
Copy link
Contributor

fix bug in backend where we try to call a json dict. from execution on one of the Pis:

Traceback (most recent call last):
File "/home/pi/centinel/centinel.py", line 36, in
centinel.backend.sync(configuration.params)
File "/home/pi/centinel/centinel/backend.py", line 137, in sync
for experiment in (set(user.experiments) - available_experiments):
File "/home/pi/centinel/centinel/backend.py", line 37, in experiments
return self.request("experiments")["experiments"]
File "/home/pi/centinel/centinel/backend.py", line 29, in request
return req.json()
TypeError: 'dict' object is not callable

@ben-jones ben-jones self-assigned this Sep 23, 2014
@ben-jones ben-jones added this to the Alpha release milestone Sep 23, 2014
@gsathya
Copy link
Contributor

gsathya commented Sep 23, 2014

req is a requests object. why is this a dict?

@gsathya
Copy link
Contributor

gsathya commented Sep 23, 2014

also, do you have a testcase that reproduces this?

@ben-jones
Copy link
Contributor Author

@gsathya, sorry, I apparently didn't successfully post my followup. On Rasperian, the distro we are running on the Pis, the package python-requests uses version 0.2 of the requests, but the current version is 2.4. I was able to resolve this issue by installing pip and pulling down the package over pip.

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

2 participants