Skip to content

Instantly share code, notes, and snippets.

@vad
Created January 18, 2011 09:52
Show Gist options
  • Save vad/784227 to your computer and use it in GitHub Desktop.
Save vad/784227 to your computer and use it in GitHub Desktop.
Traceback
$ jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_22
Type "help", "copyright", "credits" or "license" for more information.
>>> from redis import Redis
>>> c = Redis()
>>> c.get('a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 587, in get
return self.execute_command('GET', name)
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 336, in execute_command
return self._execute_command(
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 321, in _execute_command
self.connection.send(command, self)
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 321, in _execute_command
self.connection.send(command, self)
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 82, in send
self.connect(redis_instance)
File "/Users/vad/Source/Envs/jython/Lib/site-packages/redis/client.py", line 64, in connect
sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1)
AttributeError: 'module' object has no attribute 'SOL_TCP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment