| Summary: | Kdenlive flatpak downloads whisper model to wrong location | ||
|---|---|---|---|
| Product: | [Applications] kdenlive | Reporter: | frafortunelli |
| Component: | Title Clips & Subtitles | Assignee: | Jean-Baptiste Mardelle <jb> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | awadea82, balooii, cabral.brc, fritzibaby, kde, ugis |
| Priority: | HI | Keywords: | triaged |
| Version First Reported In: | 24.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | Flatpak | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 25.04.2 | |
| Sentry Crash Report: | |||
|
Description
frafortunelli
2025-01-22 15:26:28 UTC
Thank you for this detailed report. @JBM another path issue for Wisper on flatpack. Just had the same issue. Wanted to add that if one creates folder ~/.var/app/org.kde.kdenlive/cache/whisper in advance, the model is downloaded in the correct location. Git commit e176514b6733a9b33fb7180f54ff89ddf344e6a8 by Jean-Baptiste Mardelle. Committed on 30/01/2025 at 09:56. Pushed by mardelle into branch 'master'. Try to fix Whisper models folder on Flatpak M +13 -3 src/pythoninterfaces/speechtotextwhisper.cpp https://invent.kde.org/multimedia/kdenlive/-/commit/e176514b6733a9b33fb7180f54ff89ddf344e6a8 Git commit 1d468e892e8fd034d020f1e4c7c1144b573bbcf0 by Jean-Baptiste Mardelle. Committed on 30/01/2025 at 09:49. Pushed by mardelle into branch 'release/24.12'. Try to fix Whisper models folder on Flatpak M +16 -3 src/pythoninterfaces/speechtotextwhisper.cpp https://invent.kde.org/multimedia/kdenlive/-/commit/1d468e892e8fd034d020f1e4c7c1144b573bbcf0 With the Appimage on CachyOS (Arch based) no speech model installed and the download won't start because of no existing folder under .cache/whisper. I've created this folder and the download starts correctly and kdenlive finds the files after downloading. Problem still present in
```
[ugjka@ugjka ~]$ flatpak info org.kde.kdenlive
Kdenlive - Video editor
ID: org.kde.kdenlive
Ref: app/org.kde.kdenlive/x86_64/stable
Arch: x86_64
Branch: stable
Version: 25.04.1
License: GPL-3.0-only
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 241,1 MB
Runtime: org.kde.Platform/x86_64/6.9
Sdk: org.kde.Sdk/x86_64/6.9
Commit: 1e36391e875577fd4cd61f5a02e7e52d1cf22598a625d235d49546fd39b77c0c
Parent: 10ad8cc7863c8d7ec1e26408ca56957b782d1be933c15534a7205ed66b0e98fd
Subject: Merge pull request #547 from flathub/update-master-cd165ef (7d38d80ed236)
Date: 2025-05-14 18:10:34 +0000
```
I'm also seeing the bug on 25.04.1 via Flathub. So it looks to me like whisperquery.py (or something else in the chain) should check for the existence of the "whisper" subdirectory inside $XDG_CACHE_HOME? And then maybe if not found, create it? When I manually created that from within the Flatpak environment, all worked as expected. I put together a YouTube video showing how I worked around this here: https://www.youtube.com/watch?v=uRg498ExSOg Of course, to get to the Flatpak terminal interface you'll need: flatpak run --command=/bin/bash org.kde.kdenlive I putzed with this python file in my own VM, and was able to band-aid it together. I've never sent a merge request for Kdenlive so I don't know the process. It's the end of my week but if nobody's built a fix for it I'm happy to give it a try- it's a quick one. |