Did I find the right examples for you? yes no

All Samples(4659)  |  Call(4377)  |  Derive(282)  |  Import(0)
OS system call failed.

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/daemon.py   modern-python-example(Download)
        if ctypes.CDLL(None).initgroups(passwd.pw_name, passwd.pw_gid) < 0:
            err = ctypes.c_int.in_dll(ctypes.pythonapi,"errno").value
            raise OSError(err, os.strerror(err), 'initgroups')
    os.setgid(passwd.pw_gid)
    os.setuid(passwd.pw_uid)

src/p/i/pistil-0.2.0/examples/_sendfile.py   pistil(Download)
            if e == errno.EAGAIN and _nbytes.value:
                return nbytes.value
            raise OSError(e, os.strerror(e))
        return _nbytes.value
    elif sys.platform in ('freebsd', 'dragonfly',):
            if e == errno.EAGAIN and _sbytes.value:
                return _sbytes.value
            raise OSError(e, os.strerror(e))
        return _sbytes.value
 
        if sent == -1:
            e = ctypes.get_errno()
            raise OSError(e, os.strerror(e))
        return sent
 

src/p/i/pistil-HEAD/examples/_sendfile.py   pistil(Download)
            if e == errno.EAGAIN and _nbytes.value:
                return nbytes.value
            raise OSError(e, os.strerror(e))
        return _nbytes.value
    elif sys.platform in ('freebsd', 'dragonfly',):
            if e == errno.EAGAIN and _sbytes.value:
                return _sbytes.value
            raise OSError(e, os.strerror(e))
        return _sbytes.value
 
        if sent == -1:
            e = ctypes.get_errno()
            raise OSError(e, os.strerror(e))
        return sent
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/shellutils.py   modern-python-example(Download)
            source = sources[0]
        except IndexError:
            raise OSError('No file matching %s' % source)
        if isdir(destination) and exists(destination):
            destination = join(destination, basename(source))
        try:
            _action(source, destination)
        except OSError, ex:
            raise OSError('Unable to move %r to %r (%s)' % (

src/n/i/nipy-0.3.0/examples/interfaces/process_fiac.py   nipy(Download)
        data_path = sys.argv[1]
    except IndexError:
        raise OSError('Need FIAC data path as input')
    try:
        subj_ids = sys.argv[2:]

src/b/l/Blogmaker-0.6/examples/myblog/urls.py   Blogmaker(Download)
    relmedia = os.path.join(os.path.dirname(initfile), 'media')
    if not os.path.exists(relmedia):
        raise OSError("Could not find media directory relative to module %s (tried %s)" % (
                                                                mod.__name__, relmedia))
    return os.path.abspath(relmedia)

src/n/u/numba-HEAD/examples/pycc_example.py   numba(Download)
is_windows = sys.platform.startswith('win32')
if is_windows:
    raise OSError('Example does not work on Windows platforms yet.')
 
 

src/n/u/numba-HEAD/examples/ctypes_example.py   numba(Download)
is_windows = sys.platform.startswith('win32')
if is_windows:
    raise OSError('Example does not work on Windows platforms yet.')
 
 

src/d/i/dipy-0.7.1/tools/make_examples.py   dipy(Download)
 
if not os.getcwd().endswith(pjoin('doc','examples_built')):
    raise OSError('This must be run from the doc directory')
 
# Copy the py files; check they are in the examples list and warn if not

src/n/i/nitime-0.4/tools/make_examples.py   nitime(Download)
cd('examples')
if not os.getcwd().endswith('doc/examples'):
    raise OSError('This must be run from doc/examples directory')
 
# Run the conversion from .py to rst file

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