tmoroney / auto-subs

Generate subtitles using OpenAI Whisper in Davinci Resolve editing software.
MIT License
425 stars 22 forks source link

ModuleNotFoundError: No module named 'torch._prims_common' #61

Open KarimuKaritoons opened 1 month ago

KarimuKaritoons commented 1 month ago

(Sorry for bad english When I launch Auto-subs in Davinci, nothing happen and when I look a the console I've got this thing pop up :

Traceback (most recent call last): File "C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Utility\auto-subs.py", line 26, in import stable_whisper File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper__init.py", line 1, in from .whisper_word_level import * File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\whisper_word_level__init__.py", line 2, in from .cli import cli File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\whisper_word_level\cli.py", line 11, in from ..result import WhisperResult File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\result.py", line 11, in from .stabilization import suppress_silence, get_vad_silence_func, VAD_SAMPLE_RATES File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\stabilization\init.py", line 7, in from .nonvad import NONVAD_SAMPLE_RATES, audio2loudness, wav2mask, visualize_mask File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\stable_whisper\stabilization\nonvad.py", line 5, in from torch.nn import functional as F File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\nn\init.py", line 2, in from .modules import * # noqa: F403 ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\nn\modules\init__.py", line 1, in from .module import Module File "C:\Users\nonog\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\nn\modules\module.py", line 9, in from torch._prims_common import DeviceLikeType ModuleNotFoundError: No module named 'torch._prims_common'

Capture d'écran 2024-08-04 231900

And the thing I notice is the last line with an Error which say that there is no Module named torch-prims_common. I tried everything that I know, I installed the script with both method, I check in the net if there is something but it seems that no one have this issue. Please someone help I'm literally twiking right now, I'm really interested in the plugin and this will save me a lot of time. Thank you for you responds !

LorenzoValente3 commented 1 month ago

same here

MorasDeFresa commented 3 weeks ago

https://github.com/tmoroney/auto-subs/issues/60#issuecomment-2268357099

KarimuKaritoons commented 3 weeks ago

#60 (comment) I can't uninstall Torchaudio. I have this error when I execute the commands on PowerShell

Found existing installation: torchaudio None error: uninstall-no-record-file

× Cannot uninstall torchaudio None ╰─> The package's contents are unknown: no RECORD file was found for torchaudio.

image

Of course the hint does not work and the same error appear