Bug 514157

Summary: macOS: Object Detection (SAM2) plugin fails because Kdenlive embeds Python 3.9, but SAM2 requires Python ≥ 3.10
Product: [Applications] kdenlive Reporter: lip-ivy-crazy <lip-ivy-crazy>
Component: Setup & InstallationAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal CC: lip-ivy-crazy
Priority: NOR    
Version First Reported In: 25.12.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
See Also: https://bugs.kde.org/show_bug.cgi?id=503757
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Settings → Plugins → Object Detection - Install missing dependencies - Error - screenshot

Description lip-ivy-crazy 2026-01-04 19:13:31 UTC
Created attachment 188213 [details]
Settings → Plugins → Object Detection - Install missing dependencies - Error - screenshot

SUMMARY

On macOS, Kdenlive embeds its own Python interpreter (Python 3.9.6).
When attempting to install the Object Detection / Install Missing Dependencies, installation fails because the sam-2 package requires Python ≥ 3.10.

There is no setting in the macOS build to select or override the Python executable. Kdenlive always creates its virtual environments using the embedded Python 3.9.6, making it impossible to install SAM2 on macOS.

As a result, Object Detection is currently unusable on macOS.


STEPS TO REPRODUCE
1.  Settings → Plugins → Object Detection
2. Click Install missing dependencies button

OBSERVED RESULT

In log getting:
ERROR: Package 'sam-2' requires a different Python: 3.9.6 not in '>=3.10.0'

EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: 14.7.2 (23H311)