Openshot and Python MLT

Asked by manolo

Hi, I executed openshot and got this error after the last updates on my Ubuntu machine. In detail, the update removed the mlt-phyton package and installed the phyton-mlt
Any suggestion, please? Thanks.

$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
-------------------------------------------------------
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

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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

Question information

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

I would suggest removing openshot and python-mlt. Then re-install them
using Synaptic.

Thanks,
-Jonathan

On Fri, Jan 1, 2010 at 11:39 AM, manolo <<email address hidden>
> wrote:

> New question #95857 on OpenShot Video Editor:
> https://answers.launchpad.net/openshot/+question/95857
>
> Hi, I executed openshot and got this error after the last updates on my
> Ubuntu machine. In detail, the update removed the mlt-phyton package and
> installed the phyton-mlt
> Any suggestion, please? Thanks.
>
> $ openshot
> Added /usr/share/openshot to system path
> --------------------------------
> OpenShot (version 0.9.54)
> --------------------------------
> *** ERROR: MLT Python bindings failed to import ***
> *** ERROR: MLT Python bindings failed to import ***
> -------------------------------------------------------
> 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
>
> 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/share/openshot/classes/thumbnail.py", line 174, in run
> mlt.Factory().init()
> NameError: global name 'mlt' is not defined
>
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Jonathan Thomas (jonoomph) said :
#2

Just to clarify, the mlt-python package has gone away. It has been replaced
by python-mlt. So, in theory the correct thing happened. Why MLT is
failing to import is the question. After you remove python-mlt, be sure
that these files do not exist on your computer:

1) mlt.py
2) _mlt.so
3) mlt_wrap.o

Once you are sure these files have been deleted, then re-install openshot
and python-mlt.

Good luck,
-Jonathan

On Fri, Jan 1, 2010 at 2:16 PM, Jonathan Thomas <email address hidden>wrote:

> I would suggest removing openshot and python-mlt. Then re-install them
> using Synaptic.
>
> Thanks,
> -Jonathan
>
>
> On Fri, Jan 1, 2010 at 11:39 AM, manolo <
> <email address hidden>> wrote:
>
>> New question #95857 on OpenShot Video Editor:
>> https://answers.launchpad.net/openshot/+question/95857
>>
>> Hi, I executed openshot and got this error after the last updates on my
>> Ubuntu machine. In detail, the update removed the mlt-phyton package and
>> installed the phyton-mlt
>> Any suggestion, please? Thanks.
>>
>> $ openshot
>> Added /usr/share/openshot to system path
>> --------------------------------
>> OpenShot (version 0.9.54)
>> --------------------------------
>> *** ERROR: MLT Python bindings failed to import ***
>> *** ERROR: MLT Python bindings failed to import ***
>> -------------------------------------------------------
>> 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
>>
>> 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/share/openshot/classes/thumbnail.py", line 174, in run
>> mlt.Factory().init()
>> NameError: global name 'mlt' is not defined
>>
>>
>> --
>> You received this question notification because you are an answer
>> contact for OpenShot Video Editor.
>>
>
>

Revision history for this message
manolo (mac-man2005) said :
#3

I uninstalled openshot and python-mlt. I also removed mlt.py (and a sym link to it, I suppose) even if I did not find any _mlt.so or mlt_wrap.o

Then I reinstalled openshot with Synaptic but the problem persists. Actually I get quite the same error as before:

~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** 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/share/openshot/classes/thumbnail.py", line 174, 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

Any suggestion please?
Thanks.

Revision history for this message
Jonathan Thomas (jonoomph) said :
#4

Can you post the output of the following commands:

ls /usr/share/pyshared/python-mlt
ls /usr/lib/pyshared/python2.6/python-mlt
ls /usr/lib/pymodules/python-mlt

Also, can you post the output of these 2 commands:
python
>> import sys
>> print sys.path

In Synaptic, it should show the location of installed files for python-mlt.
If the commands do not work, please try and get a list of installed files
for python-mlt on your computer and post them to this ticket.

Thanks,
-Jonathan

On Fri, Jan 1, 2010 at 6:26 PM, manolo
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Status: Answered => Open
>
> manolo is still having a problem:
> I uninstalled openshot and python-mlt. I also removed mlt.py (and a sym
> link to it, I suppose) even if I did not find any _mlt.so or mlt_wrap.o
>
> Then I reinstalled openshot with Synaptic but the problem persists.
> Actually I get quite the same error as before:
>
> ~$ openshot
> Added /usr/share/openshot to system path
> --------------------------------
> OpenShot (version 0.9.54)
> --------------------------------
> *** 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/share/openshot/classes/thumbnail.py", line 174, 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
>
>
>
> Any suggestion please?
> Thanks.
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
manolo (mac-man2005) said :
#5

~$ ls /usr/share/pyshared/python-mlt
ls: cannot access /usr/share/pyshared/python-mlt: No such file or directory
~$ ls /usr/lib/pyshared/python2.6/python-mlt
ls: cannot access /usr/lib/pyshared/python2.6/python-mlt: No such file or directory
~$ ls /usr/lib/pymodules/python-mlt
ls: cannot access /usr/lib/pymodules/python-mlt: No such file or directory

~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >> import sys
  File "<stdin>", line 1
    >> import sys
     ^
SyntaxError: invalid syntax
>>> >> print sys.path
  File "<stdin>", line 1
    >> print sys.path
     ^
SyntaxError: invalid syntax
>>> import sys
>>> print sys.path
['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages']

Synaptic -> python-mlt -> Properties -> Installed Files
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-mlt
/usr/share/doc/python-mlt/copyright
/usr/share/doc/python-mlt/changelog.Debian.gz
/usr/share/pyshared
/usr/share/pyshared/MLT_Python_Bindings-1.0.0.beta1.egg-info
/usr/share/pyshared/mlt
/usr/share/pyshared/mlt/__init__.py
/usr/share/pyshared/mlt/example.py
/usr/share/pyshared/mlt/mlt_wrap.o
/usr/share/pyshared/mlt/mlt.py
/usr/share/python-support
/usr/share/python-support/python-mlt.public
/usr/lib
/usr/lib/pyshared
/usr/lib/pyshared/python2.6
/usr/lib/pyshared/python2.6/mlt
/usr/lib/pyshared/python2.6/mlt/_mlt.so

Revision history for this message
Jonathan Thomas (jonoomph) said :
#6

Okay, can you also post the output of this:
ls /usr/lib/pymodules/python2.6/mlt/

Also, let's try this:
python
import mlt

Thanks!
-Jonathan

On Sat, Jan 2, 2010 at 3:41 AM, manolo
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Status: Answered => Open
>
> manolo is still having a problem:
> ~$ ls /usr/share/pyshared/python-mlt
> ls: cannot access /usr/share/pyshared/python-mlt: No such file or directory
> ~$ ls /usr/lib/pyshared/python2.6/python-mlt
> ls: cannot access /usr/lib/pyshared/python2.6/python-mlt: No such file or
> directory
> ~$ ls /usr/lib/pymodules/python-mlt
> ls: cannot access /usr/lib/pymodules/python-mlt: No such file or directory
>
>
> ~$ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
> [GCC 4.4.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> >> import sys
> File "<stdin>", line 1
> >> import sys
> ^
> SyntaxError: invalid syntax
> >>> >> print sys.path
> File "<stdin>", line 1
> >> print sys.path
> ^
> SyntaxError: invalid syntax
> >>> import sys
> >>> print sys.path
> ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
> '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
> '/usr/lib/python2.6/dist-packages/PIL',
> '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6',
> '/usr/lib/python2.6/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.6/gtk-2.0',
> '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode',
> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
> '/usr/local/lib/python2.6/dist-packages']
>
>
> Synaptic -> python-mlt -> Properties -> Installed Files
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/doc/python-mlt
> /usr/share/doc/python-mlt/copyright
> /usr/share/doc/python-mlt/changelog.Debian.gz
> /usr/share/pyshared
> /usr/share/pyshared/MLT_Python_Bindings-1.0.0.beta1.egg-info
> /usr/share/pyshared/mlt
> /usr/share/pyshared/mlt/__init__.py
> /usr/share/pyshared/mlt/example.py
> /usr/share/pyshared/mlt/mlt_wrap.o
> /usr/share/pyshared/mlt/mlt.py
> /usr/share/python-support
> /usr/share/python-support/python-mlt.public
> /usr/lib
> /usr/lib/pyshared
> /usr/lib/pyshared/python2.6
> /usr/lib/pyshared/python2.6/mlt
> /usr/lib/pyshared/python2.6/mlt/_mlt.so
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
manolo (mac-man2005) said :
#7

Thanks for your time.

~$ ls /usr/lib/pymodules/python2.6/mlt/
example.py __init__.py mlt.py _mlt.so
example.pyc __init__.pyc mlt.pyc mlt_wrap.o

~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] 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/pymodules/python2.6/mlt/__init__.py", line 1, in <module>
    from mlt import *
  File "/usr/lib/pymodules/python2.6/mlt/mlt.py", line 7, in <module>
    import _mlt
ImportError: libmlt++.so.2: cannot open shared object file: No such file or directory

Revision history for this message
Jonathan Thomas (jonoomph) said :
#8

