auto-subtitle icon indicating copy to clipboard operation
auto-subtitle copied to clipboard

ModuleNotFoundError when running auto_subtitle

Open SuperiorAlpaca opened this issue 1 year ago • 2 comments

Hello! Can you please help me with this error? I have Python 3.12.1 from Microsoft store and ffmpeg from chocolatey. I installed auto-subtitle binary according to readme. I am on Windows 10. When I try to run auto_subtitle in any way (eg. auto_subtitle --help), I get this error:

Traceback (most recent call last):
(…)
File "C:\Users\theuser\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\torch\nn\modules\module.py", line 8, in <module>
    from torch._prims_common import DeviceLikeType
ModuleNotFoundError: No module named 'torch._prims_common'

I don't know if it's not connected to my python installation, but I not good with this stuff, so I’d rather ask.

SuperiorAlpaca avatar Feb 04 '24 19:02 SuperiorAlpaca

pip install ffmpeg-python

zhangpeibj01 avatar May 13 '24 02:05 zhangpeibj01

https://github.com/m1guelpf/auto-subtitle/pull/89/ Updated setup file in this pull request correctly installs the ffmpeg-python.

zaltinsoy avatar Jul 02 '24 14:07 zaltinsoy