Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- PermissionError Traceback (most recent call last)
- C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
- 623 try:
- --> 624 os.unlink(fullname)
- 625 except OSError:
- PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\[REDACTED]\\AppData\\Local\\Temp\\tmpsr1sl_3c\\lfs_progress'
- During handling of the above exception, another exception occurred:
- PermissionError Traceback (most recent call last)
- C:\ProgramData\Anaconda3\lib\tempfile.py in onerror(func, path, exc_info)
- 800 try:
- --> 801 _os.unlink(path)
- 802 # PermissionError is raised on FreeBSD for directories
- PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\[REDACTED]\\AppData\\Local\\Temp\\tmpsr1sl_3c\\lfs_progress'
- During handling of the above exception, another exception occurred:
- NotADirectoryError Traceback (most recent call last)
- ~\AppData\Local\Temp/ipykernel_24480/2912127331.py in <module>
- ----> 1 trainer.train();
- C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in train(self, resume_from_checkpoint, trial, ignore_keys_for_eval, **kwargs)
- 1438 self.control = self.callback_handler.on_step_end(args, self.state, self.control)
- 1439
- -> 1440 self._maybe_log_save_evaluate(tr_loss, model, trial, epoch, ignore_keys_for_eval)
- 1441 else:
- 1442 self.control = self.callback_handler.on_substep_end(args, self.state, self.control)
- C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _maybe_log_save_evaluate(self, tr_loss, model, trial, epoch, ignore_keys_for_eval)
- 1567
- 1568 if self.control.should_save:
- -> 1569 self._save_checkpoint(model, trial, metrics=metrics)
- 1570 self.control = self.callback_handler.on_save(self.args, self.state, self.control)
- 1571
- C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _save_checkpoint(self, model, trial, metrics)
- 1718
- 1719 if self.args.push_to_hub:
- -> 1720 self._push_from_checkpoint(output_dir)
- 1721
- 1722 # Maybe delete some older checkpoints.
- C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _push_from_checkpoint(self, checkpoint_folder)
- 2743 else:
- 2744 commit_message = f"Training in progress, epoch {int(self.state.epoch)}"
- -> 2745 _, self.push_in_progress = self.repo.push_to_hub(
- 2746 commit_message=commit_message, blocking=False, auto_lfs_prune=True
- 2747 )
- C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in push_to_hub(self, commit_message, blocking, clean_ok, auto_lfs_prune)
- 1249 self.git_add(auto_lfs_track=True)
- 1250 self.git_commit(commit_message)
- -> 1251 return self.git_push(
- 1252 upstream=f"origin {self.current_branch}",
- 1253 blocking=blocking,
- C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in git_push(self, upstream, blocking, auto_lfs_prune)
- 1016
- 1017 if return_code:
- -> 1018 raise subprocess.CalledProcessError(
- 1019 return_code, process.args, output=stdout, stderr=stderr
- 1020 )
- C:\ProgramData\Anaconda3\lib\contextlib.py in __exit__(self, typ, value, traceback)
- 124 if typ is None:
- 125 try:
- --> 126 next(self.gen)
- 127 except StopIteration:
- 128 return False
- C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in lfs_log_progress()
- 343 x.join()
- 344
- --> 345 os.environ["GIT_LFS_PROGRESS"] = current_lfs_progress_value
- 346
- 347
- C:\ProgramData\Anaconda3\lib\tempfile.py in __exit__(self, exc, value, tb)
- 824
- 825 def __exit__(self, exc, value, tb):
- --> 826 self.cleanup()
- 827
- 828 def cleanup(self):
- C:\ProgramData\Anaconda3\lib\tempfile.py in cleanup(self)
- 828 def cleanup(self):
- 829 if self._finalizer.detach():
- --> 830 self._rmtree(self.name)
- 831
- 832 __class_getitem__ = classmethod(_types.GenericAlias)
- C:\ProgramData\Anaconda3\lib\tempfile.py in _rmtree(cls, name)
- 810 raise
- 811
- --> 812 _shutil.rmtree(name, onerror=onerror)
- 813
- 814 @classmethod
- C:\ProgramData\Anaconda3\lib\shutil.py in rmtree(path, ignore_errors, onerror)
- 746 # can't continue even if onerror hook returns
- 747 return
- --> 748 return _rmtree_unsafe(path, onerror)
- 749
- 750 # Allow introspection of whether or not the hardening against symlink
- C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
- 624 os.unlink(fullname)
- 625 except OSError:
- --> 626 onerror(os.unlink, fullname, sys.exc_info())
- 627 try:
- 628 os.rmdir(path)
- C:\ProgramData\Anaconda3\lib\tempfile.py in onerror(func, path, exc_info)
- 802 # PermissionError is raised on FreeBSD for directories
- 803 except (IsADirectoryError, PermissionError):
- --> 804 cls._rmtree(path)
- 805 except FileNotFoundError:
- 806 pass
- C:\ProgramData\Anaconda3\lib\tempfile.py in _rmtree(cls, name)
- 810 raise
- 811
- --> 812 _shutil.rmtree(name, onerror=onerror)
- 813
- 814 @classmethod
- C:\ProgramData\Anaconda3\lib\shutil.py in rmtree(path, ignore_errors, onerror)
- 746 # can't continue even if onerror hook returns
- 747 return
- --> 748 return _rmtree_unsafe(path, onerror)
- 749
- 750 # Allow introspection of whether or not the hardening against symlink
- C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
- 605 entries = list(scandir_it)
- 606 except OSError:
- --> 607 onerror(os.scandir, path, sys.exc_info())
- 608 entries = []
- 609 for entry in entries:
- C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
- 602 def _rmtree_unsafe(path, onerror):
- 603 try:
- --> 604 with os.scandir(path) as scandir_it:
- 605 entries = list(scandir_it)
- 606 except OSError:
- NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\[REDACTED]\\AppData\\Local\\Temp\\tmpsr1sl_3c\\lfs_progress'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement