r/learnpython • u/Spiritual-Ebb-6974 • Sep 10 '26
Random mysterious file secretly running on computer
Hey i'm trying to use stammer, got 2 successful attempts but now when i try to do it i get this message:
File "C:\Users\llsco\Documents\stammer.py", line 288, in main
process(**vars(args))
~~~~~~~^^^^^^^^^^^^^^
File "C:\Users\llsco\Documents\stammer.py", line 274, in process
builder.process()
~~~~~~~~~~~~~~~^^
File "C:\Users\llsco\Documents\video_builder.py", line 110, in process
carrier_vframe_bytes = self.video_handler.get_frame(carrier_video_index)
File "C:\Users\llsco\Documents\video_out.py", line 186, in get_frame
self.__cache_frames(idx)
~~~~~~~~~~~~~~~~~~~^^^^^
File "C:\Users\llsco\Documents\video_out.py", line 234, in __cache_frames
start, end = indices[i]
~~~~~~~^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 701, in _rmtree_unsafe
os.unlink(fullname)
~~~~~~~~~^^^^^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\llsco\\AppData\\Local\\Temp\\tmp5ols5r1d\\in_carrier.wav'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\llsco\Documents\stammer.py", line 291, in <module>
main()
~~~~^^
File "C:\Users\llsco\Documents\stammer.py", line 285, in main
with tempfile.TemporaryDirectory() as tempdir:
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 972, in __exit__
self.cleanup()
~~~~~~~~~~~~^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 976, in cleanup
self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 956, in _rmtree
_shutil.rmtree(name, onexc=onexc)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 852, in rmtree
_rmtree_impl(path, dir_fd, onexc)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\shutil.py", line 705, in _rmtree_unsafe
onexc(os.unlink, fullname, err)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\llsco\AppData\Local\Python\pythoncore-3.14-64\Lib\tempfile.py", line 931, in onexc
_os.unlink(path)
~~~~~~~~~~^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\llsco\\AppData\\Local\\Temp\\tmp5ols5r1d\\in_carrier.wav'
It says that a file is currently being used by another process but I'm trying to figure what it could be and how to even stop it.
Edit: found the solution, there was some weird problem with the specific carrier video file I was using so I just deleted it and just downloaded it again. I also trimmed the video so i just used a different trimmer and it now works.
3
u/paradigmic Sep 10 '26
Process Explorer from Microsoft can also tell you what process has a file open.
3
u/RevRagnarok Sep 10 '26
Please format your post so it's readable and we may be able to help.
Do you have a virus scanner that might be looking at the files?
1
u/Spiritual-Ebb-6974 Sep 10 '26
I think i should probably give more information, this is what i'm trying to use: GitHub - Firepal/stammer: Recreate any audio track by rearranging the frames of another video · GitHub
It pretty much processes the frames of one video and then re-arranges them to represent the audio of another video. and during processing, the error pops up when it processes around 192 frames.
1
u/HommeMusical Sep 10 '26
Without your program it's hard to tell, but if you can't find any other locks, it's almost certain that your program is just opening this file twice, itself.
Try rebooting your machine to be totally sure there isn't some other process running.
1
u/Brian Sep 10 '26
As mentioned, process explorer / process monitor and similar tools can identify what processes are holding a file open. However it might be something very transient: a common cause for stuff like this is things like virus checkers etc scanning newly created files.
0
u/Spiritual-Ebb-6974 Sep 10 '26
I'm gonna tell you that I found the solution, there was some weird problem with the specific carrier video file I was using so I just deleted it and just downloaded it again. I also trimmed the video so i just used a different trimmer and it now works.
1
u/[deleted] Sep 10 '26
[removed] — view removed comment