You are not logged in.

#1 2014-01-02 05:07:09

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

New Arch kernel won't launch OpenShot video editor [SOLVED]

I just re-installed Arch the other day and now OpenShot Video Editor won't startup.

[wordstrings@DTR-Arch-Linux ~]$ openshot

------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------

(process:24968): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
--------------------------------
   OpenShot (version 1.4.4~alpha1)
--------------------------------
Process no longer exists: 24908.  Creating new pid lock file.

------------------------- ERROR 2 ------------------------------
Failed to import 'from openshot.openshot import main'
Error Message: unsupported locale setting
----------------------------------------------------------------

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!

Command running python:

[wordstrings@DTR-Arch-Linux ~]$ python
Python 3.3.3 (default, Nov 26 2013, 13:47:45) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'mlt'
>>> mlt.Factory().init()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined

So;

[wordstrings@DTR-Arch-Linux ~]$ pacman -Ss mlt
community/mlt 0.9.0-5 [installed]
    An open source multimedia framework

Also;

[wordstrings@DTR-Arch-Linux ~]$ export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages
[wordstrings@DTR-Arch-Linux ~]$ echo $PYTHONPATH
:/usr/lib/python2.7/site-packages

I'v read & done everything I can find on Google and in Arch bbs about this. I even installed all the other video editors I could find and none of them work.

Last edited by customscrollbar (2014-01-03 16:53:02)

Offline

#2 2014-01-02 20:30:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

customscrollbar wrote:

Command running python:

[wordstrings@DTR-Arch-Linux ~]$ python
Python 3.3.3 (default, Nov 26 2013, 13:47:45) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'mlt'
>>> mlt.Factory().init()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'mlt' is not defined

OpenShot uses Python 2, not Python 3. So you should do this test again starting with the command "python2".

Offline

#3 2014-01-02 21:03:18

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

[wordstrings@DTR-Arch-Linux ~]$ python2
Python 2.7.6 (default, Nov 26 2013, 12:47:31) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
>>> mlt.Factory().init()
<mlt.Repository; proxy of <Swig Object of type 'Mlt::Repository *' at 0xb725e878> >

Offline

#4 2014-01-02 21:39:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,464

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

What does pacman -Qs mlt have to say?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2014-01-03 00:06:22

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

[wordstrings@DTR-Arch-Linux ~]$ pacman -Qs mlt
local/mlt-git 20120912-1
    An open source multimedia framework, git version
local/mlt-python-bindings 0.9.0-5
    An open source multimedia framework
local/openshot 1.4.3-3
    an open-source, non-linear video editor for Linux based on MLT framework

Offline

#6 2014-01-03 01:38:37

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

I downloaded the openshot tarball off their website (openshot.com) and checked/installed the list of dependencies that came with it in the README file, (this)

OpenShot Video Editor is programmed in Python, and thus does not need
to be compiled to run.  However, be sure you have the following 
dependencies in order to run OpenShot successfully: 

1) Python 2.5+ (http://www.python.org)
2) GTK & pyGTK (http://www.pygtk.org)
3) GooCanvas & Python bindings (http://live.gnome.org/GooCanvas)
4) MLT Framework (http://www.mltframework.org)
5) Sox audio library
6) Frei0r video effect library
7) FFmpeg

Afterwards, I cd into the openshot directory, to run this command:

$ sudo python setup.py install

which triggers the setup.py file in it, but the shell gave me this error output

[wordstrings@DTR-Arch-Linux openshot-1.4.3]$ sudo python setup.py install
[sudo] password for wordstrings: 
  File "setup.py", line 23
    print "Execution path: %s" % os.path.abspath(__file__)
                             ^
SyntaxError: invalid syntax

Is there anyway I can alter line 23 in setup.py so the install command will work?

Last edited by customscrollbar (2014-01-03 01:40:18)

Offline

#7 2014-01-03 01:48:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,031

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

Error Message: unsupported locale setting

This is your error. Give us more information about your locale.

Offline

#8 2014-01-03 01:57:16

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

In nano /etc/locale.gen I removed the # in front of en_US.UTF-8 UTF-8 during Arch installation.

Offline

#9 2014-01-03 01:59:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,031

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

and did you run locale-gen? What is the output of "locale"? "locale -a"?

Last edited by Scimmia (2014-01-03 02:00:19)

Offline

#10 2014-01-03 02:01:56

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

Yes, I ran locale-gen. Output is:

[wordstrings@DTR-Arch-Linux ~]$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=enUS.UTF-8
LC_CTYPE="enUS.UTF-8"
LC_NUMERIC="enUS.UTF-8"
LC_TIME="enUS.UTF-8"
LC_COLLATE="enUS.UTF-8"
LC_MONETARY="enUS.UTF-8"
LC_MESSAGES="enUS.UTF-8"
LC_PAPER="enUS.UTF-8"
LC_NAME="enUS.UTF-8"
LC_ADDRESS="enUS.UTF-8"
LC_TELEPHONE="enUS.UTF-8"
LC_MEASUREMENT="enUS.UTF-8"
LC_IDENTIFICATION="enUS.UTF-8"
LC_ALL=

Offline

#11 2014-01-03 02:03:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,031

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

and there it is, enUS.UTF-8 is not valid, you forgot the underscore. Check /etc/locale.conf.

Last edited by Scimmia (2014-01-03 02:04:40)

Offline

#12 2014-01-03 02:03:06

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

[wordstrings@DTR-Arch-Linux ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8

Offline

#13 2014-01-03 02:25:47

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

I had en_US.UTF-8 UTF-8 in the locale.conf file, it just shows up enUS.UTF-8 with the locale command. This is the one for America.

Last edited by customscrollbar (2014-01-03 02:39:06)

Offline

#14 2014-01-03 02:37:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,031

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

I didn't say locale.gen, I said locale.conf.

Offline

#15 2014-01-03 16:42:35

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

customscrollbar wrote:

Afterwards, I cd into the openshot directory, to run this command:

$ sudo python setup.py install

Once again, "python" will run Python 3. Openshot is written in Python 2 ("python2"). But at this point I think it's irrelevant because:

Scimmia wrote:
Error Message: unsupported locale setting

This is your error. Give us more information about your locale.

Good catch! I missed that.

@customscrollbar, please confirm your locale settings in the "/etc/locale.conf" and "/etc/locale.gen" files. (read about them more here in the Beginner's Guide: https://wiki.archlinux.org/index.php/Be … ide#Locale) It REALLY should be "en_US.UTF-8" when using the "locale" command.

Offline

#16 2014-01-03 16:50:10

customscrollbar
Member
Registered: 2013-11-15
Posts: 55

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

Yeah, I screwed up and forgot the underscore. (Maybe someone should delete this thread)?

Offline

#17 2014-01-03 18:35:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,464

Re: New Arch kernel won't launch OpenShot video editor [SOLVED]

customscrollbar wrote:

Yeah, I screwed up and forgot the underscore. (Maybe someone should delete this thread)?

Why? it is a good reference.
https://wiki.archlinux.org/index.php/Fo … way_Street does not really apply, but this is why we don't do that.  Not all vexing problems have complex root causes smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB