https://bugs.kde.org/show_bug.cgi?id=490661
candide <cuyan...@uottawa.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WAITINGFORINFO |--- Ever confirmed|0 |1 Status|NEEDSINFO |CONFIRMED --- Comment #4 from candide <cuyan...@uottawa.ca> --- (In reply to Jean-Baptiste Mardelle from comment #2) > Thanks for your report. This is caused by an incompatibility between torch's > latest version (2.4.0) and numpy / numba. > These 2 last dependencies have to be downgraded. This can be done in a > terminal with the following commands: > python.exe -m pip install -I numpy==1.26.0 > python.exe -m pip install -I numba==0.59 > > This should downgrade the two packages and make whisper work again. For > Kdenlive 24.08, clicking on the "Check for upgrade" button in Whisper > settings should automatically fix it. Where is the "Check for upgrade" button? I'm running 24.08 now, ran the listed python commands, and I'm still getting an error: ``` A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.1 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 "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertosrt.py", line 118, in <module> sys.exit(main(sys.argv[1], # source AV file File "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertosrt.py", line 65, in main result = whispertotext.run_whisper(source, model, device, task, args) File "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertotext.py", line 53, in run_whisper model = whisper.load_model(model, device) File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\whisper\__init__.py", line 146, in load_model checkpoint = torch.load(fp, map_location=device) File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\serialization.py", line 1025, in load return _load(opened_zipfile, File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\serialization.py", line 1446, in _load result = unpickler.load() File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\_utils.py", line 202, in _rebuild_tensor_v2 tensor = _rebuild_tensor(storage, storage_offset, size, stride) File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\_utils.py", line 180, in _rebuild_tensor t = torch.empty((0,), dtype=storage.dtype, device=storage._untyped_storage.device) C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\_utils.py:180: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.) t = torch.empty((0,), dtype=storage.dtype, device=storage._untyped_storage.device) Traceback (most recent call last): File "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertosrt.py", line 118, in <module> sys.exit(main(sys.argv[1], # source AV file ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertosrt.py", line 65, in main result = whispertotext.run_whisper(source, model, device, task, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\kdenlive\bin\data\kdenlive\scripts\whispertotext.py", line 53, in run_whisper model = whisper.load_model(model, device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\whisper\__init__.py", line 154, in load_model model.set_alignment_heads(alignment_heads) File "C:\Users\user\AppData\Roaming\Python\Python312\site-packages\whisper\model.py", line 251, in set_alignment_heads mask = torch.from_numpy(array).reshape( ^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Numpy is not available ``` -- You are receiving this mail because: You are watching all bug changes.