TinyCoreLinux package

Questions or tips about installing Openshot from distribution packages, source code or building packages.

Moderators: Andy, Cenwen, beats

TinyCoreLinux package

Postby josemaria.alkala » Sat May 07, 2011 10:13 pm

Good evening,
I am in the process of creating the OpenVideoShot package for TinyCoreLinux. By the way, I believe this would be an easy way to test the application for new users since the distribution takes 10Mbytes and to install the package you only have to do:
Code: Select all
tce-load -iw openshotvideo-2.7

(once it is prepared)

I have already all the dependencies done and the application actually works. I am able to load a video, but when I preview it, it crash.

If I just open and close the application, I get:
Code: Select all
------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.3.1)
--------------------------------
Process no longer exists: 8255.  Creating new pid lock file.
Failed to import VimeoClient.  Removed Vimeo from upload screen, to allow OpenShot to continue working.
state saved
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_mnuQuit1_activate called with self.GtkImageMenuItem
on_frmMain_destroy
/usr/local/lib/python2.7/site-packages/openshot/windows/SimpleGtkBuilderApp.py:49: GtkWarning: Attempting to store changes into `/home/tc/.local/share/recently-used.xbel', but failed: Failed to create file '/home/tc/.local/share/recently-used.xbel.93YYUV': No such file or directory
  gtk.main()
/usr/local/lib/python2.7/site-packages/openshot/windows/SimpleGtkBuilderApp.py:49: GtkWarning: Attempting to set the permissions of `/home/tc/.local/share/recently-used.xbel', but failed: No such file or directory
  gtk.main()


If I open the application, add a video and select "Preview File" I get:
Code: Select all
------------------------- ERROR 1 ------------------------------
Failed to import 'from openshot import main'
Error Message: cannot import name main
----------------------------------------------------------------
--------------------------------
   OpenShot (version 1.3.1)
--------------------------------
Process no longer exists: 8534.  Creating new pid lock file.
Failed to import VimeoClient.  Removed Vimeo from upload screen, to allow OpenShot to continue working.
state saved
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_tlbImportFiles_clicked called with self.GtkToolButton
project modified:  Added file
state saved
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_frmMain_key_press_event
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openshot/windows/MainGTK.py", line 2117, in on_frmMain_key_press_event
    keyname = str.lower(gtk.gdk.keyval_name(event.keyval))
TypeError: descriptor 'lower' requires a 'str' object but received a 'NoneType'
on_mnuPreview_activate
Segmentation fault


Any clue of what I may be doing wrong?

Cheers,
Jose M.
josemaria.alkala
New member
 
Posts: 6
Joined: Sun Apr 25, 2010 11:36 am

Re: TinyCoreLinux package

Postby josemaria.alkala » Sat May 07, 2011 10:45 pm

Regarding dependencies, these are some of them:
Code: Select all
- openshotvideo-2.7: v1.3.1
  - pymlt-2.7.tcz: v0.7.2 (MLT)
    - python.tcz: v2.7
    - mlt.tcz: v0.7.2 (MLT)
      - frei0r.tcz: v1.3
      - gtk2.tcz: v2.24.4
      - ffmpeg-ffserver.tcz: v0.6.90-rc0
      - libdv.tcz: v1.0
      - SDL.tcz: v1.2.14
      - sox.tcz: v14.3.1
      - libvorbis.tcz: v1.3.1
  - pygoocanvas-2.7.tcz: v0.14.1
    - goocanvas.tcz: v0.15
  - pygtk-2.7.tcz: v2.24.0
  - pyxdg.tcz: v0.19
  - pil-2.7.tcz: v1.1.7


Cheers,
Jose M.
josemaria.alkala
New member
 
Posts: 6
Joined: Sun Apr 25, 2010 11:36 am

Re: TinyCoreLinux package

Postby josemaria.alkala » Sun May 08, 2011 12:01 pm

Some debugging information:
Code: Select all
$ gdb python
(gdb) run /usr/local/lib/python2.7/site-packages/openshot.py


Produced the following when it crashed:
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
mlt_properties_fetch (self=0x0, name=0xa488948 "_xml_branch")
    at mlt_properties.c:424
424     mlt_properties.c: No such file or directory.

        in mlt_properties.c


And getting the backtrace:
Code: Select all
(gdb) bt


I got:
Code: Select all

#0  mlt_properties_fetch (self=0x0, name=0x9735be0 "_xml_branch")
    at mlt_properties.c:424
#1  0xb60aaf2f in mlt_properties_set (self=0x0, name=0x9735be0 "_xml_branch",
    value=0x9735a28 "1.1.2.") at mlt_properties.c:508
#2  0xb60ab89a in mlt_properties_inherit (self=0x0, that=0x9735288)
    at mlt_properties.c:305
#3  0xb57915ad in on_end_filter (ctx=0x9305438, name=0x93d4714 "filter")
    at producer_xml.c:928
#4  on_end_element (ctx=0x9305438, name=0x93d4714 "filter")
    at producer_xml.c:1206
#5  0xb569cd10 in xmlParseElement__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#6  0xb569cf05 in xmlParseContent__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#7  0xb569cc73 in xmlParseElement__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#8  0xb569cf05 in xmlParseContent__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#9  0xb569cc73 in xmlParseElement__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#10 0xb56a36e5 in xmlParseDocument__internal_alias ()
   from /usr/local/lib/libxml2.so.2
#11 0xb578d390 in producer_xml_init (profile=0x8f7cbe0,
    servtype=producer_type, id=<value optimized out>,
    data=0x92ee7f4 "/home/tc/.openshot/preview.mlt") at producer_xml.c:1540
#12 0xb60b9b3b in mlt_repository_create (self=0x8a6bf08, profile=0x8f7cbe0,
    type=producer_type, service=0x92ee7f0 "xml", input=0x92ee7f4)
    at mlt_repository.c:219

#13 0xb60b967a in mlt_factory_producer (profile=0x8f7cbe0,
    service=0x92ee7f0 "xml", input=0x92ee7f4) at mlt_factory.c:250
#14 0xb5239820 in create_producer (profile=0x8f7cbe0,
    file=0x8a4522c "xml:/home/tc/.openshot/preview.mlt")
    at producer_loader.c:63
#15 0xb5239be5 in producer_loader_init (profile=0x8f7cbe0, type=producer_type,
    id=0x8b04e68 "loader", arg=0x9735be0 "_xml_branch")
    at producer_loader.c:198
#16 0xb60b9b3b in mlt_repository_create (self=0x8a6bf08, profile=0x8f7cbe0,
    type=producer_type, service=0x8b04e68 "loader", input=0x8a4522c)
    at mlt_repository.c:219
#17 0xb60b967a in mlt_factory_producer (profile=0x8f7cbe0,
    service=0x8b04e68 "loader", input=0x8a4522c) at mlt_factory.c:250
#18 0xb60d1930 in Mlt::Producer::Producer(Mlt::Profile&, char const*, char cons$
#19 0xb610332c in _wrap_new_Producer__SWIG_2 ()
   from /usr/local/lib/python2.7/site-packages/_mlt.so
#20 0xb6103bf6 in _wrap_new_Producer ()   from /usr/local/lib/python2.7/site-pa$
#21 0xb7617c32 in PyCFunction_Call () from /usr/local/lib/libpython2.7.so.1.0
#22 0xb767a56f in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#23 0xb767c587 in PyEval_EvalCodeEx () from /usr/local/lib/libpython2.7.so.1.0
#24 0xb75fe357 in function_call () from /usr/local/lib/libpython2.7.so.1.0
#25 0xb75d031c in PyObject_Call () from /usr/local/lib/libpython2.7.so.1.0
#26 0xb75e1889 in instancemethod_call ()
   from /usr/local/lib/libpython2.7.so.1.0
#27 0xb75d031c in PyObject_Call () from /usr/local/lib/libpython2.7.so.1.0
#28 0xb7636ce6 in slot_tp_init () from /usr/local/lib/libpython2.7.so.1.0
#29 0xb7630ba5 in type_call () from /usr/local/lib/libpython2.7.so.1.0
#30 0xb75d031c in PyObject_Call () from /usr/local/lib/libpython2.7.so.1.0
#31 0xb7679dcd in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#32 0xb767bc82 in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#33 0xb767c587 in PyEval_EvalCodeEx () from /usr/local/lib/libpython2.7.so.1.0
#34 0xb75fe357 in function_call () from /usr/local/lib/libpython2.7.so.1.0
#35 0xb75d031c in PyObject_Call () from /usr/local/lib/libpython2.7.so.1.0
#36 0xb75e1889 in instancemethod_call ()
   from /usr/local/lib/libpython2.7.so.1.0
#37 0xb75d031c in PyObject_Call () from /usr/local/lib/libpython2.7.so.1.0
#38 0xb7674ed4 in PyEval_CallObjectWithKeywords ()
   from /usr/local/lib/libpython2.7.so.1.0
#39 0xb75d03ec in PyObject_CallObject ()
   from /usr/local/lib/libpython2.7.so.1.0
#40 0xb708f607 in pyg_closure_marshal ()
   from /usr/local/lib/python2.7/site-packages/gtk-2.0/gobject/_gobject.so
#41 0xb724bd3a in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.0
#42 0xb726267d in signal_emit_unlocked_R ()
   from /usr/local/lib/libgobject-2.0.so.0
#43 0xb7263b84 in g_signal_emit_valist ()
   from /usr/local/lib/libgobject-2.0.so.0
#44 0xb7264012 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.0
#45 0xb6d55945 in gtk_widget_activate ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#46 0xb6c32db0 in gtk_menu_shell_activate_item ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#47 0xb6c3487f in gtk_menu_shell_button_release ()
   from /usr/local/lib/libgtk-x11-2.0.so.0

#48 0xb6c2a254 in gtk_menu_button_release ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#49 0xb6c23a84 in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#50 0xb724a3a7 in g_type_class_meta_marshal ()
   from /usr/local/lib/libgobject-2.0.so.0
#51 0xb724bd3a in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.0
#52 0xb72623a6 in signal_emit_unlocked_R ()
   from /usr/local/lib/libgobject-2.0.so.0
#53 0xb7263a03 in g_signal_emit_valist ()
   from /usr/local/lib/libgobject-2.0.so.0
#54 0xb7264012 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.0
#55 0xb6d51b96 in gtk_widget_event_internal ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#56 0xb6c1bfed in gtk_propagate_event ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#57 0xb6c1d38f in gtk_main_do_event () from /usr/local/lib/libgtk-x11-2.0.so.0
#58 0xb6aab6ca in gdk_event_dispatch () from /usr/local/lib/libgdk-x11-2.0.so.0
#59 0xb7173505 in g_main_context_dispatch ()
   from /usr/local/lib/libglib-2.0.so.0
#60 0xb7177af0 in g_main_context_iterate ()
   from /usr/local/lib/libglib-2.0.so.0
#61 0xb717801f in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.0
#62 0xb6c1d959 in gtk_main () from /usr/local/lib/libgtk-x11-2.0.so.0
#63 0xb6ff34b2 in ?? ()
   from /usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/_gtk.so
#64 0xb767aada in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#65 0xb767bc82 in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#66 0xb767bc82 in PyEval_EvalFrameEx () from /usr/local/lib/libpython2.7.so.1.0
#67 0xb767c587 in PyEval_EvalCodeEx () from /usr/local/lib/libpython2.7.so.1.0
#68 0xb767c6d3 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so.1.0
#69 0xb769b511 in PyRun_FileExFlags () from /usr/local/lib/libpython2.7.so.1.0
#70 0xb769b74c in PyRun_SimpleFileExFlags ()
   from /usr/local/lib/libpython2.7.so.1.0
#71 0xb769bb7a in PyRun_AnyFileExFlags ()
   from /usr/local/lib/libpython2.7.so.1.0
#72 0xb76b0580 in Py_Main () from /usr/local/lib/libpython2.7.so.1.0
#73 0x08048587 in main (argc=2, argv=0xbfe2a044) at ./Modules/python.c:23


Hope this may help to somebody,
Jose M.
josemaria.alkala
New member
 
Posts: 6
Joined: Sun Apr 25, 2010 11:36 am

Re: TinyCoreLinux package

Postby Cenwen » Sun May 08, 2011 9:54 pm

Hi,
It is not every day that we have so much information for a problem. :o ;)

Thanks a lot

You must have all this dependencies installed (see here : http://openshotusers.com/forum/viewtopic.php?f=12&t=758 and I am thinking specially at this one for our problem : python-httplib2
She is asked for the upload to the website like Youtube and Vimeo. After, I am thinking at another thing like it seems that 's Vimeo who seems to bring some problems with python 2.7 but normally, not.
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France


Return to Installation

Who is online

Users browsing this forum: No registered users

cron