Problem with mlt in python
$ openshot
------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
** (process:30077): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:30077): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:30077): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
--------------------------------
OpenShot (version 1.4.3)
--------------------------------
Process no longer exists: 30071. Creating new pid lock file.
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/openshot/classes/thumbnail.py", line 240, in run
mlt.Factory().init()
NameError: global name 'mlt' is not defined
*** ERROR: MLT Python bindings failed to import ***
------------------------- ERROR 2 ------------------------------
Failed to import 'from openshot.openshot import main'
Error Message: /usr/lib/python2.7/_mlt.so: undefined symbol: _ZN3Mlt16FilteredConsumerC1ERNS_7ProfileEPcS3_
----------------------------------------------------------------
OpenShot has failed to import some of the Python files or libraries
required for our application to run. Here are some trouble shooting
tips:
Tip 1) Check if MLT can be successfully imported in Python. Run the
following commands, and see if any errors are displayed. If you get
an error, you need to investigate the correct way to install MLT.
NOTE: Do not type the $ or >> characters in the examples below.
$ python
>> import mlt
>> mlt.Factory().init()
Tip 2) If MLT is working from the first example, then the next tip is
to look at the above error messages very closely, and google for more
help. It's likely the problem is already reported, and maybe there is
a simple work-around. Also, you can search for bugs or report a new
bug at https://bugs.launchpad.net/openshot. Good luck!
$ python
Python 2.7.5 (default, Apr 20 2017, 14:01:37)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/mlt.py", line 26, in <module>
_mlt = swig_import_helper()
File "/usr/lib/python2.7/mlt.py", line 22, in swig_import_helper
_mod = imp.load_module('_mlt', fp, pathname, description)
ImportError: /usr/lib/python2.7/_mlt.so: undefined symbol: _ZN3Mlt16FilteredConsumerC1ERNS_7ProfileEPcS3_
>>> mlt.Factory().init()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined