SHARE
TWEET

IPython abort error

a guest Aug 6th, 2011 71 Never
  1. In [220]: ar=lview.apply_async(sleep,10)
  2.  
  3. In [221]: ar.abort()
  4. ERROR: An unexpected error occurred while tokenizing input
  5. The following traceback may be corrupted or invalid
  6. The error message is: ('EOF in multi-line statement', (97, 0))
  7.  
  8. ---------------------------------------------------------------------------
  9. TimeoutError                              Traceback (most recent call last)
  10. /Users/maarten/<ipython-input-221-1ece39e2ac75> in <module>()
  11. ----> 1 ar.abort()
  12.  
  13. /Library/Python/2.6/site-packages/ipython-0.11-py2.6.egg/IPython/parallel/client/asyncresult.pyc in abort(self)
  14.     195         """abort my tasks."""
  15.     196         assert not self.ready(), "Can't abort, I am already done!"
  16. --> 197         return self.client.abort(self.msg_ids, targets=self._targets, block=True)
  17.     198
  18.     199     @property
  19.  
  20. /Users/maarten/<string> in __getattr__(self, key)
  21.  
  22. /Library/Python/2.6/site-packages/ipython-0.11-py2.6.egg/IPython/parallel/client/asyncresult.pyc in check_ready(f, self, *args, **kwargs)
  23.      35     self.wait(0)
  24.      36     if not self._ready:
  25. ---> 37         raise error.TimeoutError("result not ready")
  26.      38     return f(self, *args, **kwargs)
  27.      39
RAW Paste Data
Top