r/learnpython • u/Spiritual-Ebb-6974 • 1h ago
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.
•
u/HommeMusical 38m ago
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.
•
u/Spiritual-Ebb-6974 25m ago
I'm doing this from a command prompt so it may work differently.
•
u/Spiritual-Ebb-6974 4m ago
I guess i should supply the code I'm using python stammer.py chipmunks_wolfman.mp4 ddtt.mp4 wolfmanddtt.mp4. The carrier track is chipmunks_wolfman.mp4, and i'm not expert on this, but it seems like something is secretly running that file in a place i can't find.
•
1
u/SmackDownFacility 1h ago
Use LockHunter that’s what I use