Openshot and Python MLT
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/
self.run()
File "/usr/share/
mlt.
NameError: global name 'mlt' is not defined
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- manolo
- Solved:
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#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:/
>
> 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/
> self.run()
> File "/usr/share/
> mlt.Factory(
> 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
|
#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:/
>>
>> 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/
>> self.run()
>> File "/usr/share/
>> mlt.Factory(
>> 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
|
#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/
self.run()
File "/usr/share/
mlt.
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
|
#4 |
Can you post the output of the following commands:
ls /usr/share/
ls /usr/lib/
ls /usr/lib/
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:/
>
> 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/
> self.run()
> File "/usr/share/
> mlt.Factory(
> 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
|
#5 |
~$ ls /usr/share/
ls: cannot access /usr/share/
~$ ls /usr/lib/
ls: cannot access /usr/lib/
~$ ls /usr/lib/
ls: cannot access /usr/lib/
~$ 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/
Synaptic -> python-mlt -> Properties -> Installed Files
/.
/usr
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/pyshared
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/lib
/usr/lib/pyshared
/usr/lib/
/usr/lib/
/usr/lib/
Revision history for this message
|
#6 |
Okay, can you also post the output of this:
ls /usr/lib/
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:/
>
> Status: Answered => Open
>
> manolo is still having a problem:
> ~$ ls /usr/share/
> ls: cannot access /usr/share/
> ~$ ls /usr/lib/
> ls: cannot access /usr/lib/
> directory
> ~$ ls /usr/lib/
> ls: cannot access /usr/lib/
>
>
> ~$ 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/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/local/
>
>
> Synaptic -> python-mlt -> Properties -> Installed Files
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/pyshared
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/lib
> /usr/lib/pyshared
> /usr/lib/
> /usr/lib/
> /usr/lib/
>
> --
> You received this question notification because you are an answer
> contact for OpenShot Video Editor.
>
Revision history for this message
|
#7 |
Thanks for your time.
~$ ls /usr/lib/
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/
from mlt import *
File "/usr/lib/
import _mlt
ImportError: libmlt++.so.2: cannot open shared object file: No such file or directory
Revision history for this message
|
#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/
if you can find it. Let me know if that fixes it.
It needs to find a file called /usr/lib/
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:/
>
> Status: Answered => Open
>
> manolo is still having a problem:
> Thanks for your time.
>
>
> ~$ ls /usr/lib/
> 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/
> from mlt import *
> File "/usr/lib/
> 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
|
#9 |
Here is whats strange. The libmlt++2 package should have created the /usr/lib/
Revision history for this message
|
#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/
Synaptic -> libmlt++2 -> Properties -> Installed files
/.
/usr
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/lib
/usr/lib/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/lib/
Thanks for your time.
Regards.
Revision history for this message
|
#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/
/usr/lib/
Thanks,
-Jonathan
On Sat, Jan 2, 2010 at 6:53 PM, manolo
<email address hidden>wrote:
> Question #95857 on OpenShot Video Editor changed:
> https:/
>
> 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/
>
> Synaptic -> libmlt++2 -> Properties -> Installed files
>
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/
> /usr/share/
> /usr/lib
> /usr/lib/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/lib/
>
>
> 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
|
#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
|
#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/
~$ openshot
Added /usr/share/openshot to system path
-------
OpenShot (version 0.9.54)
-------
/usr/share/
return gtk.glade.
A new frmMain has been created
on_frmMain_destroy
*******
Two more questions.
1) How to solve that "icon_size != GTK_ICON_
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
|
#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/
self.run()
File "/usr/share/
mlt.
NameError: global name 'mlt' is not defined
rick@Ranch:~$ ls /usr/share/
ls: cannot access /usr/share/
rick@Ranch:~$ ls /usr/lib/
ls: cannot access /usr/lib/
rick@Ranch:~$ ls /usr/lib/
ls: cannot access /usr/lib/
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
|
#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/
self.run()
File "/usr/share/
mlt.
NameError: global name 'mlt' is not defined
rick@Ranch:~$ ls /usr/share/
ls: cannot access /usr/share/
rick@Ranch:~$ ls /usr/lib/
ls: cannot access /usr/lib/
rick@Ranch:~$ ls /usr/lib/
ls: cannot access /usr/lib/
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/
>>>
rick@Ranch:~$
Synaptic -> libmlt++2 -> Properties -> Installed files
/.
/usr
/usr/lib
/usr/lib/pyshared
/usr/lib/
/usr/lib/
/usr/lib/
/usr/share
/usr/share/pyshared
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
rick@Ranch:~$ sudo ln -s /usr/lib/
ln: creating symbolic link `/usr/lib/
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/
self.run()
File "/usr/share/
mlt.
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
|
#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/
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:/
>
> 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/
> self.run()
> File "/usr/share/
> mlt.Factory(
> NameError: global name 'mlt' is not defined
>
> rick@Ranch:~$ ls /usr/share/
> ls: cannot access /usr/share/
> rick@Ranch:~$ ls /usr/lib/
> ls: cannot access /usr/lib/
> directory
> rick@Ranch:~$ ls /usr/lib/
> ls: cannot access /usr/lib/
> 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/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/lib/
> '/usr/local/
> >>>
> rick@Ranch:~$
>
> Synaptic -> libmlt++2 -> Properties -> Installed files
>
> /.
> /usr
> /usr/lib
> /usr/lib/pyshared
> /usr/lib/
> /usr/lib/
> /usr/lib/
> /usr/share
> /usr/share/pyshared
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/doc
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
> /usr/share/
>
> rick@Ranch:~$ sudo ln -s /usr/lib/
> /usr/lib/
> ln: creating symbolic link `/usr/lib/
> 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/
> self.run()
> File "/usr/share/
> mlt.Factory(
> 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
|
#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/
self.run()
File "/usr/share/
mlt.
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/
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/lib/
Revision history for this message
|
#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/
john@library-
ln: creating symbolic link `/usr/lib/
john@library-
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/
self.run()
File "/usr/share/
mlt.
NameError: global name 'mlt' is not defined
Revision history for this message
|
#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/
self.run()
File "/usr/share/
mlt.
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
|
#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:/
>
> 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/
> self.run()
> File "/usr/share/
> mlt.Factory(
> 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
|
#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/
self.run()
File "/usr/share/
mlt.
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
|
#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
|
#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(
Also, let's see what mlt files are in your /usr/lib/
$ ls /usr/lib/*libmlt*
Thanks!
-Jonathan
Revision history for this message
|
#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/
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(
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/
/usr/lib/
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
|
#25 |
Thanks for the info. That was helpful.
The following file should not exist:
/usr/lib/
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/
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:/
>
> 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/
> 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(
> 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/
> /usr/lib/
> 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
|
#27 |
Remove it if it is in this folder:
/usr/lib/
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:/
>
> 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
|
#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
|
#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:/
>
> 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
|
#30 |
What is a good way to find these mlt* files?
Revision history for this message
|
#31 |
I am having the same problem in Karmic, with Openshot version 1, no solution yet. Please help :(
Revision history for this message
|
#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
|
#33 |
after typed this command the problem is solved :
sudo ln -s /usr/lib/
but there is a new problem :
Added /usr/share/openshot to system path
/usr/share/
-------
OpenShot (version 1.0.0)
-------
/usr/share/
return gtk.glade.
A new frmMain has been created
Segmentation fault
Revision history for this message
|
#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/
self.run()
File "/usr/share/
mlt.
AttributeError: 'module' object has no attribute 'Factory'
/usr/share/
return gtk.glade.
A new frmMain has been created
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/share/
form1 = MainGTK.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
fps = self.project.fps()
File "/usr/share/
fps = profiles.
File "/usr/share/
p = mlt.Profile(
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
|
#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/
Revision history for this message
|
#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/
and
ln -s /usr/lib/
both said that the file already exists.
here is the error when i launch openshot :
slimit@
Added /usr/share/openshot to system path
/usr/share/
-------
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/
self.run()
File "/usr/share/
mlt.
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
|
#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/
self.run()
File "/usr/lib/
mlt.
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/
from mlt import *
File "/usr/lib/
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/
...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
|
#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
|
#39 |
As said there : https:/
I now enjoy 1.1 :-D
Revision history for this message
|
#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/
self.run()
File "/usr/lib/
mlt.
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
|
#41 |
I have same problem and am also experiencing mlt problem with kdenlive