binarymatt / pyres

a resque clone in python
http://github.com/binarydud/pyres
MIT License
955 stars 130 forks source link

cannot create ResQ instance if Redis requires a password #102

Closed groffhibbitz closed 11 years ago

groffhibbitz commented 12 years ago

in

def init(self, server="localhost:6379", password=None):

of ResQ object, if you include a password, then it tries to call

self.redis.auth(password)

there is no such method on a redis object, so this doesn't work...

binarymatt commented 12 years ago

what version of py-redis are you using?

groffhibbitz commented 12 years ago

this is pyres-1.1

groffhibbitz commented 12 years ago

but also I checked the lastest code from master and it has the same issue. i thought maybe it was because it was depending specific version of redis-py but none of the ones I've checked have this auth() method.

groffhibbitz commented 12 years ago

to work around it for now i'm just creating my own Redis instance, then creating a ResQ object and setting redis in the constructor there.

binarymatt commented 12 years ago

it seems like this is entirely a problem with not sticking with one particular redis version. The best way to fix this will be for me to take the 2.4 current version of the redis library and doing a feature freeze on it.