-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
After creating the conda environment and pip install -r requirements.txt I get this:
$ python transcribe.py --f ~/Interview.m4a
2025-10-01 13:44:28.241189: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2025-10-01 13:44:28.241219: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2025-10-01 13:44:28.241256: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-10-01 13:44:28.247276: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "/home/nicolas/git/AI/CrisperWhisper/transcribe.py", line 5, in <module>
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1355, in __getattr__
value = getattr(module, name)
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1354, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1364, in _get_module
return importlib.import_module("." + module_name, self.__name__)
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py", line 27, in <module>
from ...image_processing_utils import ImageProcessingMixin
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/image_processing_utils.py", line 28, in <module>
from .image_transforms import center_crop, normalize, rescale
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/image_transforms.py", line 47, in <module>
import tensorflow as tf
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/__init__.py", line 38, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/__init__.py", line 42, in <module>
from tensorflow.python.saved_model import saved_model
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/saved_model.py", line 20, in <module>
from tensorflow.python.saved_model import builder
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/builder.py", line 23, in <module>
from tensorflow.python.saved_model.builder_impl import _SavedModelBuilder
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/builder_impl.py", line 26, in <module>
from tensorflow.python.framework import dtypes
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py", line 35, in <module>
from tensorflow.tsl.python.lib.core import pywrap_ml_dtypes
AttributeError: _ARRAY_API not found
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1364, in _get_module
return importlib.import_module("." + module_name, self.__name__)
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/models/auto/processing_auto.py", line 27, in <module>
from ...image_processing_utils import ImageProcessingMixin
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/image_processing_utils.py", line 28, in <module>
from .image_transforms import center_crop, normalize, rescale
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/image_transforms.py", line 47, in <module>
import tensorflow as tf
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/__init__.py", line 38, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/__init__.py", line 42, in <module>
from tensorflow.python.saved_model import saved_model
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/saved_model.py", line 20, in <module>
from tensorflow.python.saved_model import builder
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/builder.py", line 23, in <module>
from tensorflow.python.saved_model.builder_impl import _SavedModelBuilder
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/saved_model/builder_impl.py", line 26, in <module>
from tensorflow.python.framework import dtypes
File "/home/nicolas/.local/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py", line 37, in <module>
_np_bfloat16 = pywrap_ml_dtypes.bfloat16()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/nicolas/git/AI/CrisperWhisper/transcribe.py", line 5, in <module>
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1355, in __getattr__
value = getattr(module, name)
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1354, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/home/nicolas/programme/anaconda3/envs/crisperwhisper/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1366, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.auto.processing_auto because of the following error (look up to see its traceback):
Unable to convert function return value to a Python type! The signature was
() -> handle
I don't think I did something wrong here. Why does it happen?
Metadata
Metadata
Assignees
Labels
No labels