BrasD99 / HeyGenClone

A simple and open-source analogue of the HeyGen system
896 stars 183 forks source link

TypeError: issubclass() arg 1 must be a class #25

Open Rishabharoraucd opened 7 months ago

Rishabharoraucd commented 7 months ago

Attaching the entire response received from terminal for better understanding.

(LIP) rishabharora@Rishs-MBP HeyGenClone % python translate.py 'Green Screen.mp4' russian -o 'done.mp4' Traceback (most recent call last): File "/Users/rishabharora/Documents/GitHub/HeyGenClone/translate.py", line 5, in from core.engine import Engine File "/Users/rishabharora/Documents/GitHub/HeyGenClone/core/engine.py", line 20, in from core.whisperx.asr import load_model, load_audio File "/Users/rishabharora/Documents/GitHub/HeyGenClone/core/whisperx/asr.py", line 12, in from .vad import load_vad_model, merge_chunks File "/Users/rishabharora/Documents/GitHub/HeyGenClone/core/whisperx/vad.py", line 9, in from pyannote.audio import Model File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/audio/init.py", line 29, in from .core.inference import Inference File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/audio/core/inference.py", line 36, in from pyannote.audio.core.model import Model, Specifications File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/audio/core/model.py", line 47, in from pyannote.audio.core.task import ( File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/audio/core/task.py", line 43, in from pyannote.database import Protocol File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/database/init.py", line 36, in from .registry import registry, LoadingMode File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/database/registry.py", line 38, in from .custom import create_protocol, get_init File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/database/custom.py", line 66, in from .loader import load_lst, load_trial File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pyannote/database/loader.py", line 44, in from spacy.tokens import Token File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/init.py", line 14, in from . import pipeline # noqa: F401 File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/pipeline/init.py", line 1, in from .attributeruler import AttributeRuler File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/pipeline/attributeruler.py", line 6, in from .pipe import Pipe File "spacy/pipeline/pipe.pyx", line 8, in init spacy.pipeline.pipe File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/training/init.py", line 11, in from .callbacks import create_copy_from_base_model # noqa: F401 File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/training/callbacks.py", line 3, in from ..language import Language File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/language.py", line 25, in from .training.initialize import init_vocab, init_tok2vec File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/training/initialize.py", line 14, in from .pretrain import get_tok2vec_ref File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/training/pretrain.py", line 16, in from ..schemas import ConfigSchemaPretrain File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/spacy/schemas.py", line 216, in class TokenPattern(BaseModel): File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/main.py", line 299, in new fields[ann_name] = ModelField.infer( File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/fields.py", line 411, in infer return cls( File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/fields.py", line 342, in init self.prepare() File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/fields.py", line 451, in prepare self._type_analysis() File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/fields.py", line 545, in _type_analysis self._type_analysis() File "/opt/anaconda3/envs/LIP/lib/python3.9/site-packages/pydantic/fields.py", line 550, in _type_analysis if issubclass(origin, Tuple): # type: ignore File "/opt/anaconda3/envs/LIP/lib/python3.9/typing.py", line 852, in subclasscheck return issubclass(cls, self.origin) TypeError: issubclass() arg 1 must be a class (LIP) rishabharora@Rishs-MBP HeyGenClone %