Okay, here is what is happening. It created the Python bindings correctly,
and added them to the python path correctly. Python knows what "mlt" is,
but it fails to import it due to a library it can't find. Take a peak in
your /usr/lib/ folder for the libmlt++.so.2 file. If you can't find it, you
might need to make a symbolic link to the /usr/lib/libmlt++.so.0.4.4 file,
if you can find it. Let me know if that fixes it.

It needs to find a file called /usr/lib/libmlt++.so.2. Before you change
anything, print out a list of files in your /usr/lib that are named
libmlt*. I am interested to know what files are in there.

The ultimate test to see if it works is to try and import mlt in python:
python
import mlt

Thanks,
-Jonathan

On Sat, Jan 2, 2010 at 1:08 PM, manolo
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Status: Answered => Open
>
> manolo is still having a problem:
> Thanks for your time.
>
>
> ~$ ls /usr/lib/pymodules/python2.6/mlt/
> example.py __init__.py mlt.py _mlt.so
> example.pyc __init__.pyc mlt.pyc mlt_wrap.o
>
> ~$ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
> [GCC 4.4.1] 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/pymodules/python2.6/mlt/__init__.py", line 1, in <module>
> from mlt import *
> File "/usr/lib/pymodules/python2.6/mlt/mlt.py", line 7, in <module>
> import _mlt
> ImportError: libmlt++.so.2: cannot open shared object file: No such file or
> directory
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Jonathan Thomas (jonoomph) said :
#9

Here is whats strange. The libmlt++2 package should have created the /usr/lib/libmlt++.so.2 file. If you look at that package in Synaptic, it should show that file in the "Installed files" section.

Revision history for this message
manolo (mac-man2005) said :
#10

/usr/lib$ ls -la libmlt*
-rw-r--r-- 1 root root 120324 2009-12-19 14:00 libmlt.so.0.4.10
-rw-r--r-- 1 root root 116964 2009-12-19 14:00 libmlt++.so.0.4.10
lrwxrwxrwx 1 root root 16 2009-12-19 14:17 libmlt.so.2 -> libmlt.so.0.4.10
lrwxrwxrwx 1 root root 18 2009-12-19 14:17 libmlt++.so.3 -> libmlt++.so.0.4.10

So there is not any libmlt++.so.2 and also I cannot create a sym link to /usr/lib/libmlt++.so.0.4.4 since it does not exist.

Synaptic -> libmlt++2 -> Properties -> Installed files

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libmlt++2
/usr/share/doc/libmlt++2/copyright
/usr/lib
/usr/lib/libmlt++.so.0.4.10
/usr/share/doc/libmlt++2/NEWS.gz
/usr/share/doc/libmlt++2/changelog.gz
/usr/share/doc/libmlt++2/changelog.Debian.gz
/usr/share/doc/libmlt++2/AUTHORS
/usr/share/doc/libmlt++2/README
/usr/lib/libmlt++.so.3

Thanks for your time.
Regards.

Revision history for this message
Jonathan Thomas (jonoomph) said :
#11

Okay, here is a question I should have asked up front. What version of
Ubuntu are you running? Karmic / 9.10? My PPA only works with Karmic, so
that might explain something if you are on a different version of Ubuntu.

Regardless, let's try this and see what happens:
Create a symlink /usr/lib/libmlt++.so.2 and link it to
/usr/lib/libmlt++.so.0.4.10.

Thanks,
-Jonathan

On Sat, Jan 2, 2010 at 6:53 PM, manolo
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Status: Answered => Open
>
> manolo is still having a problem:
> /usr/lib$ ls -la libmlt*
> -rw-r--r-- 1 root root 120324 2009-12-19 14:00 libmlt.so.0.4.10
> -rw-r--r-- 1 root root 116964 2009-12-19 14:00 libmlt++.so.0.4.10
> lrwxrwxrwx 1 root root 16 2009-12-19 14:17 libmlt.so.2 ->
> libmlt.so.0.4.10
> lrwxrwxrwx 1 root root 18 2009-12-19 14:17 libmlt++.so.3 ->
> libmlt++.so.0.4.10
>
> So there is not any libmlt++.so.2 and also I cannot create a sym link to
> /usr/lib/libmlt++.so.0.4.4 since it does not exist.
>
> Synaptic -> libmlt++2 -> Properties -> Installed files
>
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/doc/libmlt++2
> /usr/share/doc/libmlt++2/copyright
> /usr/lib
> /usr/lib/libmlt++.so.0.4.10
> /usr/share/doc/libmlt++2/NEWS.gz
> /usr/share/doc/libmlt++2/changelog.gz
> /usr/share/doc/libmlt++2/changelog.Debian.gz
> /usr/share/doc/libmlt++2/AUTHORS
> /usr/share/doc/libmlt++2/README
> /usr/lib/libmlt++.so.3
>
>
> Thanks for your time.
> Regards.
>
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
ActOfGod (redsun0131) said :
#12

I'm no linux geek try to help out .... the said user could potentially having two versions of python 3.1.1 and 2.6.4 whcih messed up some of my symlink. I resolved my openshot problem by sacrifice/uninstall python version 3.1.1 and remain 2.6.4.

Hopefully, this help !

Revision history for this message
manolo (mac-man2005) said :
#13

I am running Ubuntu 9.10 - Kernel 2.6.31-16-generic. Sorry for not specifying it before.
So, thanks to Jonathan's advice, I am now able to run openshot.

******************************************************
~$ sudo ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2
~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
on_frmMain_destroy
******************************************************

Two more questions.

1) How to solve that "icon_size != GTK_ICON_SIZE_INVALID' failed" error?

2) I have Python 2.5 and 2.6 installed. Inspired by ActOfGod, I ask: why should I have more versions of python installed?

Thanks for your time.
Regards.

Revision history for this message
Cinch (cinch-ameritech) said :
#14

Jonathan,
Can you help with my problem because I was getting the same error as Manalo.
I am running Karmic 64bit and used you PPA install. Here is a copy and paste of the same things you asked Manalo...

rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
-------------------------------------------------------
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

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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

rick@Ranch:~$ ls /usr/share/pyshared/python-mlt
ls: cannot access /usr/share/pyshared/python-mlt: No such file or directory
rick@Ranch:~$ ls /usr/lib/pyshared/python2.6/python-mlt
ls: cannot access /usr/lib/pyshared/python2.6/python-mlt: No such file or directory
rick@Ranch:~$ ls /usr/lib/pymodules/python-mlt
ls: cannot access /usr/lib/pymodules/python-mlt: No such file or directory
rick@Ranch:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import.sys
  File "<stdin>", line 1
    import.sys
          ^
SyntaxError: invalid syntax
>>> print sys.path
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
>>>

I am not fluent in Linux but it looks like there is a problem with the print sys.path

how do I fix it?

Thanks in advance.

Revision history for this message
Cinch (cinch-ameritech) said :
#15

uninstalled and reinstalled openshot and python-mlt so I am posting my new results.... it still doesn't work.

rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
-------------------------------------------------------
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

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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

rick@Ranch:~$ ls /usr/share/pyshared/python-mlt
ls: cannot access /usr/share/pyshared/python-mlt: No such file or directory
rick@Ranch:~$ ls /usr/lib/pyshared/python2.6/python-mlt
ls: cannot access /usr/lib/pyshared/python2.6/python-mlt: No such file or directory
rick@Ranch:~$ ls /usr/lib/pymodules/python-mlt
ls: cannot access /usr/lib/pymodules/python-mlt: No such file or directory
rick@Ranch:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages']
>>>
rick@Ranch:~$

Synaptic -> libmlt++2 -> Properties -> Installed files

/.
/usr
/usr/lib
/usr/lib/pyshared
/usr/lib/pyshared/python2.6
/usr/lib/pyshared/python2.6/mlt
/usr/lib/pyshared/python2.6/mlt/_mlt.so
/usr/share
/usr/share/pyshared
/usr/share/pyshared/MLT_Python_Bindings-1.0.0.beta1.egg-info
/usr/share/pyshared/mlt
/usr/share/pyshared/mlt/mlt_wrap.o
/usr/share/pyshared/mlt/mlt.py
/usr/share/pyshared/mlt/__init__.py
/usr/share/pyshared/mlt/example.py
/usr/share/doc
/usr/share/doc/python-mlt
/usr/share/doc/python-mlt/copyright
/usr/share/doc/python-mlt/changelog.Debian.gz
/usr/share/python-support
/usr/share/python-support/python-mlt.public

