Duckapple / Kat

Kattis shell for getting examples, testing and submitting.
18 stars 6 forks source link

PermissionError: "[WinError 32] Processen kan ikke få adgang til filen, da den bruges af en anden proces: 'carrots'" #109

Open MegetSkuffet opened 2 years ago

MegetSkuffet commented 2 years ago
Traceback (most recent call last):
  File "...\shutil.py", line 813, in move
    os.rename(src, real_dst)
PermissionError: [WinError 32] Processen kan ikke få adgang til filen, da den bruges af en anden proces: 'carrots' -> '.solved/carrots'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...\Kat\kattis.py", line 41, in main
    execCommand[command](data)
  File "...\Kat\commands\submit.py", line 85, in submitCommand
    archive(problemName, ".solved/")
  File "...\Kat\commands\archive.py", line 30, in archive
    shutil.move(problemName, folder + problemName)
PermissionError: [WinError 32] Processen kan ikke få adgang til filen, da den bruges af en anden proces: 'carrots'
Duckapple commented 2 years ago

The file is used by another process, and cannot be moved. Are you running the debugger in the background when this error appears?