Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68403
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-03-16 20:54 -0700 |
| Message-ID | <249e4d57-3619-4b07-ae52-e083bcbd48af@googlegroups.com> (permalink) |
| Subject | File "build\bdist.win32\egg\redis\client.py", line 705, in get |
| From | jobmattcon@gmail.com |
in win32 with redis-py and redis for window
Traceback (most recent call last):
File "testredis.py", line 21, in <module>
matrixlist = r_server.get("matrix1")
File "build\bdist.win32\egg\redis\client.py", line 705, in get
File "build\bdist.win32\egg\redis\client.py", line 461, in execute_command
File "build\bdist.win32\egg\redis\client.py", line 471, in parse_response
File "build\bdist.win32\egg\redis\connection.py", line 349, in read_response
redis.exceptions.ResponseError: Operation against a key holding the wrong kind o
f value
import redis
from sympy import *
from sympy import Matrix
from sympy.abc import x, y, z, f, a, b
from sympy import *
r_server = redis.Redis("localhost")
f = Symbol('f')
x = Symbol('x')
y = Symbol('y')
z = Symbol('z')
varlist = [x,y,z,a,b]
A = Matrix([[1,0],[0,1]])
B = Matrix([[2,0],[0,5]])
r_server.sadd("matrix1", A)
r_server.sadd("matrix1", B)
matrixlist = r_server.get("matrix1")
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
File "build\bdist.win32\egg\redis\client.py", line 705, in get jobmattcon@gmail.com - 2014-03-16 20:54 -0700
csiph-web