You are not logged in.
Just installed OpenShot (x86, community/openshot 1.3.0-2), but it fails to launch.
openshot
--------------------------------
OpenShot (version 1.3.0)
--------------------------------
Process no longer exists: 4921. Creating new pid lock file.
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/openshot/classes/thumbnail.py", line 170, in run
mlt.Factory().init()
NameError: global name 'mlt' is not defined
*** 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
Offline
probably because it requires python2 and not python (which is now at version 3 in Arch)
you might have to change the scripts for openshot to point to python2 instead. Try it and see if it works.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
There is already python2, not python.
/usr/bin/openshot
#!/usr/bin/python2
# OpenShot Video Editor is a program that creates, modifies, and edits video files.
# Copyright (C) 2009 TJ, Jonathan Thomas
#
# This file is part of OpenShot Video Editor (http://launchpad.net/openshot/).
#
# OpenShot Video Editor is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenShot Video Editor is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenShot Video Editor. If not, see <http://www.gnu.org/licenses/>.
import sys, os
# get the real location of this launcher file (not the link location)
realfile = os.path.realpath(__file__)
realfile_dir = os.path.dirname(os.path.abspath(realfile))
# determine if running from the /openshot/bin folder
parent_folder_path = os.path.dirname(realfile_dir)
bin_path = os.path.join(parent_folder_path, 'openshot')
if os.path.exists(os.path.join(bin_path, 'openshot.py')):
# insert this path into the Python path
sys.path.insert(0, bin_path)
print "Added %s to system path" % bin_path
else:
# determine if running from the /usr/share/openshot folder
usr_share_path = os.path.join('/', 'usr', 'share', 'openshot')
if os.path.exists(usr_share_path):
# insert this path into the Python path
sys.path.insert(0, usr_share_path)
print "Added %s to system path" % usr_share_path
# If the openshot python code is found in the Python path, then
# we should be able to import openshot and call the main() method
try:
# RUN OPENSHOT
from openshot import main
main()
except ImportError:
try:
# RUN OPENSHOT
from openshot.openshot import main
main()
except ImportError:
# Failed to find the openshot library. NOTE: This /bin/openshot/ file
# requires that OpenShot be installed in /site-packages or /usr/share/openshot
print "-------------------------------------------------------"
print "Error: OpenShot has not been installed in the Python path."
print "(Both the site-packages and /usr/share/openshot folders were checked)"
print ""
print "Use the following command to install OpenShot:"
print " $ sudo python setup.py install"
print ""
Offline
I have the same problem. Does anybody know a solution?
Arch x86_64
Offline
I do also have this problem.
Maybe we should report it as a bug?
EDIT: http://openshotusers.com/forum/viewtopic.php?f=12&t=814
Maybe the latest update of mlt is causing problems?
[ronny@r1arch ~]$ sudo ls -al /usr/lib/libmlt*
lrwxrwxrwx 1 root root 15 4 mar 14.01 /usr/lib/libmlt.so -> libmlt.so.0.6.2
lrwxrwxrwx 1 root root 17 4 mar 14.01 /usr/lib/libmlt++.so -> libmlt++.so.0.6.2
-rwxr-xr-x 1 root root 144104 4 mar 14.01 /usr/lib/libmlt.so.0.6.2
-rwxr-xr-x 1 root root 113288 4 mar 14.01 /usr/lib/libmlt++.so.0.6.2
lrwxrwxrwx 1 root root 15 4 mar 14.01 /usr/lib/libmlt.so.3 -> libmlt.so.0.6.2
lrwxrwxrwx 1 root root 17 4 mar 14.01 /usr/lib/libmlt++.so.3 -> libmlt++.so.0.6.2
[ronny@r1arch ~]$
Openshot 1.3.0 dependencies:
http://openshotusers.com/forum/viewtopic.php?f=12&t=758
Openshot did work for me when I installed it a few weeks ago but now it does not work anymore.
Last edited by ronnylov (2011-03-13 21:39:05)
Offline
Hi
For me it is working but when rendering the projects, exporting the projects no matter to what I have no sound.
During the edit, I have sound...
BTW, it is the same with kdenlive....
Serge
Offline
Rebuild it using abs, if it works, report it on the arch bug tracker.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
This is what I get when trying to install the ABS build of openshot:
[ronny@r1arch openshot]$ ls
openshot-1.3.0-2-any.pkg.tar.xz openshot.install PKGBUILD
openshot-1.3.0.tar.gz pkg src
[ronny@r1arch openshot]$ sudo pacman -U openshot-1.3.0-2-any.pkg.tar.xz
Lösenord:
löser beroenden...
letar efter interna konflikter...
Mål (1): openshot-1.3.0-2
Totalt Nerladdad Storlek: 0,00 MB
Totalt Installerad Storlek: 46,44 MB
Fortsätt med installation? [Y/n] Y
kontrollerar paketintegritet...
(1/1) letar efter filkonflikter [###################] 100%
(1/1) uppgraderar openshot [###################] 100%
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'interface/x-winamp-skin'
[ronny@r1arch openshot]$
and then I try to start openshot:
[ronny@r1arch openshot]$ openshot
--------------------------------
OpenShot (version 1.3.0)
--------------------------------
Process no longer exists: 4121. Creating new pid lock file.
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/openshot/classes/thumbnail.py", line 170, in run
mlt.Factory().init()
NameError: global name 'mlt' is not defined
*** 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
[ronny@r1arch openshot]$
Did I understand correctly that I shoult NOT report a bug if ABS build did not work?
When should a bug be reported?
EDIT: Now it works!
First I found this page: http://www.linuxjournal.com/content/int … g-openshot
They got the same error. I checked my PYHONPATH and it was empty.
I added some paths:
[ronny@r1arch ~]$ echo $PYTHONPATH
:/usr/lib/python2.7/site-packages/:/usr/bin/openshot/
[ronny@r1arch ~]$
It still did not start. I thought of the "three files from ~/src/mlt/src/swig/python" and how to get the source?
Well I installed mlt and mlt-python-bindings from ABS (got both from ABS mlt package).
Now I thinked maybe it got installed correclty now so I tried to start openshot (without manually copy the swig files).
Voila! It works!
I am not sure why installing mlt from ABS gives better results, or maybe it was the PYTHONPATH that fixed it?
So if there is a bug to report, where is the bug then?
Last edited by ronnylov (2011-03-16 20:33:58)
Offline
Still can get it to work even if I set the pythonpath.
Offline
I did also reinstall openshot, mlt and mlt-python-bindings from source with ABS instead of install them as binary packages.
Another thing I did was creating additional symlinks
/usr/lib/libmlt++.so.2 -> libmlt++.so.0.6.2
/usr/lib/libmlt.so.2 -> libmlt.so.0.6.2
I am not sure which one of the changes that made it work for me (that is a problem when making many changes).
Offline
Same issue here. I cannot rebuild mlt from abs:
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/__init__.py", line 157, in <module>
codecs.register(search_function)
AttributeError: 'module' object has no attribute 'register'
python development missing
Aborting...
I rebuilt openshot from ABS with no effect. I cannot find mlt-python-bindings in ABS. I tried openshot-bzr from AUR with which I get:
$ openshot
------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
OpenShot (version 1.3.1~alpha1)
--------------------------------
Process no longer exists: 18018. Creating new pid lock file.
------------------------- ERROR 2 ------------------------------
Failed to import 'from openshot.openshot import main'
Error Message: No module named xdg.IconTheme
----------------------------------------------------------------
OpenShot has failed to import some of the Python files or libraries
required for our application to run. Here are some trouble shooting
tips:
Tip 1) Check if MLT can be successfully imported in Python. Run the
following commands, and see if any errors are displayed. If you get
an error, you need to investigate the correct way to install MLT.
NOTE: Do not type the $ or >> characters in the examples below.
$ python
>> import mlt
>> mlt.Factory().init()
Tip 2) If MLT is working from the first example, then the next tip is
to look at the above error messages very closely, and google for more
help. It's likely the problem is already reported, and maybe there is
a simple work-around. Also, you can search for bugs or report a new
bug at https://bugs.launchpad.net/openshot. Good luck!
creating symlinks doesn't help either
Last edited by kasbah (2011-03-22 18:26:11)
Offline
Rebuild mlt and mlt-python-bindings works for me!
Offline
mlt-python-bindings comes together with mlt on ABS (there are two pkgbuilds in the mlt directory).
Offline
Please file a bug report, since the binary does not work and a rebuilt package does.
I need real, proper pen and paper for this.
Offline
I have filed this bug: https://bugs.archlinux.org/task/23462
This is the first bug report I have ever made so if I made any mistake it is because I am new to this...
And the bug is now fixed. I think this thread can be marked as solved.
Last edited by ronnylov (2011-03-27 19:34:12)
Offline
After the next update community/python-mlt-bindings I have the same error.
Offline
$ pacman -Q mlt-python-bindings openshot
mlt-python-bindings 0.7.0-2
openshot 1.3.0-2
Not reproducible anymore; it works now.
I need real, proper pen and paper for this.
Offline
[chrasty@HP ~]$ pacman -Q mlt-python-bindings openshot
mlt-python-bindings 0.7.0-2
openshot 1.3.0-2
[chrasty@HP ~]$ openshot
--------------------------------
OpenShot (version 1.3.0)
--------------------------------
Process no longer exists: 3228. Creating new pid lock file.
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/openshot/classes/thumbnail.py", line 170, in run
mlt.Factory().init()
NameError: global name 'mlt' is not defined
*** 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
[chrasty@HP ~]$
Last edited by chrasty (2011-03-30 17:19:12)
Offline
1) Fully update your system
2) Remove any symlinks you might've made (for openshot libs or python binary)
3) Remove ~/.openshot (backup if you must)
4) Remove openshot, mlt, mlt-python-bindings (pacman -Rscn openshot; -Rd if you don't like what else is being removed)
5) Reinstall the packages
I need real, proper pen and paper for this.
Offline
mlt 0.7.0-2
mlt-python-bindings 0.7.0-2
openshot 1.3.0-2
--------------------------------
OpenShot (version 1.3.0)
--------------------------------
Process no longer exists: 5650. Creating new pid lock file.
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/openshot/classes/thumbnail.py", line 170, in run
mlt.Factory().init()
NameError: global name 'mlt' is not defined
*** 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
Broken from the last mlt upgrade
[2011-03-29 16:06] upgraded mlt (0.6.2-3 -> 0.7.0-2)
[2011-03-29 16:06] upgraded mlt-python-bindings (0.6.2-3 -> 0.7.0-2)
Already requested a bug reopen https://bugs.archlinux.org/task/23462
Last edited by andrews (2011-03-30 18:36:57)
Offline
Offline
Really strange
Offline
I did also get the error again after the upgrade of mlt and mlt-python-bindings to latest version 0.7.0-2.
And I did the same thing as before to fix it.
Rebuilt mlt with ABS which created packages for both mlt and mlt-python-bindings.
I installed them both and then openshot works again.
So the same error and the same solution again for me.
Offline
Confirmed , rebuilt MLT with ABS works.
Offline
I am very new to Arch - my first (successful) install was ~1 week ago. I, too, was unable to open OpenShot and got the same errors. There was an update, though, to mlt (to 0.7.0-1 as I recall) and it worked. Sadly, there was another update either today or yesterday (to mlt 0.7.0-2) and I am now back to "square one".
EDIT: I have just downgraded to mlt-0.6.2-3 and mlt-python-bindings-0.6.2-3 and OpenShot opens and works well. It seems my troubles began upon the upgrade to 0.7.0-1 and not 0.7.0-2.
Last edited by uc50ic4more (2011-03-31 18:11:44)
Offline