Hi, this is not urgent or important
I was just trying to run the subtitles with kdenlive (vosk or whisper) and it requested that packages
vosk
Se necesita el módulo de python srt para subtitulado automático.
Se necesita el módulo de python vosk para características de la voz.
whisper
Se necesita el módulo de python openai-whisper para características de la voz.
Se necesita el módulo de python srt para subtitulado automático.
Se necesita el módulo de python torch para infraestructura de aprendizaje.
i looked in yast, it seems there are not (I tried with srt or pysrt, but it doesn’t work)
thank you
Whenever you want to show computer output in the English part of the forums and your system is not English, then please precede your commands with LANG=C.
Then, please whenever you post computer output, use the Preformatted text feature (the button with </>). And always include the line with the prompt-command, all output ad the line with the new prompt in your copy sweep.
We now e.g. have no command, and because we can not look over your shoulder, we have no idea what you did.
Project/Subtitles/Speech Recognition… /Process/Configure… / Choose Vosk or Whisper/Install missing dependencies.
I have tried to install vosk via pip (the command to update doesn’t work):
@localhost:~> pip3 install vosk
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try
zypper install python311-xyz, where xyz is the package
you are trying to install.
If you wish to install a non-rpm packaged Python package,
create a virtual environment using python3.11 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-rpm packaged Python application,
it may be easiest to use `pipx install xyz`, which will manage a
virtual environment for you. Install pipx via `zypper install python311-pipx` .
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
[notice] A new release of pip is available: 24.0 -> 24.1.2
[notice] To update, run: pip install --upgrade pip
type or paste code here
I’m not a python expert, but I think what’s going on here is kind of as follows:
Kdenlive’s subtitling features require some python packages, namely vosk, srt, whisper, openai, torch, etc.
Not all python packages are standard in the system. Sometimes, nonstandard packages will break the system because they will replace a command with another command. (e.g. some function f that normally does one thing may be overwritten to do something else, common with extension packages in object oriented languages, like r or python)
Because of this, a standard (called PEP668) was implemented to make sure that users don’t accidentally break their system when using pipx to install packages.
The pip3 message is warning you that the packages you want to install aren’t standard/part of things you’d find in YaST or other rpm packaged places.
So, it’s not installing them for you so it doesn’t break anything else.
To fix this, the pip3 message suggests making a virtual environment (essentially an isolated place where you can install whatever python modules you need without letting them get used by the whole system, thereby avoiding breaking anything).
That’s the suggestion for option number 2 in that error code. It would put the python package (vosk etc) in it’s own place (venv), so it could be fetched.
Option 3 suggests trying to install Kdenlive via pipx itself, which would basically bundle all of Kdenlive and its needed packages in their own virtual environment. I don’t believe this is applicable to your situation, wiser heads than mine might know.
To do option 2, you can try roughly the following:
Create the virtual environment as suggested, use the code python3.11 - m venv path/name. maybe make path/name something easy to find, like ‘kdenlive_subtitle_packages’ etc.
then install the packages there, via the suggested code; e.g. ‘kdenlive_subtitle_packages/bin/pip install vosk’
Then, when you go into the ‘configure screen’ in your 3rd screenshot, you should be able to add a module and direct it to the folder you put stuff in (e.g. kdenlive_subtitle_packages).
Notes: I don’t really read Spanish fluently, and I never use Kdenlive, so I’m mostly guessing at what you can do in the configuration screen.
Most of my experience with packages like this comes from other languages, so it might not translate directly into your issue, but may get you started.