Bug 467499 - kdenlive can´t install openai-whisper python module
Summary: kdenlive can´t install openai-whisper python module
Status: REPORTED
Alias: None
Product: kdenlive
Classification: Applications
Component: Setup & Installation (show other bugs)
Version: git-master
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-17 18:02 UTC by rafaelgamezgarcia
Modified: 2023-05-09 13:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
error instaling openai-whisper python module (267.69 KB, image/png)
2023-03-17 18:02 UTC, rafaelgamezgarcia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rafaelgamezgarcia 2023-03-17 18:02:27 UTC
Created attachment 157366 [details]
error instaling openai-whisper python module

Kdenlive can`t install openai-whisper python module
***
 error: subprocess-exited-with-error
  
  python setup.py egg_info did not run successfully.
  exit code: 1
  
  [8 lines of output]
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\rafae\AppData\Local\Temp\pip-install-bwdoq4_y\numba_00431275ae3443fbb2fc4767fa8c0c32\setup.py", line 51, in <module>
      _guard_py_ver()
    File "C:\Users\rafae\AppData\Local\Temp\pip-install-bwdoq4_y\numba_00431275ae3443fbb2fc4767fa8c0c32\setup.py", line 48, in _guard_py_ver
      raise RuntimeError(msg.format(cur_py, min_py, max_py))
  RuntimeError: Cannot install on Python version 3.11.2; only versions >=3.7,<3.11 are supported.
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
  File "C:\Users\rafae\Desktop\kdenlive-master-1431-windows-gcc-x86_64\bin\data\kdenlive\scripts\checkpackages.py", line 50, in <module>
    subprocess.check_call([python, '-m', 'pip', 'install', *missing], stdout=subprocess.DEVNULL)
  File "C:\Users\rafae\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\rafae\\AppData\\Local\\Programs\\Python\\Python311\\python.exe', '-m', 'pip', 'install', 'openai-whisper']' returned non-zero exit status 1.



SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
Comment 1 jdl 2023-05-09 13:48:54 UTC
I don't think this is an error due to kdenlive, because the highest python version supported by some of the whisper dependencies, is 3.10.
I also experienced this error on Fedora Linux 38, and fixed it by installing python3.10 and moving the 'python' and 'python3' aliases to point to python3.10.

Maybe kdenlive should declare python3.10 as a whisper dependency?
And definitely check for and choose supported python version in the whisper install script