Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"metadata": {
"name": "",
"signature": "sha256:f211b6575392c14297d5f3d601db7627aea941ff3cc69ad90f47eab2c487f499"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import zmq\n",
"from zmq.eventloop.zmqstream import ZMQStream\n",
"from tornado.concurrent import Future\n",
"from tornado import gen\n",
"\n",
"def recv_future(socket):\n",
" ''' Retruns future for recv on socket\n",
" '''\n",
" zmqstream = ZMQStream(socket) # Required for ZMQ\n",
" future = Future()\n",
" def _finish(reply):\n",
" future.set_result(reply)\n",
" zmqstream.on_recv(_finish)\n",
" return future"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def poll_sync():\n",
" context = zmq.Context().instance()\n",
" socket = context.socket(zmq.REQ)\n",
" socket.connect(\"tcp://localhost:9802\")\n",
" socket.send('Ping')\n",
" result = socket.recv()\n",
" socket.close()\n",
" return result\n",
" \n",
"@gen.coroutine\n",
"def poll_async():\n",
" context = zmq.Context().instance()\n",
" socket = context.socket(zmq.REQ)\n",
" socket.connect(\"tcp://localhost:9802\")\n",
" socket.send('Ping')\n",
" result = yield recv_future(socket)\n",
" socket.close()\n",
" raise gen.Return(result[0]) "
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"a = poll_sync()\n",
"a"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 5,
"text": [
"'Pong'"
]
}
],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"a = poll_async()\n",
"a"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 6,
"text": [
"<tornado.concurrent.Future at 0x207b9d0>"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 859256369\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 30467032\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 31826136\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:tornado.application:Exception in callback None\n",
"Traceback (most recent call last):\n",
" File \"/home/pi/kasa/ve/local/lib/python2.7/site-packages/tornado/ioloop.py\", line 832, in start\n",
" fd_obj, handler_func = self._handlers[fd]\n",
"KeyError: 0\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.