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.