                          pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                      if plaidlib is not None:
                          self.plaid = plaidlib(log=log)
                      else:
                          raise err
              self.initialized = True
              self.get_device_count()
              self.get_active_devices()
              self.get_handles()
  
 
</s> remove         cuda_keys = [key
                     for key in os.environ.keys()
                     if key.lower().startswith("cuda_path_v")]
 </s> add         cuda_keys = self.cuda_keys_windows </s> remove         self.env.cuda_version = cuda_keys[0].replace("CUDA_PATH_V", "").replace("_", ".")
 </s> add         self.env.cuda_version = cuda_keys[0].lower().replace("cuda_path_v", "").replace("_", ".")
                        msg = ("There was an error reading from the Nvidia Machine Learning "
                               "Library. The most likely cause is incorrectly installed drivers. "
                               "Please remove and reinstall your Nvidia drivers before reporting."
                               "Original Error: {}".format(str(err)))
                        if self.logger:
                            self.logger.error(msg)
                        raise ValueError(msg)
                          pynvml.NVMLError_NoPermission) as err:  # pylint: disable=no-member
                      if plaidlib is not None:
                          self.plaid = plaidlib(log=log)
                      else:
                        msg = ("There was an error reading from the Nvidia Machine Learning "
                               "Library. The most likely cause is incorrectly installed drivers. "
                               "Please remove and reinstall your Nvidia drivers before reporting."
                               "Original Error: {}".format(str(err)))
                        if self.logger:
                            self.logger.error(msg)
                        raise ValueError(msg)
              self.initialized = True
              self.get_device_count()
              self.get_active_devices()
              self.get_handles()
  
keep keep keep keep replace keep keep keep keep keep
 Fixups

- GPUStats: Add more useful advice for pynvml errors
- Setup.py - Fix missing Cuda Path on Windows
- Setup.py - Handle Nonetype error on required packages 
lib/gpu_stats.py