MLT Python bindings failed to import

Asked by Antonio

I've installed openshot using ppa method according your suggestions. When i tried to run openshot i always get error information:

/usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option "gradients" is no longer supported and will be ignored.
--------------------------------
   OpenShot (version 1.1.2)
--------------------------------
*** 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.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/pymodules/python2.6/openshot/classes/thumbnail.py", line 170, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

-------------------------------------------------------
Error: OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)

Use the following command to install OpenShot:
  $ sudo python setup.py install

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
OpenShot Video Editor Edit question
Assignee:
No assignee Edit question
Solved by:
Valthare
Solved:
Last query:
Last reply:
Revision history for this message
Jonathan Thomas (jonoomph) said :
#1

Please take a look at the following FAQ:
https://answers.launchpad.net/openshot/+faq/1032

On Wed, Apr 7, 2010 at 4:00 AM, Antonio <
<email address hidden>> wrote:

> New question #106690 on OpenShot Video Editor:
> https://answers.launchpad.net/openshot/+question/106690
>
> I've installed openshot using ppa method according your suggestions. When i
> tried to run openshot i always get error information:
>
> /usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option
> "gradients" is no longer supported and will be ignored.
> --------------------------------
> OpenShot (version 1.1.2)
> --------------------------------
> *** 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.6/threading.py", line 525, in __bootstrap_inner
> self.run()
> File "/usr/lib/pymodules/python2.6/openshot/classes/thumbnail.py", line
> 170, in run
> mlt.Factory().init()
> NameError: global name 'mlt' is not defined
>
> -------------------------------------------------------
> Error: OpenShot has not been installed in the Python path.
> (Both the site-packages and /usr/share/openshot folders were checked)
>
> Use the following command to install OpenShot:
> $ sudo python setup.py install
>
> Thank you
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Olivier Girard (eolinwen) said :
#2

And too here : https://answers.launchpad.net/openshot/+question/103717 and here too : http://openshotusers.com/forum/viewtopic.php?f=12&t=300 .See after have seen the link of Jonathan.
Thanks

Revision history for this message
Antonio (antoniojralmeida) said :
#3

First thank you for your help, i am grateful for that. The problem remains,
the "sudo python setup.py install" did not worked, i've already tried
before. Then i run the script and yes there is a problem (of corse) but i do
not have the knowledge to fix the problem, and i decided to send you the
openshot.debug back. Regards.

2010/4/7 Jonathan Thomas <email address hidden>

> Your question #106690 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/106690
>
> Status: Open => Answered
>
> Jonathan Thomas proposed the following answer:
> Please take a look at the following FAQ:
> https://answers.launchpad.net/openshot/+faq/1032
>
> On Wed, Apr 7, 2010 at 4:00 AM, Antonio <
> <email address hidden>> wrote:
>
> > New question #106690 on OpenShot Video Editor:
> > https://answers.launchpad.net/openshot/+question/106690
> >
> > I've installed openshot using ppa method according your suggestions. When
> i
> > tried to run openshot i always get error information:
> >
> > /usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option
> > "gradients" is no longer supported and will be ignored.
> > --------------------------------
> > OpenShot (version 1.1.2)
> > --------------------------------
> > *** 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.6/threading.py", line 525, in __bootstrap_inner
> > self.run()
> > File "/usr/lib/pymodules/python2.6/openshot/classes/thumbnail.py", line
> > 170, in run
> > mlt.Factory().init()
> > NameError: global name 'mlt' is not defined
> >
> > -------------------------------------------------------
> > Error: OpenShot has not been installed in the Python path.
> > (Both the site-packages and /usr/share/openshot folders were checked)
> >
> > Use the following command to install OpenShot:
> > $ sudo python setup.py install
> >
> > Thank you
> >
> > --
> > You received this question notification because you are an answer
> > contact for OpenShot Video Editor.
> >
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/openshot/+question/106690/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/openshot/+question/106690
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Best Valthare (valt) said :
#4

I believe
sudo ln -s $(ls -C /usr/lib/libmlt++.so.* | cut -f 1 -d' ') /usr/lib/libmlt++.so.2
worked for me in Karmic. Can't remember what forum I found this in...

Revision history for this message
Antonio (antoniojralmeida) said :
#5

Thank you Valthare. Finnaly i can run openshot.