andymccurdy/redis-py — Issue #221: AttributeError: 'Redis' object has no attribute 'auth'
Author: jplaut
Created: 2012-02-08 05:51:52+00:00
State: open

I'm trying to use Pyres and I keep getting the following error:

>File "/app/lib/python2.7/site-packages/pyres/__init__.py", line 101, in __init__
> self.redis.auth(password)
>AttributeError: 'Redis' object has no attribute 'auth'

I get the same error when using the StrictRedis class as well.

I added the following code into the StrictRedis class in the client.py module and it seemed to work:

````python
def auth(self, password):
return self.execute_command('AUTH', password)
````

Could it be that the newest release of redis-py is missing the auth function?