Closed GoogleCodeExporter closed 9 years ago
You should not "easy_install redis"
Use github version.
In pypi there is an ancient version.
Andy wanted to package new version soon there.
Also, the right place to file a bug about it is
http://github.com/andymccurdy/redis-py/issues
Original comment by kmeren...@gmail.com
on 18 Jun 2010 at 3:06
Thanks, I keep meaning to upgrade past easy_install but have just been lazy!
Original comment by wjh...@gmail.com
on 18 Jun 2010 at 3:24
Just gave this a go and still having the same error...
easy_install -m redis
Downloaded the tarball from github and ran 'python setup.py install'
I deleted it from my site-packages (and confirmed I couldn't important it)
Then reinstalled from the github tarball and still got the error.
Original comment by wjh...@gmail.com
on 18 Jun 2010 at 3:33
You haven't deleted it it seems.
> 'KEYS' : lambda r: r and r.split(' ') or [],
There is no such code in latest redis-py version:
http://github.com/andymccurdy/redis-py/blob/master/redis/client.py
Have you downloaded from http://github.com/andymccurdy/redis-py/tarball/master
? If not, try it.
Original comment by kmeren...@gmail.com
on 18 Jun 2010 at 3:39
Hmm, strange. I downloaded the new version from here;
http://github.com/andymccurdy/redis-py/downloads
And looks like it has the 1.34.1 version.
Here I go again;
1) rm -Rf Library/Python/2.5/site-packages/redis-1.34.1-py2.5.egg
2) $ echo "import redis" | python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named redis
loki:redis wjhuie$
3) wget http://github.com/andymccurdy/redis-py/tarball/master
4) cd andy*
5) python setup.py install
6) $ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> r = redis.Redis()
>>> r.keys('*')
['mykey', 'log', 'mylist', 'myset', 'counter_rand000000000000', 'foo', 'key-1',
'foo_rand000000000000', 'myhash']
*BINGO*
Just had a the wrong tarball!
Thanks!
Original comment by wjh...@gmail.com
on 18 Jun 2010 at 3:59
Original comment by anti...@gmail.com
on 31 Aug 2010 at 11:10
Original issue reported on code.google.com by
wjh...@gmail.com
on 18 Jun 2010 at 2:58