Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
szero opened this issue Sep 10, 2021 · 7 comments
Open

Comments

@szero
Copy link

szero commented Sep 10, 2021

  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
Copy link

#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
Copy link
Contributor

been fixed with -3

@szero
Copy link
Author

szero commented Sep 27, 2021

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

@szero szero closed this as completed Sep 27, 2021
@jliljebl jliljebl reopened this Dec 27, 2021
@jliljebl
Copy link
Owner

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

@XeemPad
Copy link

XeemPad commented May 8, 2024

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
Copy link
Contributor

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

@jliljebl
Copy link
Owner

jliljebl commented May 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants