Racer-666 / flowblade

Automatically exported from code.google.com/p/flowblade
0 stars 0 forks source link

On Linux Mint 11 flowplayer crashes with message "IndexError: list index out of range" #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install flowblade_0.6.0-1_all.deb on Linux Mint 11.
2. Try to run flowblade from either the terminal or from the menu.

The flowblade GUI never appears and from the terminal I get the stack trace 
below. It does run on Linux Mint 12.

Traceback (most recent call last):
  File "/usr/bin/flowblade", line 63, in <module>
    app.main(modules_path)
  File "/usr/share/pyshared/Flowblade/app.py", line 150, in main
    create_gui()
  File "/usr/share/pyshared/Flowblade/app.py", line 196, in create_gui
    editor_window = editorwindow.EditorWindow()
  File "/usr/share/pyshared/Flowblade/editorwindow.py", line 306, in __init__
    True)
  File "/usr/share/pyshared/Flowblade/panels.py", line 125, in get_render_panel_left
    render.create_widgets()
  File "/usr/share/pyshared/Flowblade/render.py", line 326, in create_widgets
    _fill_extension_label()
  File "/usr/share/pyshared/Flowblade/render.py", line 573, in _fill_extension_label
    ext = encoding_options[enc_index].extension
IndexError: list index out of range

Original issue reported on code.google.com by wright...@gmail.com on 8 Jun 2012 at 2:18

GoogleCodeExporter commented 8 years ago
Same error in Ubuntu 11.04 64bits

Original comment by eduar...@ubuntu.org.uy on 9 Jun 2012 at 2:10

GoogleCodeExporter commented 8 years ago
That's interesting since Linux Mint 11 is based on Ubuntu 11.04. I'm running 
the 32 bit version.

I don't know if having the Python version will help, but when I run python in 
the terminal this is what I get.

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) 
[GCC 4.5.2] on linux2

Original comment by wright...@gmail.com on 9 Jun 2012 at 3:27

GoogleCodeExporter commented 8 years ago
I just thought to try the developer version through Mercurial, and it gives the 
same error.

Original comment by wright...@gmail.com on 9 Jun 2012 at 3:32

GoogleCodeExporter commented 8 years ago
It looks like widgets.encodings_cb.get_active() is returning -1. 

Earlier in the execution:
widgets.encodings_cb = gtk.combo_box_new_text()

So when get_active() is called on that gtk.ComboBox instance, it's returning -1 
which means it's not seeing an active item.

http://www.pygtk.org/docs/pygtk/class-gtkcombobox.html#method-gtkcombobox--get-a
ctive

Hardcoding the index to another value doesn't help. I'm guessing that for some 
reason on Ubuntu 11.04 the combo box just isn't getting populated. At least not 
by that point in the execution.

Original comment by wright...@gmail.com on 9 Jun 2012 at 5:11

GoogleCodeExporter commented 8 years ago
Same error on Debian 6 Squeeze 64 bit.  Python 2.6.6.  Attached is output when 
run from terminal

Original comment by mark.thu...@gmail.com on 10 Jun 2012 at 5:21

Attachments:

GoogleCodeExporter commented 8 years ago
I think the only possible reason for this is that no encoders are available in 
the system.

Try system command:

sudo apt-get install ffmpeg mencoder

Does this help?

Original comment by janne.li...@gmail.com on 18 Jun 2012 at 7:06

GoogleCodeExporter commented 8 years ago
No, that didn't fix it. I double checked to make sure that ffmpeg and mencoder 
installed properly as well.

Is there a check that I can run to see what encoders Flowblade should see?

Thanks.

Original comment by wright...@gmail.com on 18 Jun 2012 at 7:12

GoogleCodeExporter commented 8 years ago
Okay, when you run the program what is the MLT version?
----

$ flowblade 

FLOWBLADE MOVIE_EDITOR 0.6.0
----------------------------
Launch script dir: /usr/bin
Running from installation...
MLT found, version: 0.6.2     <- THIS ONE
---

That should be at least 0.7.6.

Original comment by janne.li...@gmail.com on 18 Jun 2012 at 7:24

GoogleCodeExporter commented 8 years ago
I included the lines above that one for reference.

FLOWBLADE MOVIE_EDITOR 0.6.0
----------------------------
Launch script dir: /usr/bin
Running from installation...
MLT found, version: 0.6.2

Original comment by wright...@gmail.com on 18 Jun 2012 at 7:27

GoogleCodeExporter commented 8 years ago
Okay, MLT 0.6.2 is too old to start hacking around.

This is unfortunately going WontFix until it's proven that too old MLT version 
is not the cause.

There are complex instructions to install MLT from source here:

http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installi
ng-source/installing-mlt-rendering-engine

Original comment by janne.li...@gmail.com on 18 Jun 2012 at 7:59

GoogleCodeExporter commented 8 years ago
Desided to keep it open to get some input

Original comment by janne.li...@gmail.com on 18 Jun 2012 at 8:01

GoogleCodeExporter commented 8 years ago
I followed the instructions above with the difference that the package name on 
Linux Mint 11 is "libsdl-image1.2-dev" instead of "libsdl-image-dev". Even 
after running ldconfig though the development version of flowblade won't see 
MLT.

