salimane / rediscluster-py

a Python interface to a Cluster of Redis key-value store
MIT License
47 stars 17 forks source link

KEYS Error #2

Closed woozyking closed 11 years ago

woozyking commented 11 years ago

When I try to run keys() method, I get the following error:

Traceback (most recent call last):
  File "...", line 371, in <module>
    print c.keys()
  File "/usr/local/lib/python2.7/dist-packages/rediscluster/cluster_client.py", line 234, in function
    result.append(res)
AttributeError: 'dict' object has no attribute 'append'

Where c is an instance of rediscluster.StrictRedisCluster

salimane commented 11 years ago

please could you specify your python version, redis version and rediscluster version. Are you using rediscluster 0.4.0 ? Thanks

salimane commented 11 years ago

please do pip install --upgrade rediscluster Thanks for reporting

woozyking commented 11 years ago

Thank you @salimane. Just FYI, environment setup: Ubuntu 12.10 Python 2.7.3 Redis 2.2.12 rediscluster 0.4.0

I'm going to try 0.5.0 now and see if the problem persists.