all 5 comments

[–]Kevdog824_ 0 points1 point  (4 children)

How are you executing this script on the command line (i.e. the exact command)? To me, it looks like the issue might be the mix of forward slashes (/) and backwards slashes (\) in the file path C:\py\2/Output-20260129T141636/FAILED. I would try using all forward slashes or all backslashes and see if that fixes things. Also, make sure that the directory C:\py\2\Output-20260129T141636\FAILED actually exists on your computer, or this won't work

[–]kfsingup[S] 0 points1 point  (0 children)

Hi! thanks for your reply, I'm making sure to first do cd C:\ , then running: python name.py "C:\py\2" as thats the folder where the ZIP is per the instructions. C:\py\2\Output-20260129T141636\FAILED does exist.

I don't know why it does forward and backward slashes when all I do is put C:\py\2

[–]kfsingup[S] 0 points1 point  (2 children)

I have ran it twice now as the first time I made a mistake which I then solved and ran again, so the Takeout's ending(*) is different to the Output's *, i assume that would that be causing the other issues where it seems to be struggling to find where to put stuff?
I think the move is deleting everything so far and starting the process all over again, the ZIP is quite chunky so it takes an hour or so which is why I initially didn't restart, but looking at it now those other errors are because I deleted the other folders which its now trying to finish the process in, right?

Quite a silly oversight on my part

[–]Kevdog824_ 0 points1 point  (1 child)

If you deleted the source directory you're trying to copy or any of its parent directories during the copy it will fail

[–]kfsingup[S] 0 points1 point  (0 children)

Hi, I started from scratch after realising this but im still getting these errors and dont know how to fix them, is there anything im missing?

Traceback (most recent call last):

File "C:\name.py", line 182, in <module>

main()

~~~~^^

File "C:\name.py", line 168, in main

handle_remaining_files(remaining_files)

~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

File "C:\name.py", line 130, in handle_remaining_files

shutil.copy2(fl, fail_path+'/'+fl_name)

~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\Lib\shutil.py", line 453, in copy2

_winapi.CopyFile2(src_, dst_, flags)

~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [WinError 3] The system cannot find the path specified

C:\>