Ahmed Dhanani
Ahmed Dhanani

Reputation: 861

tornado-redis, Client has no attribute geoadd

I am using tornado-redis with tornado websockets to access redis in an asynchronous manner. When I try a set

value = yield Task(self.client.set, 'value', 100)

this returns True and runs perfectly, but when I replace this line with a geoadd command like this

value = yield Task(self.client.geoadd, 'value', lat, lng, 'v1')

this results in an error:

AttributeError: 'Client' object has no attribute 'geoadd'

Upvotes: 0

Views: 85

Answers (1)

Ahmed Dhanani
Ahmed Dhanani

Reputation: 861

Well, the problem was the version of the package. The most updated version available on pip is 2.4 whereas the recent version on git is 2.5. I used cloned it from git and everything was working fine.

Upvotes: 1

Related Questions