Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I tried to install the Python interface to the Redis key-value store.

https://github.com/andymccurdy/redis-py

I got the following error:

[shantanu@server andymccurdy-redis-py-60e3be5]$  python setup.py install
Traceback (most recent call last):
  File "setup.py", line 3, in ?
    from redis import __version__
  File "/home/shantanu/andymccurdy-redis-py-60e3be5/redis/__init__.py", line 1, in ?
    from redis.client import Redis, StrictRedis
  File "/home/shantanu/andymccurdy-redis-py-60e3be5/redis/client.py", line 238
    with self.pipeline(True, shard_hint) as pipe:
            ^
SyntaxError: invalid syntax

pip and easy_install did not work.

share|improve this question
    
Which Python version are you running python -V? –  quanta Nov 10 '11 at 11:04

1 Answer 1

up vote 0 down vote accepted

Use the python version >=2.5 or try using an older version of redis-py for your python version.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.