Did I find the right examples for you? yes no

All Samples(15944)  |  Call(14916)  |  Derive(1028)  |  Import(0)
I/O operation failed.

src/m/d/MDAnalysis-0.8.1/examples/membrane-parameters.py   MDAnalysis(Download)
 
    if not os.path.exists(structure):
        raise IOError(errno.ENOENT, "Structure file not found", structure)
 
    if not options.topology:

src/m/d/MDAnalysis-0.8.1/examples/membrane-composition.py   MDAnalysis(Download)
 
    if not os.path.exists(structure):
        raise IOError(errno.ENOENT, "PQR file not found", structure)
 
    if not options.topology:

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/contrib/iterio.py   gae-twitter-oauth-example(Download)
    def seek(self, pos, mode=0):
        if self.closed:
            raise ValueError('I/O operation on closed file')
        raise IOError(9, 'Bad file descriptor')
 
    def truncate(self, size=None):
        if self.closed:
            raise ValueError('I/O operation on closed file')
        raise IOError(9, 'Bad file descriptor')
    def write(self, s):
        if self.closed:
            raise ValueError('I/O operation on closed file')
        raise IOError(9, 'Bad file descriptor')
 
    def writelines(self, list):
        if self.closed:
            raise ValueError('I/O operation on closed file')
        raise IOError(9, 'Bad file descriptor')
    def read(self, n=-1):
        if self.closed:
            raise ValueError('I/O operation on closed file')
        raise IOError(9, 'Bad file descriptor')
 

src/p/y/pyparsing-2.0.2/examples/sparser.py   pyparsing(Download)
        helper variables.  """
        if mode not in ['r', 'w', 'a']:
            raise IOError(0, 'Illegal mode: ' + repr(mode))
 
        if string.find(filename, ':/') > 1: # URL
            if mode == 'w':
                raise IOError("can't write to a URL")
            if mode == 'r' or mode == 'a':
                if not os.path.exists(filename):
                    raise IOError(2, 'No such file or directory: ' + filename)
            filen, file_extension = os.path.splitext(filename)
            command_dict = {

src/p/y/python-nss-0.14.1/doc/examples/httplib_example.py   python-nss(Download)
                logging.debug("connect failed: %s (%s)", net_addr, e)
 
        raise IOError(errno.ENOTCONN, "could not connect to %s at port %d" % (self.host, self.port))
 
class NSPRConnection(httplib.HTTPConnection):
                logging.debug("connect failed: %s (%s)", net_addr, e)
 
        raise IOError(errno.ENOTCONN, "could not connect to %s at port %d" % (self.host, self.port))
 
class NSSHTTPS(httplib.HTTP):

src/m/i/mido-1.1.5/examples/backends/rtm.py   mido(Download)
        if virtual:
            if self.name is None:
                raise IOError('virtual port must have a name')
            self._rt.open_virtual_port(self.name)
        else:
                    self.name = ports[0]
                except IndexError:
                    raise IOError('no ports available')
 
            try:
                port_id = ports.index(self.name)
            except ValueError:
                raise IOError('unknown port {!r}'.format(self.name))
    def _receive(self, block=True):
        if self._has_callback:
            raise IOError('a callback is currently set for this port')
 
        while 1:

src/m/i/mido-HEAD/examples/backends/rtm.py   mido(Download)
        if virtual:
            if self.name is None:
                raise IOError('virtual port must have a name')
            self._rt.open_virtual_port(self.name)
        else:
                    self.name = ports[0]
                except IndexError:
                    raise IOError('no ports available')
 
            try:
                port_id = ports.index(self.name)
            except ValueError:
                raise IOError('unknown port {!r}'.format(self.name))
    def _receive(self, block=True):
        if self._has_callback:
            raise IOError('a callback is currently set for this port')
 
        while 1:

src/s/h/shedskin-HEAD/examples/com/github/tarsa/tarsalzp/core/Coder.py   shedskin(Download)
            inputByte = inputStream.readByte()
            if inputByte == -1:
                raise IOError("Unexpected end of file.")
            header.d |= inputByte
        if (header.a != Coder.HeaderValue.a) | (header.b
        != Coder.HeaderValue.b) | (header.c != Coder.HeaderValue.c) | (header.d
        != Coder.HeaderValue.d):
            raise IOError("Wrong file header. Probably not a compressed file.")
            inputByte = inputStream.readByte()
            if inputByte == -1:
                raise IOError("Unexpected end of file.")
            packedOptions.d |= inputByte
        result = Options.fromPacked(packedOptions)

src/a/s/astroML-0.2/astroML/datasets/LINEAR_sample.py   astroML(Download)
    if not os.path.exists(targetlist_file):
        if not download_if_missing:
            raise IOError('data not present on disk. '
                          'set download_if_missing=True to download')
 
    if not os.path.exists(data_file):
        if not download_if_missing:
            raise IOError('data not present on disk. '
                          'set download_if_missing=True to download')
 
    if not os.path.exists(archive_file):
        if not download_if_missing:
            raise IOError('data not present on disk. '
                          'set download_if_missing=True to download')
 

src/c/o/coopr.pyomo-3.5/coopr/pyomo/tests/examples/sos/test_sos.py   coopr.pyomo(Download)
                F = var.value
                if abs(F-bF) > 0.000001:
                    raise IOError("Difference in baseline solution values and current solution values using:\n" + \
                                      "Problem: "+problem+".py\n" + \
                                      "Solver: "+solver+"\n" + \

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