flowblade icon indicating copy to clipboard operation
flowblade copied to clipboard

MLT not found, exiting...

Open erkanisik1 opened this issue 2 years ago • 6 comments

Please include the following information.

  1. Flowblade version (Help->About): 2.8.0.3
  2. MLT version (Help->Runtime Environment): 7.0.1
  3. Your distribution (Ubuntu, Debian, Mint etc.): Pisi GNU/Linux

erkanisik1 avatar Sep 20 '21 06:09 erkanisik1

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

mariodebian avatar Sep 20 '21 08:09 mariodebian

Ok. I'll try to set up VM for Debian maybe next week to take look at this.

jliljebl avatar Sep 21 '21 07:09 jliljebl

@jliljebl I don't think this is your problem, unless upstream mlt really calls their mlt mlt7 from version 7 on. if so you'll need to add the fix, otherwise i have to in just the packaging.

alexmyczko avatar Sep 21 '21 08:09 alexmyczko

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

Thank you, 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 When we compiled the commands after making them suitable for our system, the problem was solved.

erkanisik1 avatar Sep 23 '21 11:09 erkanisik1

We need to get both 'import mlt' and 'import mlt7 as mlt' since we cannot know what is being presented to us.

jliljebl avatar Dec 26 '21 14:12 jliljebl

sed -i 's/import mlt$/import mlt7 as mlt/' flowblade
sed -i 's/import mlt$/import mlt7 as mlt/' Flowblade/*py
sed -i 's/import mlt$/import mlt7 as mlt/' Flowblade/tools/*py

Fixed the problem

sergiomb2 avatar Jan 13 '22 23:01 sergiomb2

Ok, this is the mlt -> mlt7 related issue that has been fixed.

jliljebl avatar Jun 01 '23 11:06 jliljebl

Thank you I will update RPMFusion packages soon , add see if now is eligible for Fedora

sergiomb2 avatar Jun 01 '23 12:06 sergiomb2