rick@Ranch:~$ sudo ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2
ln: creating symbolic link `/usr/lib/libmlt++.so.2': File exists
rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** 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/share/openshot/classes/thumbnail.py", line 174, 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

rick@Ranch:~$

again, I am running Karmic 64 bit and used your PPA to install.
Please help. Your software looks very very promising. This install has been a little troublesome but should be worth it.

Cinch

Revision history for this message
Jonathan Thomas (jonoomph) said :
#16

Cinch,
Please remove python-mlt and openshot. Then be sure to search for any of
these files, and delete them (if they exist):

1) mlt.py
2) _mlt.so
3) mlt_wrap.o

Then, re-install python-mlt and openshot. The last step is the be sure this
file exists (or create a symlink for it):
/usr/lib/libmlt++.so.2

If that doesn't work, please post the error message. Also, please post the
Installed files from the libmlt++2 package.

Thanks,
-Jonathan

On Sun, Jan 3, 2010 at 12:56 PM, Cinch
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Cinch requested for more information:
> uninstalled and reinstalled openshot and python-mlt so I am posting my
> new results.... it still doesn't work.
>
> rick@Ranch:~$ openshot
> Added /usr/share/openshot to system path
> --------------------------------
> OpenShot (version 0.9.54)
> --------------------------------
> *** ERROR: MLT Python bindings failed to import ***
> *** ERROR: MLT Python bindings failed to import ***
> -------------------------------------------------------
> 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
>
> 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/share/openshot/classes/thumbnail.py", line 174, in run
> mlt.Factory().init()
> NameError: global name 'mlt' is not defined
>
> rick@Ranch:~$ ls /usr/share/pyshared/python-mlt
> ls: cannot access /usr/share/pyshared/python-mlt: No such file or directory
> rick@Ranch:~$ ls /usr/lib/pyshared/python2.6/python-mlt
> ls: cannot access /usr/lib/pyshared/python2.6/python-mlt: No such file or
> directory
> rick@Ranch:~$ ls /usr/lib/pymodules/python-mlt
> ls: cannot access /usr/lib/pymodules/python-mlt: No such file or directory
> rick@Ranch:~$ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
> [GCC 4.4.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> print sys.path
> ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
> '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
> '/usr/lib/python2.6/dist-packages/Numeric',
> '/usr/lib/python2.6/dist-packages/PIL',
> '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6',
> '/usr/lib/python2.6/dist-packages/gtk-2.0',
> '/usr/lib/pymodules/python2.6/gtk-2.0',
> '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode',
> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
> '/usr/local/lib/python2.6/dist-packages']
> >>>
> rick@Ranch:~$
>
> Synaptic -> libmlt++2 -> Properties -> Installed files
>
> /.
> /usr
> /usr/lib
> /usr/lib/pyshared
> /usr/lib/pyshared/python2.6
> /usr/lib/pyshared/python2.6/mlt
> /usr/lib/pyshared/python2.6/mlt/_mlt.so
> /usr/share
> /usr/share/pyshared
> /usr/share/pyshared/MLT_Python_Bindings-1.0.0.beta1.egg-info
> /usr/share/pyshared/mlt
> /usr/share/pyshared/mlt/mlt_wrap.o
> /usr/share/pyshared/mlt/mlt.py
> /usr/share/pyshared/mlt/__init__.py
> /usr/share/pyshared/mlt/example.py
> /usr/share/doc
> /usr/share/doc/python-mlt
> /usr/share/doc/python-mlt/copyright
> /usr/share/doc/python-mlt/changelog.Debian.gz
> /usr/share/python-support
> /usr/share/python-support/python-mlt.public
>
> rick@Ranch:~$ sudo ln -s /usr/lib/libmlt++.so.0.4.10
> /usr/lib/libmlt++.so.2
> ln: creating symbolic link `/usr/lib/libmlt++.so.2': File exists
> rick@Ranch:~$ openshot
> Added /usr/share/openshot to system path
> --------------------------------
> OpenShot (version 0.9.54)
> --------------------------------
> *** 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/share/openshot/classes/thumbnail.py", line 174, 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
>
> rick@Ranch:~$
>
> again, I am running Karmic 64 bit and used your PPA to install.
> Please help. Your software looks very very promising. This install has been
> a little troublesome but should be worth it.
>
> Cinch
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Cinch (cinch-ameritech) said :
#17

ok....did the uninstall and reinstall again. same error..

rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** 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/share/openshot/classes/thumbnail.py", line 174, 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

libmlt++.so.2 exist's

and per your request here is the Installed files from the libmlt++2 package.

/.
/usr
/usr/lib
/usr/lib/libmlt++.so.0.4.4
/usr/share
/usr/share/doc
/usr/share/doc/libmlt++2
/usr/share/doc/libmlt++2/copyright
/usr/share/doc/libmlt++2/changelog.gz
/usr/share/doc/libmlt++2/changelog.Debian.gz
/usr/lib/libmlt++.so.2

Revision history for this message
John McDougall (sysadmin-mcdougallshome) said :
#18

I am having the same problem here. I am running karmic with kernel 2.6.31-16-generic. I completely uninstalled everything, deleted archives, and reinstalled from ppa. I also ran
"~$ sudo ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2" but it did not fix the problem. Here is the screenshot:

