Advertisement
Guest User

Untitled

a guest
Mar 12th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. PermissionError Traceback (most recent call last)
  3. C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
  4. 623 try:
  5. --> 624 os.unlink(fullname)
  6. 625 except OSError:
  7.  
  8. 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'
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. PermissionError Traceback (most recent call last)
  13. C:\ProgramData\Anaconda3\lib\tempfile.py in onerror(func, path, exc_info)
  14. 800 try:
  15. --> 801 _os.unlink(path)
  16. 802 # PermissionError is raised on FreeBSD for directories
  17.  
  18. 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'
  19.  
  20. During handling of the above exception, another exception occurred:
  21.  
  22. NotADirectoryError Traceback (most recent call last)
  23. ~\AppData\Local\Temp/ipykernel_24480/2912127331.py in <module>
  24. ----> 1 trainer.train();
  25.  
  26. C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in train(self, resume_from_checkpoint, trial, ignore_keys_for_eval, **kwargs)
  27. 1438 self.control = self.callback_handler.on_step_end(args, self.state, self.control)
  28. 1439
  29. -> 1440 self._maybe_log_save_evaluate(tr_loss, model, trial, epoch, ignore_keys_for_eval)
  30. 1441 else:
  31. 1442 self.control = self.callback_handler.on_substep_end(args, self.state, self.control)
  32.  
  33. C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _maybe_log_save_evaluate(self, tr_loss, model, trial, epoch, ignore_keys_for_eval)
  34. 1567
  35. 1568 if self.control.should_save:
  36. -> 1569 self._save_checkpoint(model, trial, metrics=metrics)
  37. 1570 self.control = self.callback_handler.on_save(self.args, self.state, self.control)
  38. 1571
  39.  
  40. C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _save_checkpoint(self, model, trial, metrics)
  41. 1718
  42. 1719 if self.args.push_to_hub:
  43. -> 1720 self._push_from_checkpoint(output_dir)
  44. 1721
  45. 1722 # Maybe delete some older checkpoints.
  46.  
  47. C:\ProgramData\Anaconda3\lib\site-packages\transformers\trainer.py in _push_from_checkpoint(self, checkpoint_folder)
  48. 2743 else:
  49. 2744 commit_message = f"Training in progress, epoch {int(self.state.epoch)}"
  50. -> 2745 _, self.push_in_progress = self.repo.push_to_hub(
  51. 2746 commit_message=commit_message, blocking=False, auto_lfs_prune=True
  52. 2747 )
  53.  
  54. C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in push_to_hub(self, commit_message, blocking, clean_ok, auto_lfs_prune)
  55. 1249 self.git_add(auto_lfs_track=True)
  56. 1250 self.git_commit(commit_message)
  57. -> 1251 return self.git_push(
  58. 1252 upstream=f"origin {self.current_branch}",
  59. 1253 blocking=blocking,
  60.  
  61. C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in git_push(self, upstream, blocking, auto_lfs_prune)
  62. 1016
  63. 1017 if return_code:
  64. -> 1018 raise subprocess.CalledProcessError(
  65. 1019 return_code, process.args, output=stdout, stderr=stderr
  66. 1020 )
  67.  
  68. C:\ProgramData\Anaconda3\lib\contextlib.py in __exit__(self, typ, value, traceback)
  69. 124 if typ is None:
  70. 125 try:
  71. --> 126 next(self.gen)
  72. 127 except StopIteration:
  73. 128 return False
  74.  
  75. C:\ProgramData\Anaconda3\lib\site-packages\huggingface_hub\repository.py in lfs_log_progress()
  76. 343 x.join()
  77. 344
  78. --> 345 os.environ["GIT_LFS_PROGRESS"] = current_lfs_progress_value
  79. 346
  80. 347
  81.  
  82. C:\ProgramData\Anaconda3\lib\tempfile.py in __exit__(self, exc, value, tb)
  83. 824
  84. 825 def __exit__(self, exc, value, tb):
  85. --> 826 self.cleanup()
  86. 827
  87. 828 def cleanup(self):
  88.  
  89. C:\ProgramData\Anaconda3\lib\tempfile.py in cleanup(self)
  90. 828 def cleanup(self):
  91. 829 if self._finalizer.detach():
  92. --> 830 self._rmtree(self.name)
  93. 831
  94. 832 __class_getitem__ = classmethod(_types.GenericAlias)
  95.  
  96. C:\ProgramData\Anaconda3\lib\tempfile.py in _rmtree(cls, name)
  97. 810 raise
  98. 811
  99. --> 812 _shutil.rmtree(name, onerror=onerror)
  100. 813
  101. 814 @classmethod
  102.  
  103. C:\ProgramData\Anaconda3\lib\shutil.py in rmtree(path, ignore_errors, onerror)
  104. 746 # can't continue even if onerror hook returns
  105. 747 return
  106. --> 748 return _rmtree_unsafe(path, onerror)
  107. 749
  108. 750 # Allow introspection of whether or not the hardening against symlink
  109.  
  110. C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
  111. 624 os.unlink(fullname)
  112. 625 except OSError:
  113. --> 626 onerror(os.unlink, fullname, sys.exc_info())
  114. 627 try:
  115. 628 os.rmdir(path)
  116.  
  117. C:\ProgramData\Anaconda3\lib\tempfile.py in onerror(func, path, exc_info)
  118. 802 # PermissionError is raised on FreeBSD for directories
  119. 803 except (IsADirectoryError, PermissionError):
  120. --> 804 cls._rmtree(path)
  121. 805 except FileNotFoundError:
  122. 806 pass
  123.  
  124. C:\ProgramData\Anaconda3\lib\tempfile.py in _rmtree(cls, name)
  125. 810 raise
  126. 811
  127. --> 812 _shutil.rmtree(name, onerror=onerror)
  128. 813
  129. 814 @classmethod
  130.  
  131. C:\ProgramData\Anaconda3\lib\shutil.py in rmtree(path, ignore_errors, onerror)
  132. 746 # can't continue even if onerror hook returns
  133. 747 return
  134. --> 748 return _rmtree_unsafe(path, onerror)
  135. 749
  136. 750 # Allow introspection of whether or not the hardening against symlink
  137.  
  138. C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
  139. 605 entries = list(scandir_it)
  140. 606 except OSError:
  141. --> 607 onerror(os.scandir, path, sys.exc_info())
  142. 608 entries = []
  143. 609 for entry in entries:
  144.  
  145. C:\ProgramData\Anaconda3\lib\shutil.py in _rmtree_unsafe(path, onerror)
  146. 602 def _rmtree_unsafe(path, onerror):
  147. 603 try:
  148. --> 604 with os.scandir(path) as scandir_it:
  149. 605 entries = list(scandir_it)
  150. 606 except OSError:
  151.  
  152. 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