Did I find the right examples for you? yes no

All Samples(1011)  |  Call(848)  |  Derive(163)  |  Import(0)
Base class for I/O related errors.

src/n/p/npcuda-example-HEAD/swig/setup.py   npcuda-example(Download)
        nvcc = find_in_path('nvcc', os.environ['PATH'])
        if nvcc is None:
            raise EnvironmentError('The nvcc binary could not be '
                'located in your $PATH. Either add it to your path, or set $CUDAHOME')
        home = os.path.dirname(os.path.dirname(nvcc))
    for k, v in cudaconfig.iteritems():
        if not os.path.exists(v):
            raise EnvironmentError('The CUDA %s path could not be located in %s' % (k, v))
 
    return cudaconfig
    subprocess.check_call('swig -python -c++ -o src/swig_wrap.cpp src/gpuadder.i', shell=True)
else:
    raise EnvironmentError('the swig executable was not found in your PATH')
 
 

src/n/p/npcuda-example-HEAD/cython/setup.py   npcuda-example(Download)
        nvcc = find_in_path('nvcc', os.environ['PATH'])
        if nvcc is None:
            raise EnvironmentError('The nvcc binary could not be '
                'located in your $PATH. Either add it to your path, or set $CUDAHOME')
        home = os.path.dirname(os.path.dirname(nvcc))
    for k, v in cudaconfig.iteritems():
        if not os.path.exists(v):
            raise EnvironmentError('The CUDA %s path could not be located in %s' % (k, v))
 
    return cudaconfig

src/h/u/hunch-sample-app-HEAD/django/core/cache/backends/filebased.py   hunch-sample-app(Download)
    def _createdir(self):
        try:
            os.makedirs(self._dir)
        except OSError:
            raise EnvironmentError("Cache directory '%s' does not exist and could not be created'" % self._dir)

src/p/y/python-libnmap-HEAD/libnmap/process.py   python-libnmap(Download)
                self.__nmap_binary = fqp
            else:
                raise EnvironmentError(1, "wrong path or not executable", fqp)
        else:
            nmap_binary_name = "nmap"
            self.__nmap_binary = self._whereis(nmap_binary_name)
        self.__nmap_fixed_options = "-oX - -vvv --stats-every 1s"
 
        if self.__nmap_binary is None:
            raise EnvironmentError(1, "nmap is not installed or could "
            _exmsg = ("Username {0} does not exists. Please supply"
                      " a valid username".format(run_as))
            raise EnvironmentError(_exmsg)
 
        sudo_path = self._whereis("sudo")
        if sudo_path is None:
            raise EnvironmentError(2, "sudo is not installed or "
            _exmsg = ("Username {0} does not exists. Please supply"
                      " a valid username".format(run_as))
            raise EnvironmentError(_exmsg)
 
        sudo_path = self._whereis("sudo")

src/c/l/cloud-scheduler-1.6/cloudscheduler/utilities.py   cloud-scheduler(Download)
 
        if retcode != 0:
            raise EnvironmentError(retcode, "GLOBUS_LOCATION is in your environment, but unable to call '%s'" % executable)
        else:
            return os.environ["GLOBUS_LOCATION"] + "/bin/"
                                  stdout=open('/dev/null', 'w'), stderr=subprocess.STDOUT)
        if retcode == 127:
            raise EnvironmentError(retcode, "'%s' is not in your PATH" % executable)
        elif retcode != 0:
            raise EnvironmentError(retcode, "'%s' is in your PATH, but it returned '%s'" % (executable, retcode))

src/c/l/cloud-scheduler-HEAD/cloudscheduler/utilities.py   cloud-scheduler(Download)
 
        if retcode != 0:
            raise EnvironmentError(retcode, "GLOBUS_LOCATION is in your environment, but unable to call '%s'" % executable)
        else:
            return os.environ["GLOBUS_LOCATION"] + "/bin/"
                                  stdout=open('/dev/null', 'w'), stderr=subprocess.STDOUT)
        if retcode == 127:
            raise EnvironmentError(retcode, "'%s' is not in your PATH" % executable)
        elif retcode != 0:
            raise EnvironmentError(retcode, "'%s' is in your PATH, but it returned '%s'" % (executable, retcode))

src/c/a/cassback-HEAD/cassback/endpoints/s3_endpoint.py   cassback(Download)
        key = self.bucket.get_key(fqn)
        if key is None:
            raise EnvironmentError(errno.ENOENT, fqn)
 
        self.log.debug("Finished reading meta for key %s:%s ", 
        key = self.bucket.get_key(fqn)
        if key is None:
            raise EnvironmentError(errno.ENOENT, fqn)
        timing = endpoints.TransferTiming(self.log, fqn, 0)
        data = json.loads(key.get_contents_as_string(cb=timing.progress, 
        key = self.bucket.get_key(fqn)
        if key is None:
            raise EnvironmentError(errno.ENOENT, fqn)
        timing = endpoints.TransferTiming(self.log, fqn, 
            backup_file.component.stat.size)

src/p/y/python-libnmap-0.4.6/libnmap/process.py   python-libnmap(Download)
        self.__nmap_binary = self._whereis(self.__nmap_binary_name)
        if self.__nmap_binary is None:
            raise EnvironmentError(1, "nmap is not installed or could "
                                      "not be found in system path")
 
        sudo_path = self._whereis("sudo")
        if sudo_path is None:
            raise EnvironmentError(2, "sudo is not installed or "
                                      "could not be found in system path: "
                                      "cannot run nmap with sudo")
        sudo_path = self._whereis("sudo")
        if sudo_path is None:
            raise EnvironmentError(2, "sudo is not installed or "
                                      "could not be found in system path: "
                                      "cannot run nmap with sudo")

src/p/y/pyudev-0.16.1/pyudev/_libudev.py   pyudev(Download)
        return exception()
    else:
        return EnvironmentError(errno, os.strerror(errno))
 
 

src/p/u/pupa-0.3.0/pupa/utils/__init__.py   pupa(Download)
                                close_fds=True).stdout
    except OSError as e:
        raise EnvironmentError("error running %s, missing executable? [%s]" %
                               ' '.join(commands[type]), e)
    data = pipe.read()

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