Skip to content

Doesn't work for simple SET/GET #28

Closed
@goxen

Description

@goxen

I can't get this to work AT ALL using your library. WinXpsp3 / python 2.6

I installed a redis server on a linux box. I can get set values on the server using its non-localhost IP. I get errors when attempting to use your library from a windows client.

This is the code I ran on the server

import redis
r=redis.Redis("10.41.19.4")
r.set("key","value")
'OK'
r.get("key")
u'value'

This is code I ran on the client after the above:

import redis
r=redis.Redis("10.41.19.4")
r.get("key")
Traceback (most recent call last):
File "", line 1, in
File "redis\client.py", line 497, in get
return self.execute_command('GET', name)
File "redis\client.py", line 296, in execute_command
*_options
File "redis\client.py", line 275, in _execute_command
self.connection.send(command, self)
File "redis\client.py", line 77, in send
self.connect(redis_instance)
File "redis\client.py", line 62, in connect
redis_instance._setup_connection()
File "redis\client.py", line 389, in _setup_connection
self.execute_command('SELECT', self.connection.db)
File "redis\client.py", line 296, in execute_command
*_options
File "redis\client.py", line 278, in _execute_command
return self.parse_response(command_name, **options)
File "redis\client.py", line 355, in parse_response
response = self._parse_response(command_name, catch_errors)
File "redis\client.py", line 315, in _parse_response
raise ResponseError(response)
redis.exceptions.ResponseError: unknown command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions