[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2026-01-24 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=490661

[email protected] changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED
 CC||[email protected]

--- Comment #6 from [email protected] ---
No response from OP. 
Closing ticket.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-12-04 Thread emohr
https://bugs.kde.org/show_bug.cgi?id=490661

emohr  changed:

   What|Removed |Added

   Keywords||triaged

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-12-01 Thread emohr
https://bugs.kde.org/show_bug.cgi?id=490661

emohr  changed:

   What|Removed |Added

   Version Fixed In||24.12
  Latest Commit||https://invent.kde.org/mult
   ||imedia/kdenlive/-/commit/cd
   ||7b92161306f344f5e461a2dc4e0
   ||bba654441ef
 CC||[email protected]

--- Comment #5 from emohr  ---
Please try with the upcoming version 24.12. The whole Speech-to-Text part was
refactored and should be more stable.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-09-02 Thread candide
https://bugs.kde.org/show_bug.cgi?id=490661

candide  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Ever confirmed|0   |1
 Status|NEEDSINFO   |CONFIRMED

--- Comment #4 from candide  ---
(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

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 
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.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-08-27 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=490661

--- Comment #3 from Bug Janitor Service  ---
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days.
Please provide the requested information, then set the bug status to REPORTED.
If there is no change for at least 30 days, it will be automatically closed as
RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-08-13 Thread Jean-Baptiste Mardelle
https://bugs.kde.org/show_bug.cgi?id=490661

Jean-Baptiste Mardelle  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #2 from Jean-Baptiste Mardelle  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdenlive] [Bug 490661] Whisper Speech to Text Error: NumPy: _ARRAY_API not found

2024-08-13 Thread Jean-Baptiste Mardelle
https://bugs.kde.org/show_bug.cgi?id=490661

--- Comment #1 from Jean-Baptiste Mardelle  ---
Git commit 98d90275df62dcae1e5cb4718482151ca8bcbab3 by Jean-Baptiste Mardelle.
Committed on 13/08/2024 at 10:58.
Pushed by mardelle into branch 'release/24.08'.

Fix possible crash on python install and enforce correct packages for Windows
Whisper

M  +1-1data/scripts/checkpackages.py
M  +1-0data/scripts/requirements-whisper-windows.txt
M  +1-1src/pythoninterfaces/abstractpythoninterface.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/98d90275df62dcae1e5cb4718482151ca8bcbab3

-- 
You are receiving this mail because:
You are watching all bug changes.