jliljebl / flowblade

Video Editor for Linux
GNU General Public License v3.0
2.68k stars 181 forks source link

Debian: Flowblade says MLT module is not found but it's acutally present #1016

Open szero opened 3 years ago

szero commented 3 years ago

1) Flowblade version: 2.8 2) MLT version: 7.0.1-3 3) Your distribution (Ubuntu, Debian, Mint etc.): Debian sid

Hello, so this is output of flowblade from terminal:

FLOWBLADE MOVIE EDITOR 2.8
--------------------------
Launch script dir: /usr/bin
Running from installation...
modules path: /usr/share/flowblade/Flowblade
MLT not found, exiting...
ERROR: No module named 'mlt'

but when I do apt show python3-mlt I get package info:

Package: python3-mlt
Version: 7.0.1-3
Priority: optional
Section: python
Source: mlt
Maintainer: Patrick Matthäi <pmatthaei@debian.org>
Installed-Size: 542 kB
Provides: python3.9-mlt
Depends: libc6 (>= 2.14), libgcc-s1 (>= 3.0), libmlt++7 (>= 7.0.1), libmlt7 (>= 7.0.1), libstdc++6 (>= 5), python3 (<< 3.10), python3 (>= 3.9~), python3:any
Conflicts: python-mlt
Replaces: python-mlt
Homepage: https://www.mltframework.org
Download-Size: 99.9 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.pl.debian.org/debian unstable/main amd64 Packages
Description: multimedia framework (Python bindings)
 MLT is an open source multimedia framework, designed and developed for
 television broadcasting. It provides a toolkit for broadcasters, video
 editors, media players, transcoders, web streamers and many more types of
 applications. The functionality of the system is provided via an assortment
 of ready to use tools, xml authoring components, and an extendible plug-in
 based API.
 .
 This package contains the Python bindings for the mlt package.

I guess this is because this program didn't switch to python3 version of mlt?

mariodebian commented 3 years ago

1020 is duplicate of this bug

In Debian testing/unstable python3-mlt, the import module is mlt7:

# dpkg -L python3-mlt 
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/_mlt7.cpython-39-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/mlt7.py
/usr/share
/usr/share/doc
/usr/share/doc/python3-mlt
/usr/share/doc/python3-mlt/changelog.Debian.gz
/usr/share/doc/python3-mlt/copyright

As quick fix I changed all files with:

sudo find /usr/share/flowblade/ -type f -name "*.py" -exec sed -i 's/import mlt$/import mlt7 as mlt/g' {} +
sudo sed -i 's/import mlt$/import mlt7 as mlt/g' /usr/bin/flowblade
alexmyczko commented 3 years ago

been fixed with -3

szero commented 3 years ago

ok thank you very much guys, it is resolved in version 2.8.0.3-3

jliljebl commented 2 years ago

I added code to import mlt as mlt7 if that is what is in the system, now should work always.

XeemPad commented 6 months ago

Bro, it's still ain't working on Arch, btw

$ flowblade
FLOWBLADE MOVIE EDITOR 2.14.0.2
-------------------------------
Launch script dir: /usr/bin
Running from installation...
modules path: /usr/lib/python3.12/site-packages/Flowblade
MLT not found, exiting...
ERROR: No module named 'mlt7'
$ sudo pacman -S mlt
warning: mlt-7.24.0-1 is up to date -- reinstalling...
alexmyczko commented 6 months ago

Comrade @XeemPad it is our code, but only broke for you. You fix it!

jliljebl commented 6 months ago

I just installed Ubuntu 24.04 and got hit with:

$ flowblade
FLOWBLADE MOVIE EDITOR 2.14.0.2
-------------------------------
Launch script dir: /usr/bin
Running from installation...
modules path: /usr/lib/python3.12/site-packages/Flowblade
MLT not found, exiting...
ERROR: No module named 'mlt7'

The reason for me was that intalling MLT did not pull in Frei0r plugins and Flowblade default project created on startup uses frei0r.cairoblend.

Installing Frei0r plugins could help if your issue is this one.

sudo apt-get install frei0r-plugins

I'm re-opening this for info.