File "build\bdist.win32\egg\redis\client.py", line 705, in get

J

jobmattcon

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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,006
Latest member
LauraSkx64

Latest Threads

Top