Replies: 1 comment
-
|
Hi @Benazid, Basically, installing the I can see from the error that you are using Python 3.11. I suggest to downgrade to 3.10 and retry ? Maybe |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
**Hi all,
I need some help with the folowing : I installed Subsai as showed in the Readme file, and then I ran the example script in python :**
`from subsai import SubsAI
file = 'C:/Users/acer/Desktop/vocalrem/Final/video1.mp4'
subs_ai = SubsAI()
model = subs_ai.create_model('openai/whisper', {'model_type': 'base'})
subs = subs_ai.transcribe(file, model)
subs.save('test1.srt')`
And I got the following in my console :
Traceback (most recent call last):
File "C:\Users\acer\Documents\VIDEO MAKER\Video_Maker.py", line 1, in
from subsai import SubsAI
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai_init_.py", line 1, in
from subsai.main import SubsAI, Tools
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\main.py", line 27, in
from subsai.configs import AVAILABLE_MODELS
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\subsai\configs.py", line 8, in
from ffsubsync.constants import DEFAULT_MAX_SUBTITLE_SECONDS, DEFAULT_START_SECONDS, DEFAULT_MAX_OFFSET_SECONDS,
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffsubsync_init_.py", line 21, in
from .ffsubsync import main # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffsubsync\ffsubsync.py", line 34, in
from ffsubsync.speech_transformers import (
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffsubsync\speech_transformers.py", line 11, in
import ffmpeg
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_init_.py", line 2, in
from . import nodes
File "C:\Users\acer\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg\nodes.py", line 3, in
from past.builtins import basestring
ModuleNotFoundError: No module named 'past'
[Finished in 6.3s]
**I tried to fix it in every way I could think of, but to no avail (I have "Future" library installed).
Do you have any suggestions. Thanks in advance.**
Beta Was this translation helpful? Give feedback.
All reactions