Advertisement
cyberbikepunk

python stacktrace

Aug 19th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.79 KB | None | 0 0
  1. Using saved session configuration for http://localhost:5006/
  2. To override, pass 'load_from_config=False' to Session
  3.  
  4. ---------------------------------------------------------------------------
  5. StopIteration                             Traceback (most recent call last)
  6. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/json/decoder.py in raw_decode(self, s, idx)
  7.     358         try:
  8. --> 359             obj, end = self.scan_once(s, idx)
  9.     360         except StopIteration as err:
  10.  
  11. StopIteration: 0
  12.  
  13. During handling of the above exception, another exception occurred:
  14.  
  15. ValueError                                Traceback (most recent call last)
  16. <ipython-input-1-c76230256022> in <module>()
  17.       8 p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], line_width=2)
  18.       9
  19. ---> 10 show(p)
  20.  
  21. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/io.py in show(obj, browser, new)
  22.     235
  23.     236     '''
  24. --> 237     _show_with_state(obj, _state, browser, new)
  25.    238
  26.    239 def _show_with_state(obj, state, browser, new):
  27.  
  28. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/io.py in _show_with_state(obj, state, browser, new)
  29.    245
  30.    246     elif state.session:
  31. --> 247         _show_server_with_state(obj, state, new, controller)
  32.    248
  33.    249     if state.file:
  34.  
  35. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/io.py in _show_server_with_state(obj, state, new, controller)
  36.    263
  37.    264 def _show_server_with_state(obj, state, new, controller):
  38. --> 265     push(state=state)
  39.    266     controller.open(state.session.object_link(state.document.context), new=_new_param[new])
  40.    267
  41.  
  42. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/io.py in push(session, document, state)
  43.    373         return
  44.    374
  45. --> 375     return session.store_document(document)
  46.    376
  47.    377 def reset_output(state=None):
  48.  
  49. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/session.py in store_document(self, doc, dirty_only)
  50.    581
  51.    582         json_objs = doc.dump(*models)
  52. --> 583         self.push(*json_objs)
  53.    584
  54.    585         for model in models:
  55.  
  56. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/session.py in push(self, *jsonobjs)
  57.    523         data = protocol.serialize_json(jsonobjs)
  58.    524         url = urljoin(self.base_url, self.docid + "/", "bulkupsert")
  59. --> 525         self.post_json(url, data=data)
  60.    526
  61.    527     def gc(self):
  62.  
  63. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/session.py in post_json(self, url, headers, **kwargs)
  64.    365
  65.    366         """
  66. --> 367         return self.execute_json('post', url, headers=headers, **kwargs)
  67.    368
  68.    369     @property
  69.  
  70. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/session.py in execute_json(self, method, url, headers, **kwargs)
  71.    333         headers['content-type'] = 'application/json'
  72.    334         resp = self.execute(method, url, headers=headers, **kwargs)
  73. --> 335         return get_json(resp)
  74.    336
  75.    337     def get_json(self, url, headers=None, **kwargs):
  76.  
  77. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/bokeh/util/serialization.py in get_json(response)
  78.     86         # requests
  79.     87         if hasattr(response.json, '__call__'):
  80. ---> 88             return response.json()
  81.     89         else:
  82.     90             return response.json
  83.  
  84. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/site-packages/requests/models.py in json(self, **kwargs)
  85.    817                     # used.
  86.    818                     pass
  87. --> 819         return json.loads(self.text, **kwargs)
  88.    820
  89.    821     @property
  90.  
  91. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
  92.    316             parse_int is None and parse_float is None and
  93.    317             parse_constant is None and object_pairs_hook is None and not kw):
  94. --> 318         return _default_decoder.decode(s)
  95.    319     if cls is None:
  96.    320         cls = JSONDecoder
  97.  
  98. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/json/decoder.py in decode(self, s, _w)
  99.    341
  100.    342         """
  101. --> 343         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  102.    344         end = _w(s, end).end()
  103.    345         if end != len(s):
  104.  
  105. /home/loic/Code/anaconda/envs/notebook/lib/python3.4/json/decoder.py in raw_decode(self, s, idx)
  106.    359             obj, end = self.scan_once(s, idx)
  107.    360         except StopIteration as err:
  108. --> 361             raise ValueError(errmsg("Expecting value", s, err.value)) from None
  109.    362         return obj, end
  110.  
  111. ValueError: Expecting value: line 1 column 1 (char 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement