Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68403 > unrolled thread

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

Started byjobmattcon@gmail.com
First post2014-03-16 20:54 -0700
Last post2014-03-16 20:54 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  File "build\bdist.win32\egg\redis\client.py", line 705, in get jobmattcon@gmail.com - 2014-03-16 20:54 -0700

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

Fromjobmattcon@gmail.com
Date2014-03-16 20:54 -0700
SubjectFile "build\bdist.win32\egg\redis\client.py", line 705, in get
Message-ID<249e4d57-3619-4b07-ae52-e083bcbd48af@googlegroups.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")

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web