john@library-computer:/usr/share/openshot$ sudo ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2
ln: creating symbolic link `/usr/lib/libmlt++.so.2': File exists
john@library-computer:/usr/share/openshot$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
-------------------------------------------------------
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

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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

Revision history for this message
Cinch (cinch-ameritech) said :
#19

Jonathan,

Installed your ver. .0.9.55 today. Still the same error.... here it is.

rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.55)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
-------------------------------------------------------
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

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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

rick@Ranch:~$

any luck why Ubuntu Karmin 9.10 64 bit is having so much trouble with Openshot?????

Revision history for this message
Jonathan Thomas (jonoomph) said :
#20

It sounds like it is importing the mlt library, but it's an older version of
the library. Are you sure you haven't installed some DEB of mlt, or a
previous version from another PPA.

You might try uninstalling the MLT framework, then scan you computer for any
files named libmlt, just to be sure it's gone. The re-install using
Synaptic.

I am running OpenShot on a 64 bit Ubuntu machine running Karmic with no
issues. I think this has nothing to do with 32 vs 64 bit, but rather a
previous version of mlt.

Thanks,
-Jonathan

On Tue, Jan 5, 2010 at 4:38 PM, Cinch
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Cinch requested for more information:
> Jonathan,
>
> Installed your ver. .0.9.55 today. Still the same error.... here it is.
>
> rick@Ranch:~$ openshot
> Added /usr/share/openshot to system path
> --------------------------------
> OpenShot (version 0.9.55)
> --------------------------------
> *** ERROR: MLT Python bindings failed to import ***
> *** ERROR: MLT Python bindings failed to import ***
> -------------------------------------------------------
> 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
>
> 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/share/openshot/classes/thumbnail.py", line 174, in run
> mlt.Factory().init()
> NameError: global name 'mlt' is not defined
>
> rick@Ranch:~$
>
>
> any luck why Ubuntu Karmin 9.10 64 bit is having so much trouble with
> Openshot?????
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Cinch (cinch-ameritech) said :
#21

Jonathan,

I did (originally) install your Openshot with the Deb package for Ubuntu Karmic. It would crash so after some researching found that you recommend the PPA install for Karmic. I uninstalled the deb packages through Synaptic and followed your instructions for installing through the ppa. It loaded fine but I consistently get the errors. I uninstalled Openshot again and searched for mlt files. Found a few info files and deleted all mlt files.
Reinstalled and still get this error.....

rick@Ranch:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.55)
--------------------------------
*** 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/share/openshot/classes/thumbnail.py", line 174, 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

I am at a lost here....

Revision history for this message
manolo (mac-man2005) said :
#22

Synaptic upgraded OpenShot to 0.9.55 and everything works fine to me.
I unsubscribe since i do not have the problem any more.

Please feel free to get in touch with me if you feel like I could help making some tests or something.

Thanks for your time.
have a nice day!

Revision history for this message
Jonathan Thomas (jonoomph) said :
#23

@Cinch,
We'll figure this out. Let's start with a few basic things. Please paste the output of these commands:

python
>> import sys
>> sys.version
>> import mlt
>> mlt.Profile()
>> mlt.Factory()
>> mlt.Factory().init()

Also, let's see what mlt files are in your /usr/lib/
$ ls /usr/lib/*libmlt*

Thanks!
-Jonathan

Revision history for this message
Cinch (cinch-ameritech) said :
#24

Ok, First let me say thanks for taking the time to help figure this out. I really mean that.

Here are the outputs you requested...

rick@Ranch:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.6.4 (r264:75706, Dec 7 2009, 18:43:55) \n[GCC 4.4.1]'
>>> import mlt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/mlt.py", line 7, in <module>
ImportError: No module named _mlt
>>> mlt.Profile()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined
>>> mlt.Factory()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined
>>> mlt.Factory().init()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined
>>>
rick@Ranch:~$ ls /usr/lib/*libmlt*
/usr/lib/libmlt.so.0.4.4 /usr/lib/libmlt.so.1
/usr/lib/libmlt++.so.0.4.4 /usr/lib/libmlt++.so.2
rick@Ranch:~$

Something else might help here. "Kdenlive" and "Lives" both start and operate fine on my Karmic box....

Thanks again

Revision history for this message
Jonathan Thomas (jonoomph) said :
#25

Thanks for the info. That was helpful.

The following file should not exist:
/usr/lib/python2.6/dist-packages/mlt.py

That is the remains of the DEB installer... that did not clean up after you
installed it. Remove the following files from that folder (if they exist):
1) mlt.py
2) _mlt.so
3) mlt_wrap.o

The python-mlt package should have copied those 3 files to this folder (so
let's be sure they exist):
/usr/lib/pymodules/python2.6/mlt/

That should fix it. To test, you can run those same commands from the
previous email again.

Thanks,
-Jonathan

On Wed, Jan 6, 2010 at 3:11 PM, Cinch
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Cinch posted a new comment:
> Ok, First let me say thanks for taking the time to help figure this out.
> I really mean that.
>
> Here are the outputs you requested...
>
> rick@Ranch:~$ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
> [GCC 4.4.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.version
> '2.6.4 (r264:75706, Dec 7 2009, 18:43:55) \n[GCC 4.4.1]'
> >>> import mlt
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.6/dist-packages/mlt.py", line 7, in <module>
> ImportError: No module named _mlt
> >>> mlt.Profile()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'mlt' is not defined
> >>> mlt.Factory()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'mlt' is not defined
> >>> mlt.Factory().init()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'mlt' is not defined
> >>>
> rick@Ranch:~$ ls /usr/lib/*libmlt*
> /usr/lib/libmlt.so.0.4.4 /usr/lib/libmlt.so.1
> /usr/lib/libmlt++.so.0.4.4 /usr/lib/libmlt++.so.2
> rick@Ranch:~$
>
>
> Something else might help here. "Kdenlive" and "Lives" both start and
> operate fine on my Karmic box....
>
> Thanks again
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Cinch (cinch-ameritech) said :
#26

there is a mlt.pyc

Revision history for this message
Jonathan Thomas (jonoomph) said :
#27

Remove it if it is in this folder:
/usr/lib/python2.6/dist-packages

It is a compiled version of the mlt.py file.

Thanks,
-Jonathan

On Wed, Jan 6, 2010 at 3:48 PM, Cinch
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Cinch posted a new comment:
> there is a mlt.pyc
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Cinch (cinch-ameritech) said :
#28

That was it! The mlt.pyc file. I deleted it and ran the python commands again with no errors. Then ran openshot from command line and it runs fine now.

I did see the mlt.pyc before but you said to delete mlt.py, and I get nervous about deleting things that aren't exact as the request that you asked. I am sorry I didn't ask about the .pyc file earlier. Thanks alot for your time and help. I am going to take a closer look at your app now. From what I have read it looks verry promising for us Linux users. Thank You Again.

Rick

Revision history for this message
Jonathan Thomas (jonoomph) said :
#29

Glad it worked. This made me realize that I need to fix the DEB installers
to un-install the .pyc files as well. This was a good learning experience.
=)

Thanks,
-Jonathan

On Wed, Jan 6, 2010 at 4:14 PM, Cinch
<email address hidden>wrote:

> Question #95857 on OpenShot Video Editor changed:
> https://answers.launchpad.net/openshot/+question/95857
>
> Cinch posted a new comment:
> That was it! The mlt.pyc file. I deleted it and ran the python commands
> again with no errors. Then ran openshot from command line and it runs
> fine now.
>
> I did see the mlt.pyc before but you said to delete mlt.py, and I get
> nervous about deleting things that aren't exact as the request that you
> asked. I am sorry I didn't ask about the .pyc file earlier. Thanks alot
> for your time and help. I am going to take a closer look at your app
> now. From what I have read it looks verry promising for us Linux users.
> Thank You Again.
>
> Rick
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>

Revision history for this message
Liberty (liberty) said :
#30

What is a good way to find these mlt* files?

Revision history for this message
XFACT (avinandan) said :
#31

I am having the same problem in Karmic, with Openshot version 1, no solution yet. Please help :(

Revision history for this message
Techie (adzinets) said :
#32

I've had a very similar problem in Karmic. I was running openshot v.1.0 from PPA just fine. I then decided to update MLT from the Karmic's 0.4.4 to the latest 0.4.10 version.
So I compiled and installed MLT and reinstalled python-mlt and openshot from the PPA. This is when I got the same "import failed" message from Openshot.
The reason was missing link libmlt++.so.2.

The question I've got is whether this is MLT's or Openshot's bug? There's a symlink libmlt++.so.3 that was created so could it be that the python-mlt scripts are binding to the old version of libmlt++?

Revision history for this message
slimIT (slim-it) said :
#33

after typed this command the problem is solved :

sudo ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2

but there is a new problem :

Added /usr/share/openshot to system path
/usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option "gradients" is no longer supported and will be ignored.
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
Segmentation fault

Revision history for this message
kritter (tpoventud01) said :
#34

hi
 i use karmic and i am stil having the same problem it does not start and this is the message by the way this my first time working in a computer this way so try to be mad at me

Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
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/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
AttributeError: 'module' object has no attribute 'Factory'

/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
Traceback (most recent call last):
  File "/usr/bin/openshot", line 50, in <module>
    main()
  File "/usr/share/openshot/openshot.py", line 57, in main
    form1 = MainGTK.frmMain(project=current_project, version=info.SETUP['version'])
  File "/usr/share/openshot/windows/MainGTK.py", line 261, in __init__
    self.project.RefreshXML()
  File "/usr/share/openshot/classes/project.py", line 227, in RefreshXML
    self.GenerateXML(os.path.join(self.USER_DIR, "westley.xml"))
  File "/usr/share/openshot/classes/project.py", line 208, in GenerateXML
    self.sequences[0].GenerateXML(dom, tractor1)
  File "/usr/share/openshot/classes/sequences.py", line 185, in GenerateXML
    fps = self.project.fps()
  File "/usr/share/openshot/classes/project.py", line 98, in fps
    fps = profiles.mlt_profiles(self).get_profile(self.project_type).fps()
  File "/usr/share/openshot/classes/profiles.py", line 46, in __init__
    p = mlt.Profile(file_path)
AttributeError: 'module' object has no attribute 'Profile'
and yesterday i did everything it was on your website and it worked as soon i was done with that i shut down the laptop, then was this message.

Revision history for this message
Narcis Garcia (narcisgarcia) said :
#35

I've find this bug with OpenShot 1.0.0 and Ubuntu 9.10

The following is a command that should solve for any versions:

ln -s $(ls -C /usr/lib/libmlt++.so.* | cut -f 1 -d' ') /usr/lib/libmlt++.so.2

Revision history for this message
slimIT (slim-it) said :
#36

I have reinstalled and still the same problem.

i have tried those two command but the problem is still there :

ln -s $(ls -C /usr/lib/libmlt++.so.* | cut -f 1 -d' ') /usr/lib/libmlt++.so.2

and

ln -s /usr/lib/libmlt++.so.0.4.10 /usr/lib/libmlt++.so.2

both said that the file already exists.

here is the error when i launch openshot :

slimit@slim-laptop:/usr/lib$ openshot
Added /usr/share/openshot to system path
/usr/share/themes/Human/gtk-2.0/gtkrc:85: Murrine configuration option "gradients" is no longer supported and will be ignored.
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
*** 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/share/openshot/classes/thumbnail.py", line 174, 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

Revision history for this message
cucurbitaceae (capitan-pepino) said :
#37

I had this same problem with the 1.1 version:

--------------------------------
   OpenShot (version 1.1.0)
--------------------------------
*** 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

then after doing:

~$ python
>>> import mlt

the next output appeared

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/mlt/__init__.py", line 1, in <module>
    from mlt import *
  File "/usr/lib/pymodules/python2.6/mlt/mlt.py", line 7, in <module>
    import _mlt
ImportError: libmlt.so.1: cannot open shared object file: No such file or directory

so the file libmlt.so.1 didn't existed but i ha a file called libmlt.so.2 that linked to the libmlt.so.0.5.0 file, so i created a link to that same file with the libmlt.so.1 name:

~$ sudo ln -s $(ls -C /usr/lib/libmlt.so.0.5.0 | cut -f 1 -d' ') /usr/lib/libmlt.so.1

 ...and everything worked out, i really don't know why but i hope the experts could explain.

sorry for my bad english and poor knowledge in this kind of things i hope this helps other people to solve this problem

Revision history for this message
FrancoisSchoubben (fsc-webevasion) said :
#38

I had the same problem, just after installing 1.1 with a "non-clean Karmic"
All the above did nothing to solve the problem.
I removed completely libmlt++2 openshot and python-mlt [sudo aptitude remove --purge libmlt++2 openshot python-mlt] and installed them again [sudo aptitude install libmlt++2 openshot python-mlt] and it worked back...
 I now enjoy 1.1 :-D

Revision history for this message
FrancoisSchoubben (fsc-webevasion) said :
#39

As said there : https://answers.launchpad.net/openshot/+question/95857 I had the same problem. In case the above don't work for you (as it didn't work for me), I removed completely libmlt++2 openshot and python-mlt [sudo aptitude remove --purge libmlt++2 openshot python-mlt] and installed them again [sudo aptitude install libmlt++2 openshot python-mlt] and it worked back...
 I now enjoy 1.1 :-D

Revision history for this message
Dimitrios Dalagiorgos (dimndal) said :
#40

I tried the above suggestion but it didn't work:

--------------------------------
   OpenShot (version 1.1.1)
--------------------------------
*** 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

I'm using Ubuntu 9.10 32bit

Revision history for this message
David Robert Lewis (afrodeity) said :
#41

I have same problem and am also experiencing mlt problem with kdenlive

http://www.kdenlive.org/mantis/view.php?id=1517