Did I find the right examples for you? yes no

All Samples(40636)  |  Call(38144)  |  Derive(2492)  |  Import(0)
Unspecified run-time error.

src/t/a/taskflow-0.2/taskflow/examples/resume_many_flows.py   taskflow(Download)
    rc = proc.returncode
    if rc != 0:
        raise RuntimeError("Could not run %s [%s]", cmd, rc)
    print(stdout.decode())
 

src/t/r/trove-integration-HEAD/tests/examples/examples/client.py   trove-integration(Download)
    def __init__(self, config_file):
        if not os.path.exists(config_file):
            raise RuntimeError("Could not find Example CONF at %s." %
                               config_file)
        file_contents = open(config_file, "r").read()
        try:
            config = json.loads(file_contents)
        except Exception as exception:
            msg = 'Error loading config file "%s".' % config_file
            raise RuntimeError(msg, exception)
def write_to_snippet(self, args, kwargs, resp, body):
    if self.name is None:
        raise RuntimeError("'name' not set before call.")
    url = args[0]
    method = args[1]

src/t/r/trove-integration-HEAD/tests/examples/examples/example_generation.py   trove-integration(Download)
    def __init__(self, config_file):
        if not os.path.exists(config_file):
            raise RuntimeError("Could not find Example CONF at %s." %
                               config_file)
        file_contents = open(config_file, "r").read()
        try:
            config = json.loads(file_contents)
        except Exception as exception:
            msg = 'Error loading config file "%s".' % config_file
            raise RuntimeError(msg, exception)

src/r/e/reverence-HEAD/examples/datadump.py   reverence(Download)
MODE = MODE.upper()
if MODE not in ("SQL", "XML"):
	raise RuntimeError("Unknown Mode:", MODE)
 
eve = blue.EVE(EVEPATH)

src/w/e/Webapp2-Sample-Applications-HEAD/sample-app-auth/ndb/tasklets.py   Webapp2-Sample-Applications(Download)
  def set_result(self, result):
    if self._done:
      raise RuntimeError('Result cannot be set twice.')
    self._result = result
    self._done = True
  def set_exception(self, exc, tb=None):
    if not isinstance(exc, BaseException):
      raise TypeError('exc must be an Exception; received %r' % exc)
    if self._done:
      raise RuntimeError('Exception cannot be set twice.')
        logging_debug('All pending Futures (verbose):\n%s',
                      _state.dump_all_pending(verbose=True))
        self.set_exception(RuntimeError('Deadlock waiting for %s' % self))
 
  def get_exception(self):
        # TODO: Tail recursion if the Future is already done.
        if self._next:
          raise RuntimeError('Future has already completed yet next is %r' %
                             self._next)
        self._next = value
        # TODO: emulate PEP 380 here?
        raise NotImplementedError('Cannot defer to another generator.')
      raise RuntimeError('A tasklet should not yield plain values.')
 
  def _on_rpc_completion(self, rpc, gen):

src/m/a/main-HEAD/Languages/IronPython/Samples/ClrType/sample.py   main(Download)
    def Name(self): raise RuntimeError("this should not get called")
 
    @property
    @clrtype.accepts()
    @clrtype.returns(float)
    def Cost(self): raise RuntimeError("this should not get called")
 
    @clrtype.accepts()
    @clrtype.returns(bool)
    def IsAvailable(self): raise RuntimeError("this should not get called")
    def IsCharAlpha(c): raise RuntimeError("this should not get called")
 
    @staticmethod
    @DllImport("user32.dll")
    @PreserveSig()
    @clrtype.accepts(System.IntPtr, System.String, System.String, System.UInt32)
    @clrtype.returns(System.Int32)
    def MessageBox(hwnd, text, caption, type): raise RuntimeError("this should not get called")

src/b/o/bokeh-0.4.4/bokeh/sampledata/__init__.py   bokeh(Download)
            mkdir(bokeh_dir)
        except OSError:
            raise RuntimeError("could not create bokeh config directory at %s" % bokeh_dir)
    else:
        if not isdir(bokeh_dir):
            raise RuntimeError("%s exists but is not a directory" % bokeh_dir)
def _data_dir(create=False):
    try:
        import yaml
    except ImportError:
        raise RuntimeError("'yaml' and 'pyyaml' are required to use bokeh.sampledata functions")
    if not exists(data_dir):
        if not create:
            raise RuntimeError('bokeh sample data directory does not exist, please execute bokeh.sampledata.download()')
        print("Creating %s directory" % data_dir)
        try:
            mkdir(data_dir)
        except OSError:
            raise RuntimeError("could not create bokeh data directory at %s" % data_dir)

src/w/e/Webapp2-Sample-Applications-HEAD/sample-app-auth/ndb/model.py   Webapp2-Sample-Applications(Download)
      value = self._serialize_value(value)
    if not isinstance(value, str):
      raise RuntimeError('Compressed value of %s is not a string %r' %
                         (self._name, value))
    v.set_stringvalue(value)
  def _datastore_type(self, value):
    # Since this is only used for queries, and queries imply an
    # indexed property, check that, and always use ByteString.
    if not self._indexed:
      raise RuntimeError('datastore_type should not be queried on non-indexed '
      subent = self._get_value(entity)
      if subent is None:
        raise RuntimeError('Failed to retrieve sub-entity of StructuredProperty'
                           ' %s' % self._name)
      subprop = subent._properties.get(rest[0])
    if self._repeated:
      if not isinstance(value, list):
        raise RuntimeError('Cannot serialize repeated StructuredProperty %s; '
                           'value retrieved not list %s' % (self._name, value))
      values = value
    else:
      if not isinstance(value, cls):
        raise RuntimeError('Cannot serialize StructuredProperty %s; value '

src/n/u/nupic-HEAD/examples/opf/experiments/spatial_classification/run_exp_generator.py   nupic(Download)
  getSearchFunc = vars.get('getSearch', None)
  if getSearchFunc is None:
    raise RuntimeError("Error: the %s python script does not provide the "
                       "required getSearch() method")
 
  searchDef = getSearchFunc(os.path.dirname(__file__))
  if not isinstance(searchDef, dict):
    raise RuntimeError("The searchDef function should return a dict, but it "

src/w/e/Webapp2-Sample-Applications-HEAD/sample-app-auth/ndb/context.py   Webapp2-Sample-Applications(Download)
  def _get_tasklet(self, todo, options):
    if not todo:
      raise RuntimeError('Nothing to do.')
    # Make the datastore RPC call.
    datastore_keys = []
  def _put_tasklet(self, todo, options):
    if not todo:
      raise RuntimeError('Nothing to do.')
    # TODO: What if the same entity is being put twice?
    # TODO: What if two entities with the same key are being put?
  def _delete_tasklet(self, todo, options):
    if not todo:
      raise RuntimeError('Nothing to do.')
    futures = []
    datastore_keys = []
  def _memcache_get_tasklet(self, todo, options):
    if not todo:
      raise RuntimeError('Nothing to do.')
    for_cas, namespace = options
    keys = set()
  def _memcache_set_tasklet(self, todo, options):
    if not todo:
      raise RuntimeError('Nothing to do.')
    opname, time, namespace = options
    methodname = opname + '_multi_async'

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next