#8467 [WinError 32] The process cannot access the file because it is being used by another process: 'D:/EXTRAS/py videotrans/t

103.83**8 Posted at: 1 hour ago

[WinError 32] The process cannot access the file because it is being used by another process: 'D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61/final_audio_temp.wav':D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61/final_audio_temp.wav
Traceback (most recent call last):
File "shutil.py", line 816, in move
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61/final_audio_temp.wav' -> 'D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61/target.wav'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 140, in run
File "videotrans\task\_stage_align.py", line 44, in align
File "videotrans\task\_rate.py", line 388, in run
File "videotrans\task\_rate.py", line 713, in _concat_audio_aligned
File "videotrans\task\_rate.py", line 804, in _exec_concat_audio
File "shutil.py", line 837, in move
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61/final_audio_temp.wav'

trk=[TransCreate]: uuid='2d1ad91e61', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/YTA JOURNEY/FULL MOVIE RECAP/MOVIE RECAP VIDEO-1/source video of movie.mp4,
输出结果保存到文件夹: D:/EXTRAS/py videotrans/source video of movie-mp4,
临时文件夹: D:/EXTRAS/py videotrans/tmp/19308/2d1ad91e61
已选 清理已存在
未启用CUDA加速
STT Service:faster-whisper(Built-in), small, 发音语言: Simplified Chinese, , 数据类型:default
TranslateSrt:Google Translate (Free),原始语言:Simplified Chinese,目标语言:English, 已选 SendSRT, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
TTS Service:Edge-TTS (Free), 角色:Christopher(Male/US), 配音语言:English, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: Soft Subtitles , precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=1044133


=
system:Windows-10-10.0.26200-SP0
version:v4.17
frozen:True
language:en_US
root_dir:D:/EXTRAS/py videotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

This is a Windows file-lock problem (WinError 32): the alignment stage generated final_audio_temp.wav, and when it tried to rename/move it to target.wav, that file was still held by another process (most often real-time antivirus scanning of the new wav file, ffmpeg/the edge-tts subprocess not yet releasing the handle, or a cloud-sync/preview program locking the tmp folder). Note that your software path D:/EXTRAS/py videotrans contains a space, which further increases the chance of this kind of failure.

Solution (try in order):

  1. Add the whole software directory D:/EXTRAS/py videotrans (especially tmp/) to the trusted whitelist of Windows Defender and any third-party security software, or temporarily disable real-time protection, then run sp.exe as administrator.
  2. Move the software to a short path containing only English letters and digits without spaces, e.g. D:/pyvideotrans, instead of D:/EXTRAS/py videotrans.
  3. Close the software and manually clear the residual slices in the tmp/ folder in the software root directory; also rename the source video to a short English name (e.g. video1.mp4) and place it in a shallow directory.
  4. Open Menu - Tools/Options - Advanced Options - Dubbing and temporarily uncheck Trim Start/End Silence in Dubbed Segments / Strip All Silence in Dubbed Segments, check Clear Output on the main interface, and rerun the task.
  5. Do not run multiple instances at the same time (multiple instances share the tmp folder and will lock each other's files); if you need multiple instances, copy the software to another folder and run separately.

If the error still occurs after the above, provide the last 30 lines of the latest log file in the logs/ folder under the software installation directory (the file is named by date, e.g. 20250622.log) so that the specific process holding the file can be located.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource