Hi, I just installed WhisperX successfully. However, when calling the example Python script I am getting the following error during whisperx package import:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[3], line 1
----> 1 import whisperx
2 import gc
File ~/Git/whisperX/whisperx/__init__.py:1
----> 1 from .transcribe import load_model
2 from .alignment import load_align_model, align
3 from .audio import load_audio
File ~/Git/whisperX/whisperx/transcribe.py:10
7 import torch
9 from .alignment import align, load_align_model
---> 10 from .asr import load_model
11 from .audio import load_audio
12 from .diarize import DiarizationPipeline, assign_word_speakers
File ~/Git/whisperX/whisperx/asr.py:5
2 import warnings
3 from typing import List, Union, Optional, NamedTuple
----> 5 import ctranslate2
6 import faster_whisper
7 import numpy as np
File ~/Git/whisperX/.venv/lib/python3.10/site-packages/ctranslate2/__init__.py:21
18 ctypes.CDLL(library)
20 try:
---> 21 from ctranslate2._ext import (
22 AsyncGenerationResult,
23 AsyncScoringResult,
24 AsyncTranslationResult,
25 DataType,
26 Device,
27 Encoder,
28 EncoderForwardOutput,
29 ExecutionStats,
30 GenerationResult,
31 GenerationStepResult,
32 Generator,
33 MpiInfo,
34 ScoringResult,
35 StorageView,
36 TranslationResult,
37 Translator,
38 contains_model,
39 get_cuda_device_count,
40 get_supported_compute_types,
41 set_random_seed,
42 )
43 from ctranslate2.extensions import register_extensions
44 from ctranslate2.logging import get_log_level, set_log_level
ImportError: /home/username/Git/whisperX/.venv/lib/python3.10/site-packages/ctranslate2/../ctranslate2.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block
I already tried “export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1” but it didn’t help.
Any idea how to fix it?