/usr/local/bin/flowblade/flowblade
FLOWBLADE MOVIE_EDITOR branch TIP
---------------------------------
Launch script dir: /usr/local/bin/flowblade
Running from filesystem...
MLT not found, exiting...

The output below shows the libmlt references in the library cache.

$ sudo ldconfig -p | grep -i libmlt
    libmlt.so.5 (libc6) => /usr/lib/libmlt.so.5
    libmlt.so (libc6) => /usr/lib/libmlt.so
    libmlt++.so.3 (libc6) => /usr/lib/libmlt++.so.3
    libmlt++.so (libc6) => /usr/lib/libmlt++.so

I also tried using the LD_LIBRARY_CONFIG variable even though I shouldn't have 
to since libmlt is in the cache, and it didn't help.

Am I missing something simple?

Original comment by wright...@gmail.com on 18 Jun 2012 at 8:45

GoogleCodeExporter commented 8 years ago
So now python does not see MLT. You can try one of the following:

sudo apt-get install python-mlt3

or 

sudo apt-get install python-mlt2

or

sudo apt-get install python-mlt

Hope these help. 

Now I'm actually going to bed for an early flight for a week long vacation, but 
when I came but I can try to look if a solution can be found.

Original comment by janne.li...@gmail.com on 18 Jun 2012 at 9:04

GoogleCodeExporter commented 8 years ago
None of those would work because apt-get wanted to reinstall the repo's version 
of libmlt. Before I got too far into working around that, I found this:

http://askubuntu.com/questions/121034/how-to-update-mlt

It's cheating, but once you add the PPA you should be able to do an apt-get 
install on libmlt4 and libmlt++4. That allowed Flowblade to launch for me.

Original comment by wright...@gmail.com on 19 Jun 2012 at 3:46

GoogleCodeExporter commented 8 years ago
I'm not sure updating mlt will work as I have version: 0.7.7 and it still is 
failing to run, although when I show the running processes it shows it as 
running. Running out of ideas. I fixed one problem and now have another, go 
figure.

I also get this error as well.
(flowblade:5313): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"smooth",

Traceback (most recent call last):
  File "/usr/bin/flowblade", line 63, in <module>
    app.main(modules_path)
  File "/usr/share/pyshared/Flowblade/app.py", line 150, in main
    create_gui()
  File "/usr/share/pyshared/Flowblade/app.py", line 196, in create_gui
    editor_window = editorwindow.EditorWindow()
  File "/usr/share/pyshared/Flowblade/editorwindow.py", line 306, in __init__
    True)
  File "/usr/share/pyshared/Flowblade/panels.py", line 125, in get_render_panel_left
    render.create_widgets()
  File "/usr/share/pyshared/Flowblade/render.py", line 326, in create_widgets
    _fill_extension_label()
  File "/usr/share/pyshared/Flowblade/render.py", line 573, in _fill_extension_label
    ext = encoding_options[enc_index].extension
IndexError: list index out of range

Original comment by cizko...@gmail.com on 21 Jun 2012 at 5:35

GoogleCodeExporter commented 8 years ago
I get the same error, on Fedora 17,
I have tried all of the above trouble shooting steps too.

I am running mlt 0.7.8

Original comment by samantha...@yahoo.com on 2 Jul 2012 at 7:02

GoogleCodeExporter commented 8 years ago
tested mlt 0.6.2, 0.7.2 and 0.7.8. Same issue in Foresight Linux

Original comment by foresigh...@gmail.com on 10 Jul 2012 at 8:28

GoogleCodeExporter commented 8 years ago
Same Issue here on Ubuntu 12.04 (mlt 0.7.7)

Original comment by julian.j...@gmail.com on 16 Jul 2012 at 11:54

GoogleCodeExporter commented 8 years ago
same on ubuntu 64bit (mlt: 0.7.7)

Original comment by elAndroi...@googlemail.com on 14 Aug 2012 at 10:35

GoogleCodeExporter commented 8 years ago
I've committed a patch to repository that has good changes to fix this, or in 
any case it will provide more information on the problem. Patch did 2 things:

1. The method of environment detection was changed from melt to direct MLT 
detection. This actually changed the result of detection in my system, so this 
may fix the problem if it was caused by maelt failing to detect formats and 
codecs correctly.

2. It prints out which render profiles are available and the reason they are 
not available.

Could someone try if the repository version fixes the bug?

Original comment by janne.li...@gmail.com on 17 Aug 2012 at 8:47

GoogleCodeExporter commented 8 years ago
Yes!  I have it running on my Debian 6 Squeeze 64 bit. Python 2.6.6. now with 
your patch.  Steps I took:

Already installed with .deb but getting error.

sudo apt-get install mercurial

cd

hg clone https://code.google.com/p/flowblade/

cd flowblade/flowblade-trunk/

./flowblade 

Original comment by mark.thu...@gmail.com on 27 Aug 2012 at 1:44

GoogleCodeExporter commented 8 years ago

Original comment by janne.li...@gmail.com on 4 Dec 2012 at 10:50